Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 76569 invoked by uid 500); 20 Aug 2001 02:36:48 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 76559 invoked from network); 20 Aug 2001 02:36:48 -0000 Received: from ns.sentex.ca (HELO granite.sentex.ca) (199.212.134.1) by h31.sny.collab.net with SMTP; 20 Aug 2001 02:36:48 -0000 Received: from someone (p108b.xDSL-1mm.sentex.ca [64.7.134.237]) by granite.sentex.ca (8.11.4/8.11.4) with SMTP id f7K2aSK93401 for ; Sun, 19 Aug 2001 22:36:28 -0400 (EDT) (envelope-from rslifka@home.com) From: "Rob S." To: Subject: RE: More understanding on startup.sh and shutdown.sh Date: Sun, 19 Aug 2001 22:38:43 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hey Kennice, Coincidentally, the C-man just sent out an email about them to the dev list: You can tell Tomcat to start with this variable, without modifying the startup scripts, by setting TOMCAT_OPTS (Tomcat 3.x) or CATALINA_OPTS (Tomcat 4.x) to the set of options you want to pass to the JVM. For instance, you can run with the -server switch and set max heap size to 128 megabytes with: CATALINA_OPTS="-server -Xmx=128m" or TOMCAT_OPTS="-server -Xmx=128m" Craig - r > -----Original Message----- > From: Kennice Low [mailto:kennicelow@hotmail.com] > Sent: Sunday, August 19, 2001 10:31 PM > To: rslifka@home.com > Cc: tomcat-user@jakarta.apache.org > Subject: RE: More understanding on startup.sh and shutdown.sh > > > Hi Rob, > Can you enlightened me on TOMCAT_OPTS :-? TQ. > > regards, > Kennice > > >From: "Rob S." > >Reply-To: tomcat-user@jakarta.apache.org > >To: "Kennice Low" > >CC: > >Subject: RE: More understanding on startup.sh and shutdown.sh > >Date: Sun, 19 Aug 2001 22:15:03 -0400 > > > >Hi Kennice, > > > >Unsetting your CLASSPATH before starting Tomcat is a good idea. > You really > >shouldn't need to bother with the startup and shutdown scripts. If you > >want > >to mess with the Java command line used to start Tomcat, you can export > >TOMCAT_OPTS to those options. > > > >- r > > > > > Hi Rob and Larry, > > > Thank you for yours advice. Your are right, I shouldn't set > > > tomcat-internal-related and the webapps. I have remove the unnecessary > > > setting on CLASSPATH and the jsp and servlet work fine. But, the > >message > > > still displayed when I shutdown and startup tomcat : > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > org/apache/tomcat/shell/Startup > > > > > > 1) Do you have any ideals ? I suspect one of the servlet or > xml file is > > > looking for the directory org/apache/tomcat/shell/Startup, but > > > the directory > > > is not there. > > > > > > 2) Forgot to mention the jsp and servlet work fine all the time. > > > The only > > > thing is I would like to learn more who does the startup and > > > shutdown work. > > > > > > 3) Back to the 1st mail, do your have any ideal what is $BASEDIR. > > > > > > best regards, > > > Kennice > > > > > > > > > Rob wrote on 17/8/01 : > > > >There should be nothing tomcat-internal-related in your > > > CLASSPATH. >Tomcat > > > >sets the CLASSPATH for you, by automatically adding all of the jars > >from > > > >your $TOMCAT_HOME/lib directory to your CLASSPATH. > > > > > > Larry wrote on 17/8/01: > > > >$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes shouldn't be in your > > > >CLASSPATH since it is part of a web application. If it is there > > > >to get something to work, what goes wrong when it isn't there. > > > > > > > >Larry > > > > > > > > > -----Original Message----- > > > > > From: Kennice Low [mailto:kennicelow@hotmail.com] > > > > > Sent: Friday, August 17, 2001 2:32 AM > > > > > To: rslifka@home.com > > > > > Cc: tomcat-user@jakarta.apache.org > > > > > Subject: RE: More understanding on startup.sh and shutdown.sh > > > > > > > > > > > > > > > Hi Rob, > > > > > Thank you for your helps. > > > > > > > > > > >when you do "set | grep TOMCAT_HOME" you should get > > > > > something like this: > > > > > TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 > > > > > > > > > > >Have you set the TOMCAT_HOME and JAVA_HOME environment > > > > > variables? The > > > > > >error > > > > > >you're getting seems to be that the server's jar file > isn't in the > > > > > >CLASSPATH > > > > > >(which Tomcat sets for you). > > > > > > > > > > here is my setting of profile. > > > > > > > > > > -------------------------------------------------------------- > > > > > ---------- > > > > > . /home/pseudo/profile > > > > > > > > > > alias ls='ls -l' > > > > > alias la='ls -a' > > > > > export PS1="\w>" > > > > > > > > > > . .java > > > > > > > > > > #export JAVA_HOME=/local/pkg/jdk/1.3 > > > > > export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 > > > > > export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686 > > > > > export BIN=/usr/bin > > > > > export APACHE=/etc/init.d > > > > > > > > > > export > > > > > > PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH > > > > > > > > > > export > > > > > CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper > > > > > .jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/ > > > > > WEB-INF/classes:$TOMCAT_HOME/lib/mm.m > > > > > ysql-2.0.6.jar:$TOMCAT_HOME/conn > > > > > > > > > > ---------------------------end of > profile--------------------------- > > > > > Is there any error on the setting ? > > > > > > > > > > Thank you :-) > > > > > regards > > > > > Kennice > > > > > > > > > > > > > > > > > > > > >From: "Rob S." > > > > > >Reply-To: tomcat-user@jakarta.apache.org > > > > > >To: > > > > > >Subject: RE: More understanding on startup.sh and shutdown.sh > > > > > >Date: Thu, 16 Aug 2001 07:16:09 -0400 > > > > > > > > > > > >Hiya Ken, > > > > > > > > > > > >Have you set the TOMCAT_HOME and JAVA_HOME environment > > > > > variables? The > > > > > >error > > > > > >you're getting seems to be that the server's jar file > isn't in the > > > > > >CLASSPATH > > > > > >(which Tomcat sets for you). I can only think that you've > > > > > improperly set > > > > > >TOMCAT_HOME. > > > > > > > > > > > >when you do "set | grep TOMCAT_HOME" you should get > > > > > something like this: > > > > > > > > > > > >TOMCAT_HOME=/usr/local/tomcat > > > > > > > > > > > >where that is the root of your tomcat installation. Make > > > > > sure that's set > > > > > >correctly and let us know what happens... > > > > > > > > > > > >- r > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Kennice Low [mailto:kennicelow@hotmail.com] > > > > > > > Sent: Thursday, August 16, 2001 5:33 AM > > > > > > > To: tomcat-user@jakarta.apache.org > > > > > > > Subject: More understanding on startup.sh and shutdown.sh > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I am using Linux o/s. I am very new to tomcat. Can anyone > > > > > > > enlightened me > > > > > > > on the starting and stopping of Tomcat ? > > > > > > > > > > > > > > Here is my startup.sh and shutdown.sh > > > > > > > startup.sh: > > > > > > > > > > > > -------------------------------------------------------------- > > > > > ---------- > > > > > > > BASEDIR=`dirname $0` > > > > > > > > > > > > > > $BASEDIR/tomcat.sh start "$@" > > > > > > > > > > > > -----------------------------end------------------------------ > > > > > ---------- > > > > > > > shutdown.sh: > > > > > > > > > > > > -------------------------------------------------------------- > > > > > ---------- > > > > > > > BASEDIR=`dirname $0` > > > > > > > > > > > > > > $BASEDIR/tomcat.sh stop "$@" > > > > > > > -------------------------------end > > > > > ------------------------------------- > > > > > > > > > > > > > > > > > > > > > Here is my questions : > > > > > > > 1)What is $BASEDIR ? > > > > > > > 2)Whenever I run startup.sh or shutdown.sh, the 1st > line shown: > > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > > > > > org/apache/tomcat/shell/Startup > > > > > > > I counld not find the directory /shell from the server. Where > >the > > > > > > > system get > > > > > > > these directory ? > > > > > > > > > > > > > > Any help or info is appreciated. Thank you. > > > > > > > > > > > > > > Best Regards, > > > > > > > Kennice > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > _________________________________________________________________ > > > > > Get your FREE download of MSN Explorer at > > > > > http://explorer.msn.com/intl.asp > > > > > > > > > > > > > > _________________________________________________________________ > > > Get your FREE download of MSN Explorer at > >http://explorer.msn.com/intl.asp > > > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > >