tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <>
Subject Re: Since there's no FAQ...
Date Fri, 07 Jul 2000 08:13:55 GMT
...yes, there is: is also
helpful (it's the Tomcat subtopic on my Servlet FAQ)

> 1) What does tomcat understand it's working directory to be at
> startup?  Can that be specified somewhere?

TOMCAT_HOME environment, and/or the parent of whatever bin directory
the script was run from, and/or you can specify it

But the whole concept of "current durectory" is problematic in a
servlet engine, so you should always use absolute file paths in

> 2) What does tomcat understand it's CLASSPATH to be at startup?  Can
> that be specified somewhere?

It's specified in tomcat.bat /, plus it includes a variety
of directories and JARs from TOMCAT_HOME/lib and the webapp's lib and
classes directories, not to mention JSP and Servlet class directories.

What do you want to include?  A jar or a class?  Is it a system
library or your own code?  Is it global to all servlets, or just used
in your own servlet or your own webapp?

> 3) In my binary distribution there was a conf directory with XML
> (server&web) and conf/properties files
> (tomcat.conf,  I removed tomcat.conf and
>; is there a point to having them?

I believe and tomcat.conf are both obsolete.
Especially if you use mod_jk instead of mod_jserv.

tomcat-apache.conf is automatically generated by the tomcat engine,
and should be included into your apache config with a trivial
"include" directive.

> I had high hopes for the XML config-files, but I'm underwhelmed 
> with the apparent options in them. Has anyone written complete 
> documentation  for server.xml and web.xml?  Maybe I'm just looking 
> in the wrong place (i.e., at the tomcat site).

web.xml is documented in the Servlet Spec -- see Sun's site

server.xml is self-documenting, and getting better all the time,
though it's still pretty sparse, I know.  Part of the problem is the
options themselves are in development; that's kind of the point of the
file, that it allows us to easily add options to Tomcat.

Alex Chaffee             
jGuru - Java News and FAQs
Creator of Gamelan       
Founder of Purple Technology
Curator of Stinky Art Collective

View raw message