tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53861] New: CATALINA_OPTS not pulled in for shutdown
Date Wed, 12 Sep 2012 14:23:07 GMT

          Priority: P2
            Bug ID: 53861
           Summary: CATALINA_OPTS not pulled in for shutdown
          Severity: normal
    Classification: Unclassified
                OS: All
          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

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:
For additional commands, e-mail:

View raw message