tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42951] New: - In catalina.sh CATALINA_OPTS is used for both start and stop.
Date Sun, 22 Jul 2007 17:28:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42951>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42951

           Summary: In catalina.sh CATALINA_OPTS is used for both start and
                    stop.
           Product: Tomcat 6
           Version: 6.0.10
          Platform: All
               URL: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/bin
                    /catalina.bat
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Andrew_Polozov@yahoo.com


Looks like an old bug in startup scripts, which has been fixed around 5.5.20,
has been reintroduced (or hasn't been ported) in 6.0.X:
CATALINA_OPTS variable is used for stopping, while it's supposed to be used for
starting only:
------------------
elif [ "$1" = "stop" ] ; then

  shift
  FORCE=0
  if [ "$1" = "-force" ]; then
    shift
    FORCE=1
  fi

  "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
    -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
    -Dcatalina.base="$CATALINA_BASE" \
    -Dcatalina.home="$CATALINA_HOME" \
    -Djava.io.tmpdir="$CATALINA_TMPDIR" \
    org.apache.catalina.startup.Bootstrap "$@" stop
------------------

This makes impossible using JMX agent/jconsole as well as other tools which rely
on socket listening.

I'm not sure if catalina.bat does the same thing...

I guess the latest 5.5.X version of catalina.sh (and probably .bat) shall be
merged into 6.6.X tree...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message