On Mon, 7 Jan 2002, vijay wrote: > Hi Milt, > Iam starting TOMCAT using a shell script: /usr/local/jakarta/bin/startup.sh > > But, before starting the tomcat i'm running my bash_profile. > > CAn you explain what do you mean by " If so, what > may matter is the CLASSPATH (and other environment variables) set up > in that shell script, not in your shell's profile. So you may need to > define the CLASSPATH there"
That shell script sets up the environment (including all environment variables, such as CLASSPATH) that tomcat runs in. You may be running that shell script in the environment set up by your bash_profile, but that shell script can set/modify the environment as it wants -- in particular, it may unset/modify environment variables, like CLASSPATH. (Further, is it always the case that that shell script runs in the environment set up by your bash_profile? For example, if you have tomcat set up to start up when the system starts up, it may be in a different environment. So you may not be able to rely on settings in your bash_profile.) Anyway, the first thing I'd do is to see what manipulations of CLASSPATH that shell script does. > Milt Epstein wrote: > > > On Mon, 7 Jan 2002, vijay wrote: > > > > > Can any one explain why TOMCAT webserver is not taking the > > > CLASSPATH defined in bash_profile. > > > > > > i've installed TOMCAT 4.0 on LINUX 7.0. When i start the server it takes the > > > following classpath > > > :/usr/local/jakarta/bin/bootstrap.jar:/usr/local/java/lib/tools.jar > > > > > > > > > instead of taking the CLASSPATH given in .bash_profile: > > > >CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/jdbc/lib/classes12.zip:$ORACLE_HOME/jdbc/lib/nls_charset11.zip:/usr/bin/JSDK2.0/lib/jsdk.jar:/usr/local/jakarta > > > > How are you starting tomcat? Via a shell script? (That's probably > > the case, as I think that's the standard way to do it.) If so, what > > may matter is the CLASSPATH (and other environment variables) set up > > in that shell script, not in your shell's profile. So you may need to > > define the CLASSPATH there. > > > Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
