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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to