tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53861] New: CATALINA_OPTS not pulled in for shutdown
Date Wed, 12 Sep 2012 14:23:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53861

          Priority: P2
            Bug ID: 53861
          Assignee: dev@tomcat.apache.org
           Summary: CATALINA_OPTS not pulled in for shutdown
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: lance@illinois.edu
          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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message