tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: WEB-INF/classes
Date Thu, 07 Feb 2002 21:11:02 GMT
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:anja.falkner@fimedia.de]
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message