You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Lu, Spencer" <sl...@spaceworks.com> on 2001/04/12 01:29:26 UTC

A couple of questions

Hi,

I've recently installed Tomcat 3.2.1 (win32) on my computer.  I'm trying to
understand how certain things are configured, and I have a couple of
questions:

1) When I go to the Servlet Examples page
(http://localhost:8080/examples/servlets/index.html), there is a link that
executes the Hello World servlet.  This link is
http://localhost:8080/examples/servlet/HelloWorldExample.  How does Tomcat
know that when it sees "/examples/servlet/" in the URL, it is supposed to
look in the examples/WEB-INF/classes directory for the
HelloWorldExample.class file?  I haven't been able to find anything in the
server.xml or web.xml files that shows how this is configured.

2) Would it be possible for me to place my application in a completely
separate directory tree and not in a war file?  Or does it have to be in a
war file in the webapps directory?

Thanks for your help,
Spencer


ETA for 3.3???

Posted by Jess Holle and Wendy Vidlak <je...@mediaone.net>.
What is the expected time of arrival / release of Tomcat 3.3???

It's been at the same milestone seemingly for aeons while Tomcat 4.0
continues to show more obvious (to those not doing lots of CVS snooping)
signs of progress.  Problem is we need 3.3 ASAP whereas 4.0 is "out there".

--
Jess Holle


RE: A couple of questions

Posted by Filip Hanik <ma...@filip.net>.
first things first,
you will have 90% of your questions answered by reading the servlet
specification from Sun.
this answers question 1 for you

> 2) Would it be possible for me to place my application in a completely
> separate directory tree and not in a war file?  Or does it have to be in a
> war file in the webapps directory?

yes, you will just have to setup classpaths etc properly for servlets and
other classes.
The server.xml file allows you to configure other contexts outside of the
webapps directory.

Filip



~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
filip@filip.net
www.filip.net

> -----Original Message-----
> From: Lu, Spencer [mailto:slu@spaceworks.com]
> Sent: Wednesday, April 11, 2001 4:29 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: A couple of questions
>
>
> Hi,
>
> I've recently installed Tomcat 3.2.1 (win32) on my computer.  I'm
> trying to
> understand how certain things are configured, and I have a couple of
> questions:
>
> 1) When I go to the Servlet Examples page
> (http://localhost:8080/examples/servlets/index.html), there is a link that
> executes the Hello World servlet.  This link is
> http://localhost:8080/examples/servlet/HelloWorldExample.  How does Tomcat
> know that when it sees "/examples/servlet/" in the URL, it is supposed to
> look in the examples/WEB-INF/classes directory for the
> HelloWorldExample.class file?  I haven't been able to find anything in the
> server.xml or web.xml files that shows how this is configured.
>
> 2) Would it be possible for me to place my application in a completely
> separate directory tree and not in a war file?  Or does it have to be in a
> war file in the webapps directory?
>
> Thanks for your help,
> Spencer
>
>