https://issues.apache.org/bugzilla/show_bug.cgi?id=53861
Priority: P2
Bug ID: 53861
Assignee: [email protected]
Summary: CATALINA_OPTS not pulled in for shutdown
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: NEW
Version: 7.0.30
Component: Catalina
Product: Tomcat 7
I have learned that one can add variables to the server.xml file. These
variables should get populated by setting them in the CATALINA_OPTS. This
works properly for starting tomcat. But when you go to shutdown tomcat the
CATALINA_OPTS are not pulled in so the the server.xml file does not have the
parameters.
Example: In the server.xml file change the "server" XML tag attribute "port"
to "port=${some.variable}". Now set CATALINA_OPTS=" -Dsome.variable=8005". If
you start tomcat it will work. If you stop tomcat it will fail. However if
you put the variables in JAVA_OPTS it will work for both starting and stopping.
However the variable that get used by TOMCAT should really be set in
CATALINA_OPTS since it is specific to TOMCAT.
Solution: Add CATALINA_OPTS to the shutdown script.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]