When you simply copy WAR file into $CATALINA_HOME/webapps directory like Lomboz does, 
you don't need to configure a <context> to describe a path, Tomcat will automatically 
make it available as localhost:8080/FolderName
Where FolderName is the name of the folder inside /webapps/ where you application is.

IF you do want to configure a separate context, you would want to do it inside 
server.xml.  It's described very well at Jakarta.apache.org documentation.  You can 
also toy around with /META-INF/context.xml (located similar to /WEB-INF/web.xml), and 
there specify the <context> like you would in server.xml.   But I'd be very careful, 
because Tomcat seems to be very buggy when it comes to the second approach.

> -----Original Message-----
> From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 8:12 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 5 Context problem
> 
> Hi, it really not a problem because I got everything work. I just
> curious WHY it will work ... ^^
> 
> I am using Esclipse 3.0 + Lomboz 3.0RC2 and I develop a webapp,
> details as follow:
> 
> WebApp name: FirstWebApp
> Servlet name and class : FirstServlet, FirstServlet.class (package-less)
> web.xml: has a servlet mapping element of "/FirstServlet"
> 
> after I depoly the webapp to Tomcat using Lomboz, I can access the
> servlet at http://localhost:8080/FirstWebApp/FirstServlet
> 
> However I know Tomcat need a <Context> element in order to find the
> path of a webapp, and I can't find this <Context> element of
> FirstWebApp throughout Tomcat. Not in server.xml, not in
> conf/engine/host, not in /webapp/FirstWebApp/WEB-INF/web.xml
> 
> Tomcat just depoly it automatically and it is great, do this mean i
> don't need to care about the <Context> element? If i do care, where
> should I put this <Context> element?
> 
> new in here, greeting to everybody, hope someone can help me out
> 
> Regards ^^
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to