Amit Pande
2018-10-02 16:41:39 UTC
Hello SMEs,
I am looking at Tomcat documentation to see if there is a way to move the â<Tomcat_Base_Folder>/confâ to a custom location and use this path while running the startup/shutdown scripts.
I have looked at the https://github.com/apache/tomcat85/blob/TOMCAT_8_5_34/java/org/apache/catalina/startup/Catalina.java and confirmed we can pass a -config <path_to_server_dot_xml> to the Tomcat scripts (catalina.bat/sh, startup.bat/sh, etc).
Wanted to confirm:
1. Why is â-configâ option not documented as part of help of the startup/shutdown scripts? Is this a supported configuration that we can use without worrying about future breaking changes in this?
2. Currently, as part of â-configâ option weâre able to pass on the path to server.xml only. What is required to be done so that entire Tomcat configuration (conf directory) can be moved to a custom location?
3. I am still debugging why, but on Linux setups, I have observed âconfigtestâ script isnât working with â-config <path_to_server_dot_xml>â. I am seeing âWARNING: Unable to load server configuration from [path_to_server_dot_xml] Configuration error detected!â. Is this know issue on Linux system? It seemed to work fine for Windows.
Appreciate your inputs.
Thanks,
Amit
I am looking at Tomcat documentation to see if there is a way to move the â<Tomcat_Base_Folder>/confâ to a custom location and use this path while running the startup/shutdown scripts.
I have looked at the https://github.com/apache/tomcat85/blob/TOMCAT_8_5_34/java/org/apache/catalina/startup/Catalina.java and confirmed we can pass a -config <path_to_server_dot_xml> to the Tomcat scripts (catalina.bat/sh, startup.bat/sh, etc).
Wanted to confirm:
1. Why is â-configâ option not documented as part of help of the startup/shutdown scripts? Is this a supported configuration that we can use without worrying about future breaking changes in this?
2. Currently, as part of â-configâ option weâre able to pass on the path to server.xml only. What is required to be done so that entire Tomcat configuration (conf directory) can be moved to a custom location?
3. I am still debugging why, but on Linux setups, I have observed âconfigtestâ script isnât working with â-config <path_to_server_dot_xml>â. I am seeing âWARNING: Unable to load server configuration from [path_to_server_dot_xml] Configuration error detected!â. Is this know issue on Linux system? It seemed to work fine for Windows.
Appreciate your inputs.
Thanks,
Amit