tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <g...@edamame.stinky.com>
Subject Re: Since there's no FAQ...
Date Fri, 07 Jul 2000 08:13:55 GMT
...yes, there is:

http://jakarta.apache.org/faq/faqindex.html

http://www.jguru.com/jguru/faq/faqindex.jsp?topic=28150 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 tomcat.sh 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
servlets.

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

It's specified in tomcat.bat / tomcat.sh, 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,tomcat.properties).  I removed tomcat.conf and
> tomcat.properties; is there a point to having them?

I believe tomcat.properties 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
java.sun.com/products/servlet

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                       mailto:alex@jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

Mime
View raw message