Hi Anja, 

To set up a new context you really only have to add a line to server.xml
but just to take on the basics I take it from the start.


create a folder that has a web-app structure : 
context / 
  - WEB-INF/
    web.xml - configuration file for this webapp
       -/lib/ your jar files here
       -/classes/your classes (compiled) here

then add a line like this one : 

  <Context path="/nameofcontext" docBase="C:\path_to_context_root"
debug="0" reloadable="true"/>

in to the host scope of your server.xml (suggestion beneath the one
context that is already specified). 

if you do this, restart tomcat and you have a new context available
under http://www.yourserver.com/nameofcontext/

there for the path to execute your servlets (in the classes directory of
your webapplication) you should have 
http://www.yourserver.com/nameofcontext/servlet/nameofServlet


hope it helps
-reynir





> -----Original Message-----
> From: Anja Falkner [mailto:[EMAIL PROTECTED]]
> Sent: 7. febr�ar 2002 22:06
> To: Tomcat Users List
> Subject: Re: WEB-INF/classes
> 
> 
> Hi Nancy,
> 
> I am using Tomcat 4.0.1. What's to do here?
> 
> Anja
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to