Yeah it's true that TOMCAT startup script completly ignores the CLASSPATH.
I've checked the catalina .sh script
where it is using it's own CLASSPATH. When i tried to add my bash_profile
CLASSPATH, server startup is giving errors.
This is the code in catalina.sh

CP="$CATALINA_HOME/bin/bootstrap.jar";

if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
  CP=$CP:"$JAVA_HOME/lib/tools.jar"
fi
if [ -f "$JSSE_HOME/lib/jsse.jar" ] ; then

CP=$CP:"$JSSE_HOME/lib/jcert.jar":"$JSSE_HOME/lib/jnet.jar":"$JSSE_HOME/lib/jsse.jar"

fi


i tried to add my CLASSPATH like this:

if [ -f "$CLASSPATH" ] ; then
  CP=$CP:"$CLASSPATH"
fi

But it seems it's not even finding $CLASSPATH.

Any idea how to manipulate this.

Thanks
Vijay

"Christopher K. St. John" wrote:

> vijay wrote:
> >
> > 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"
> >
>
>  Read the Class Loader HOW-TO. You should have a copy of this
> in your local Tomcat installation, or you can get to it online
> at:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/
>
>  It's a good idea to skim over all the docs in that directory.
>
> > But, before starting the tomcat i'm running my bash_profile.
> >
>
>  From the HOWTO:
>
>  "the standard Tomcat 4 startup scripts ($CATALINA_HOME/
>   bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally
>   ignore the contents of the CLASSPATH environment variable"
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to