• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 5.5, META-INF/content.xml

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic