Thanks for the reply,

The linux is Fedora 4.0, tomcat 5.0.28, java is 1.5.0_07.

I did check the Catalina.err, it looks like it cannot find the Bootstrap class,
which is specified by the classpath directory.

Here is the full script I used.

echo "JAVA_HOME: $JAVA_HOME"
echo "CATALINA_HOME: $CATALINA_HOME"
echo "CATALINA_BASE: $CATALINA_BASE"
echo "CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "CLASSPATH: $CLASSPATH"
./bin/jsvc -jvm server -Djava.endorsed.dirs=./common/endorsed -classpath
/usr/tomcat/bin/bootstrap.jar -outfile ./logs/catalina.out -errfile
./logs/catalina.err org.apache.catalina.startup.Bootstrap



Thanks

Pat

-----Original Message-----
From: Warren Pace [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006 4:10 AM
To: Tomcat Users List
Subject: Re: Why cannot I put JSVC into a shell script to run

Pat,
    Send us your entire script.  Also, which Linux, Tomcat, and Java are you
using?  That'll help us, too.
warren
> 
> From: "Patrick Wang" <[EMAIL PROTECTED]>
> Date: 2006/08/31 Thu PM 05:41:32 EDT
> To: <users@tomcat.apache.org>
> Subject: Why cannot I put JSVC into a shell script to run
> 
> Hi,
> 
> I can only copy/paste the contents from startTomcat.sh to the console,
> everything works fine. But when I run the command from
> the console startTomcat.sh, it gave me no error, however the
>
<http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
> ming/Q_21972914.html##> tomcat doesnot get started, I make sure the execute
> rights is assigned, etc.
> 
> One thing is that I make all these strings into one single line in the
> startTomcat.sh, will this have any effect?
> 
> ./bin/jsvc -jvm
>
<http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
> ming/Q_21972914.html##> server -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y
> -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile
> ./logs/catalina.out -errfile ./logs/catalina.err
> org.apache.catalina.startup.Bootstrap
> 
>  
> 
> Do I need to setup the environment variable? However I can run the command
from
> the console without the environment setup either.
> 
>  
> 
> Pat
> 
> 
> 


---------------------------------------------------------------------
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]

Reply via email to