Hi,

I tried this as well and get the same error message.

jsvc error: Invalid option -server
jsvc error: Cannot parse command line arguments

This is a serious shows-stopper for me because I need to run
a web app which only works in server mode. :o(

cheers,
Pete

-------- Original-Nachricht --------
Datum: Thu, 1 Mar 2007 14:01:50 -0700
Von: [EMAIL PROTECTED]
An: users@tomcat.apache.org
CC: 
Betreff: RE: AW: AW: Cannot run JVM in server mode with JSVC

> An easier way to do it would be to add it in your $CATALINA_OPTS variable.
>  So get rid of the extra stuff you added and instead add the '-server' to
> $CATALINA_OPTS.  So it would be:
> 
> CATALINA_OPTS="-server -Xmx1900m -Xms256m -XX:MaxPermSize=256m 
> -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote "
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 01, 2007 7:30 AM
> To: Tomcat Users List
> Subject: Re: AW: AW: Cannot run JVM in server mode with JSVC
> 
> Hi,
> 
> sorry for the email junk. They make me use Outlook
> which sometimes adds the list and the recepient to the repsonse. :o(
> I didn't notice when I hit reply.
> 
> I don't know why this does not work but jsvc give me this again:
> 
> jsvc error: Invalid option -server
> jsvc error: Cannot parse command line arguments
> 
> I added the option like you said in your mail. :o(
> 
> cheers,
> Pete
> 
> -------- Original-Nachricht --------
> Datum: Thu, 01 Mar 2007 13:37:24 +0000
> Von: Pid <[EMAIL PROTECTED]>
> An: Tomcat Users List <users@tomcat.apache.org>
> CC: 
> Betreff: Re: AW: AW: Cannot run JVM in server mode with JSVC
> 
> > OK,
> > 
> > 1) Please ONLY reply to the list, you do not need to add my address as 
> > well - you're joining the merry band of new listers who seem to insist 
> > on sending me the same message twice.
> > 
> > 2) "-server", just "-server", not "java "-server"" and
> > 
> > 3) definitely not "jvm anything" or "-jvm "-server""
> > 
> > Note that I have added quotes to indicate where attributes start and 
> > end. To start a java program in server mode, you would type:
> > 
> > java -server ...
> > 
> > 
> > Like so:
> > 
> > case "$1" in
> >   start)
> > $DAEMON_BIN \
> >   -server \
> >   -user $TOMCAT_USER \
> >   -home $JAVA_HOME1 \
> >   -Dcatalina.home=$CATALINA_HOME \
> >   -Djava.io.tmpdir=$TMP_DIR \
> >   -outfile $CATALINA_HOME/logs/catalina.out \
> >   -errfile '&1' \
> >   $CATALINA_OPTS \
> >   -cp $CLASSPATH \
> >    org.apache.catalina.startup.Bootstrap \
> > 
> > 
> > 
> > 
> > Peter Neu wrote:
> > > 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=$CATALINA_HOME \
> > >  -Djava.io.tmpdir=$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üngliche Nachricht-----
> > >> Von: Pid [mailto:[EMAIL PROTECTED]
> > >> Gesendet: Donnerstag, 1. März 2007 11:09
> > >> An: Tomcat Users List
> > >> Betreff: Re: AW: Cannot run JVM in server mode with JSVC
> > >>
> > >> java "-server" is the switch you need, not "-jvm server"
> > >>
> > >>
> > >>
> > >> Peter Neu wrote:
> > >>> Hello,
> > >>>
> > >>> is this question better asked in the dev mailing list or where
> should
> > I
> > >> ask?
> > >>> Cheers,
> > >>> Pete
> > >>>
> > >>>> -----Ursprüngliche Nachricht-----
> > >>>> Von: Peter Neu [mailto:[EMAIL PROTECTED]
> > >>>> 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üngliche Nachricht-----
> > >>>>> Von: Peter Neu [mailto:[EMAIL PROTECTED]
> > >>>>> 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=/usr/local/jdk1.5.0_06
> > >>>>>
> > >>>>>  CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9
> > >>>>>
> > >>>>>  DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc
> > >>>>>
> > >>>>>  TOMCAT_USER=loew
> > >>>>>
> > >>>>>  TMP_DIR=/var/tmp
> > >>>>>
> > >>>>> CATALINA_OPTS="-Xmx1900m -Xms256m -XX:MaxPermSize=256m
> > >>>>> -XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote "
> > >>>>>
> > >>>>>  CLASSPATH=/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=$CATALINA_HOME \
> > >>>>>
> > >>>>>  -Djava.io.tmpdir=$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: [EMAIL PROTECTED]
> > >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> ---------------------------------------------------------------------
> > >>> To start a new topic, e-mail: users@tomcat.apache.org
> > >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To start a new topic, e-mail: users@tomcat.apache.org
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to