RE: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Turner, John

Tomcat sets it's own classpath...it ignores environment variables except
JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.

If your Tomcat installation or webapp has a problem finding particular
classes, or you suspect that it does, you might want to check the
ClassLoader HOWTO for information on exactly how Tomcat finds classes:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

John


-Original Message-
From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 5:29 PM
To: Tomcat Users List
Subject: setting up classpath for tomcat running as windows NT service


Hi,

How to setup classpath for tomcat 4.x running as windows NT service?
Apparently, when started, tomcat.exe does not read from catalina.bat (or
so i think).

Regards,
Manav.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Will Hartung
 From: Turner, John [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 2:44 AM
 Subject: RE: setting up classpath for tomcat running as windows NT service

 Tomcat sets it's own classpath...it ignores environment variables except
 JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.

This is only partially true, and a common misconception. (John, you should
know better.)

Tomcat does indeed go to great lengths to set up its own class loaders, and
catalina.bat/.sh happens to, mostly, ignore CLASSPATH, but that does not
mean the Tomcat does. In many ways, it simply can't.

You can always change catalina.bat/.sh (or not use it at all if you so
desire) to set the CLASSPATH environment variable, or pass the -classpath
parameter on the java command line, and Tomcat will see those classes
through the system class loader.

It is not the recommended way to add classes to Tomcat, but it is still a
viable, and rarely, a necessary option.

Now, how this affects setting up the CLASSPATH for running Tomcat as a NT
service, I haven't a clue. But, FYI and all that y'all.

Regards,

Will Hartung
([EMAIL PROTECTED])





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Turner, John

I know that you can change CLASSPATH in the startup scripts or on the
command line, as well as other things.  My point was that, out of the box,
if you execute startup.bat or startup.sh, an environment variable named
CLASSPATH isn't going to do much.  Since a large portion of the traffic on
the list is from folks just trying to install and run Tomcat to do/learn JSP
and servlet development, and the poster originally mentioned NT, I assumed
that they were probably interested in a default, lowest-common-denominator
answer.  Probably a bad assumption.

John


 -Original Message-
 From: Will Hartung [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 12:23 PM
 To: Tomcat Users List
 Subject: Re: setting up classpath for tomcat running as windows NT
 service
 
 
  From: Turner, John [EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 2:44 AM
  Subject: RE: setting up classpath for tomcat running as 
 windows NT service
 
  Tomcat sets it's own classpath...it ignores environment 
 variables except
  JAVA_HOME, CATALINA_HOME, and CATALINA_BASE.
 
 This is only partially true, and a common misconception. 
 (John, you should
 know better.)
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]