Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 4122 invoked from network); 5 Sep 2006 23:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 23:07:56 -0000 Received: (qmail 81683 invoked by uid 500); 5 Sep 2006 23:07:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 81660 invoked by uid 500); 5 Sep 2006 23:07:45 -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 81648 invoked by uid 99); 5 Sep 2006 23:07:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 16:07:44 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of wapace@bellsouth.net designates 205.152.59.69 as permitted sender) Received: from [205.152.59.69] (HELO imf21aec.mail.bellsouth.net) (205.152.59.69) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 16:07:43 -0700 Received: from ibm63aec.bellsouth.net ([192.168.16.253]) by imf21aec.mail.bellsouth.net with ESMTP id <20060905230718.ORAX7884.imf21aec.mail.bellsouth.net@ibm63aec.bellsouth.net> for ; Tue, 5 Sep 2006 19:07:18 -0400 Received: from mail.bellsouth.net ([192.168.16.253]) by ibm63aec.bellsouth.net with SMTP id <20060905230717.WLOM26600.ibm63aec.bellsouth.net@mail.bellsouth.net> for ; Tue, 5 Sep 2006 19:07:17 -0400 X-Mailer: Openwave WebEngine, version 2.8.16.1 (webedge20-101-1106-101-20040924) X-Originating-IP: [72.148.104.3] From: Warren Pace To: "Tomcat Users List" Subject: Re: RE: Why cannot I put JSVC into a shell script to run Date: Tue, 5 Sep 2006 19:07:17 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060905230717.WLOM26600.ibm63aec.bellsouth.net@mail.bellsouth.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Pat, This looks to be more a scripting issue than a tomcat or jsvc issue. May I mail you a skeleton script as an attachment off the list? I've not used Fedora for a couple of years so I can't remember the directory layout (where to find rc.status, etc) but you can modify the script to point to the particulars of your system. I've tried to make sure my script is LSB-compliant (has to start, stop, restart, & return status messages, etc.) > > From: "Patrick Wang" > Date: 2006/09/05 Tue AM 11:29:38 EDT > To: "'Tomcat Users List'" > Subject: RE: Why cannot I put JSVC into a shell script to run > > 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:wapace@bellsouth.net] > 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" > > Date: 2006/08/31 Thu PM 05:41:32 EDT > > To: > > 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 > > > > 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 > > > > 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: 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