jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Tomcat 5.5, META-INF/content.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5, META-INF/content.xml" Watch "Tomcat 5.5, META-INF/content.xml" New topic
Author

Tomcat 5.5, META-INF/content.xml

sinoea kaabi
Greenhorn

Joined: Aug 26, 2008
Posts: 1
Dear all,
I understand that Tomcat 5.5 prefers that your web application comes with a context.xml file under the META-INF folder.

So I added a context.xml file under the META-INF folder of my web application,
please have a look below.

context.xml



Ok, that is good so far, but how do I configure the Host element.

I mean how do you link a specific Host to a specific Context?
Before, the Context element was a sub element of the Host element,
now it is completely separated.



Host in server.xml



I assume that if I modify the appBase of the Host element from webapps to webapps/test then it would work, but if I have several
Contexts for the specific Host, how should I configure it then?


Please help by giving examples!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat 5.5, META-INF/content.xml
 
Similar Threads
Loading a properties file in a WS
Context hell
passing session values between two web application
Cannot load JDBC driver for mysql in Servlet
Accessing a context.xml from a virtualhost