Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 93357 invoked from network); 22 Jul 2007 17:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2007 17:29:17 -0000 Received: (qmail 49303 invoked by uid 500); 22 Jul 2007 17:29:13 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 48572 invoked by uid 500); 22 Jul 2007 17:29:11 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 48555 invoked by uid 500); 22 Jul 2007 17:29:11 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 48552 invoked by uid 99); 22 Jul 2007 17:29:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2007 10:29:11 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2007 10:29:09 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id DBD837141F3; Sun, 22 Jul 2007 10:28:48 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 42951] New: - In catalina.sh CATALINA_OPTS is used for both start and stop. Message-ID: X-Bugzilla-Reason: AssignedTo Date: Sun, 22 Jul 2007 10:28:48 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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