cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
26 stars 45 forks source link

Glitch in "War Deploy to Tomcat" chapter #723

Closed belyaev-andrey closed 4 years ago

belyaev-andrey commented 4 years ago

As per forum post:

The following chapter cuba documentation, (point 8) states that production database connection properties can be provided using a specific “context.xml” file stored in /var/lib/tomcatXXX/conf/Catalina/localhost/ where tomcatXXX should equal to name of the tomcat service.

This configuration didn’t made the job on my linux box, i had to store the specific “context.xml” in $CATALINA_BASE/conf/[enginename]/[hostname] as stated in tomcat documentation.

alexbudarov commented 4 years ago

This is not true, it's all been tested.

In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The context path and version will be derived from the base name of the file (the file name less the .xml extension). This file will always take precedence over any context.xml file packaged in the web application's META-INF directory.