You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Neu <pe...@gmx.net> on 2007/03/01 10:22:23 UTC
AW: Cannot run JVM in server mode with JSVC
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: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üngliche 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=/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: 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
Re: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pid <p...@pidster.com>.
can you post the current version of your config then?
Peter.Neu@gmx.net wrote:
> 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: ScottAnders@BC.com
> 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: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
>> 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 <p...@pidster.com>
>> An: Tomcat Users List <us...@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:p@pidster.com]
>>>>> 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: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üngliche 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=/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: 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
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>> --
>> 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: 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
>
---------------------------------------------------------------------
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
RE: RE: RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> Subject: Re: RE: RE: AW: AW: Cannot run JVM in server mode with JSVC
>
> That's what I thought too. It's a bit complicated and
> the people at Alfresco have messed up a bit with
> the hibernate api so their application constantly crashes when
> it runs on a VM in client mode.
This is a Hibernate bug; it's fixed in 3.2:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
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
Re: RE: RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pe...@gmx.net.
That's what I thought too. It's a bit complicated and
the people at Alfresco have messed up a bit with
the hibernate api so their application constantly crashes when
it runs on a VM in client mode.
See this
http://forums.alfresco.com/viewtopic.php?t=5441
or this:
http://www.psuedoguru.com/roller/page/psuedoblog?entry=alfresco_failed_to_authenticate_as
Well, not much I can do about it - but I need to make it run
says my boss. :o(
cheers,
Pete
-------- Original-Nachricht --------
Datum: Fri, 2 Mar 2007 08:30:09 -0600
Von: "Caldarale, Charles R" <Ch...@unisys.com>
An: "Tomcat Users List" <us...@tomcat.apache.org>
CC:
Betreff: RE: RE: AW: AW: Cannot run JVM in server mode with JSVC
> > From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> > Subject: Re: RE: AW: AW: Cannot run JVM in server mode with JSVC
> >
> > This is a serious shows-stopper for me because I need to run
> > a web app which only works in server mode. :o(
>
> Can you elaborate on that? From an application perspective, there
> should be no difference between client and server modes. What happens
> when run in client mode?
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
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
RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> Subject: Re: AW: AW: Cannot run JVM in server mode with JSVC
>
> So please, how do I get jsvc to start the jvm in server mode?
Well, you could change your JAVA_HOME/jre/lib/[arch]/jvm.cfg file to put
the -server entry first; that will make it the default JVM mode.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
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
Re: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pe...@gmx.net.
Ok. So theoratically speaking. What I need to do is just
exchange the jar files. But I don't know if any of the features
in Alfresoc will break. I would need to test everything for which
I don't have the time.
So please, how do I get jsvc to start the jvm in server mode?
As far as I know the server hardware is "beefy" enough to handle server mode. ;o)
cheers,
Pete
-------- Original-Nachricht --------
Datum: Fri, 02 Mar 2007 15:01:04 +0000
Von: Pid <p...@pidster.com>
An: Tomcat Users List <us...@tomcat.apache.org>
CC:
Betreff: Re: AW: AW: Cannot run JVM in server mode with JSVC
> Caldarale, Charles R wrote:
> >> From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> >> Subject: Re: RE: AW: AW: Cannot run JVM in server mode with JSVC
> >>
> >> This is a serious shows-stopper for me because I need to run
> >> a web app which only works in server mode. :o(
> >
> > Can you elaborate on that? From an application perspective, there
> > should be no difference between client and server modes. What happens
> > when run in client mode?
>
> And the box might automatically use server mode if it has the beefy
> enough hardware
>
> > - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > ---------------------------------------------------------------------
> > 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
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
---------------------------------------------------------------------
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
Re: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pid <p...@pidster.com>.
Caldarale, Charles R wrote:
>> From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
>> Subject: Re: RE: AW: AW: Cannot run JVM in server mode with JSVC
>>
>> This is a serious shows-stopper for me because I need to run
>> a web app which only works in server mode. :o(
>
> Can you elaborate on that? From an application perspective, there
> should be no difference between client and server modes. What happens
> when run in client mode?
And the box might automatically use server mode if it has the beefy
enough hardware
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
RE: RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> Subject: Re: RE: AW: AW: Cannot run JVM in server mode with JSVC
>
> This is a serious shows-stopper for me because I need to run
> a web app which only works in server mode. :o(
Can you elaborate on that? From an application perspective, there
should be no difference between client and server modes. What happens
when run in client mode?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
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
Re: RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pe...@gmx.net.
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: ScottAnders@BC.com
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: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
> 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 <p...@pidster.com>
> An: Tomcat Users List <us...@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:p@pidster.com]
> > >> 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: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üngliche 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=/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: 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
> > >>>
> > >>>
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
> --
> 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: 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
--
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Sc...@BC.com.
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: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net]
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 <p...@pidster.com>
An: Tomcat Users List <us...@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:p@pidster.com]
> >> 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: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üngliche 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=/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: 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
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
--
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: 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
Re: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pe...@gmx.net.
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 <p...@pidster.com>
An: Tomcat Users List <us...@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:p@pidster.com]
> >> 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: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üngliche 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=/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: 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
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
--
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: AW: AW: Cannot run JVM in server mode with JSVC
Posted by Pid <p...@pidster.com>.
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:p@pidster.com]
>> 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: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üngliche 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=/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: 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
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
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
AW: AW: Cannot run JVM in server mode with JSVC
Posted by Peter Neu <pe...@gmx.net>.
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:p@pidster.com]
> 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: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üngliche 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=/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: 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
Re: AW: Cannot run JVM in server mode with JSVC
Posted by Pid <p...@pidster.com>.
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: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üngliche 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=/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: 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
>
>
---------------------------------------------------------------------
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