Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 25297 invoked from network); 1 Mar 2007 10:34:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 10:34:07 -0000 Received: (qmail 23642 invoked by uid 500); 1 Mar 2007 10:34:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23617 invoked by uid 500); 1 Mar 2007 10:34:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23606 invoked by uid 99); 1 Mar 2007 10:34:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 02:34:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of peter.neu@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 02:33:52 -0800 Received: (qmail invoked by alias); 01 Mar 2007 10:33:30 -0000 X-Provags-ID: V01U2FsdGVkX195hpwPoVd5ckoWMucZNVScFDWd9DE3EB0cpsSxm8 g+wg== From: "Peter Neu" To: "'Tomcat Users List'" , Subject: AW: AW: Cannot run JVM in server mode with JSVC Date: Thu, 1 Mar 2007 11:32:31 +0100 Message-ID: <00c701c75bec$ec41e760$bcc8a8c0@PCMELZER> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <45E6A656.6020506@pidster.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: Acdb6dVzhBuDP6wKR4eOO25ue8IUDwAAlmEg X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, if I put his in the shell script case "$1" in start) $DAEMON_BIN \ -java "-server" -user $TOMCAT_USER \ -home $JAVA_HOME1 \ -Dcatalina.home=3D$CATALINA_HOME \ -Djava.io.tmpdir=3D$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap \ I get this error: jsvc error: Invalid option -java jsvc error: Cannot parse command line arguments /etc/init.d/tomcat5: line 67: -user: command not found If I put this -jvm "-server" Instead of -java "-server" I get the = following Error message: /etc/init.d/tomcat5 start jsvc error: Invalid Java VM name specified jsvc error: Cannot parse command line arguments /etc/init.d/tomcat5: line 67: -user: command not found I don't get this. Server starts normally without server parameter but in client mode. :o( Cheers, Pete > -----Urspr=FCngliche Nachricht----- > Von: Pid [mailto:p@pidster.com] > Gesendet: Donnerstag, 1. M=E4rz 2007 11:09 > An: Tomcat Users List > Betreff: Re: AW: Cannot run JVM in server mode with JSVC >=20 > java "-server" is the switch you need, not "-jvm server" >=20 >=20 >=20 > Peter Neu wrote: > > Hello, > > > > is this question better asked in the dev mailing list or where = should I > ask? > > > > Cheers, > > Pete > > > >> -----Urspr=FCngliche Nachricht----- > >> Von: Peter Neu [mailto:peter.neu@gmx.net] > >> Gesendet: Mittwoch, 28. Februar 2007 08:01 > >> An: 'Tomcat Users List' > >> Betreff: AW: Cannot run JVM in server mode with JSVC > >> > >> Hello, > >> > >> can somebody please help don't know how to solve this. > >> > >> Cheers, > >> Pete > >> > >>> -----Urspr=FCngliche Nachricht----- > >>> Von: Peter Neu [mailto:peter.neu@gmx.net] > >>> Gesendet: Dienstag, 27. Februar 2007 12:43 > >>> An: users@tomcat.apache.org > >>> Betreff: Cannot run JVM in server mode with JSVC > >>> > >>> > >>> > >>> Hello, > >>> > >>> > >>> > >>> I need to run the JVM in server mode but jsvc does not switch to = the > >>> server > >>> mode despite the configuration below. > >>> > >>> > >>> > >>> There aren't even any error messages. Can somebody please tell me > what's > >>> wrong? > >>> > >>> > >>> > >>> Cheers, > >>> > >>> Pete > >>> > >>> > >>> > >>> JAVA_HOME1=3D/usr/local/jdk1.5.0_06 > >>> > >>> CATALINA_HOME=3D/usr/local/jakarta-tomcat-5.5.9 > >>> > >>> DAEMON_BIN=3D/usr/local/jakarta-tomcat-5.5.9/bin/jsvc > >>> > >>> TOMCAT_USER=3Dloew > >>> > >>> TMP_DIR=3D/var/tmp > >>> > >>> CATALINA_OPTS=3D"-Xmx1900m -Xms256m -XX:MaxPermSize=3D256m > >>> -XX:ReservedCodeCacheSize=3D64m -Dcom.sun.management.jmxremote " > >>> > >>> CLASSPATH=3D/usr/local/jdk1.5.0_06/lib/tools.jar:\ > >>> > >>> $CATALINA_HOME/bin/commons-daemon.jar:\ > >>> > >>> $CATALINA_HOME/bin/bootstrap.jar > >>> > >>> > >>> > >>> case "$1" in > >>> > >>> start) > >>> > >>> # > >>> > >>> # Start Tomcat > >>> > >>> # > >>> > >>> $DAEMON_BIN \ > >>> > >>> -user $TOMCAT_USER \ > >>> > >>> -home $JAVA_HOME1 \ > >>> > >>> -Dcatalina.home=3D$CATALINA_HOME \ > >>> > >>> -Djava.io.tmpdir=3D$TMP_DIR \ > >>> > >>> -outfile $CATALINA_HOME/logs/catalina.out \ > >>> > >>> -errfile '&1' \ > >>> > >>> $CATALINA_OPTS \ > >>> > >>> -cp $CLASSPATH \ > >>> > >>> org.apache.catalina.startup.Bootstrap \ > >>> > >>> -jvm server \ > >>> > >>> # > >>> > >>> # To get a verbose JVM > >>> > >>> # -verbose \ > >>> > >>> # To get a debug of jsvc. > >>> > >>> #-debug \ > >>> > >>> ;; > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > >> > >> = --------------------------------------------------------------------- > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > >> For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > > > = --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > >=20 >=20 > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org