Last active
September 29, 2023 16:23
-
-
Save aitseitz/c80a742876fa63914f98daa267ae163a to your computer and use it in GitHub Desktop.
Alfresco Deployment Descriptor for Tomcat 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<Context crossContext="true" docBase="{{ acs_home }}/ecm_war_delivery/alfresco.war"> | |
<Resources cacheMaxSize="{{ tomcat_resource_cache }}" cacheObjectMaxSize="1024"> | |
<PostResources base="${catalina.base}/../modules/platform" | |
className="org.apache.catalina.webresources.DirResourceSet" | |
webAppMount="/WEB-INF/lib"/> | |
</Resources> | |
</Context> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alfresco Deployment Descriptor
In the Tomcat 9.0 Documentation
https://tomcat.apache.org/tomcat-9.0-doc/config/context.html
is written:
In Tomcat 7 and Tomcat 8 I've used the following Deployment Descriptor in
/tomcat/conf/Catalina/localhost/alfresco.xml
After booting up ACS 7.2.1 I realized that Tomcat 9 throws a warn message if you use the deployment descriptors like this
The reason is:
https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/startup/HostConfig.java#L643
Prior to Tomcat 9 this message was not thrown...
Solution
You get rid of the WARN message above by simply remove path="" from deployment descriptor xml in case docbase="" is set.