my dog learned polymorphism*
The moose likes Tomcat and the fly likes context.xml error? 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 "context.xml error?" Watch "context.xml error?" New topic
Author

context.xml error?

Donald Winston
Greenhorn

Joined: Jul 16, 2010
Posts: 16
In log: WARNING: A docBase /usr/local/apache-tomcat-6.0.26/webapps/test inside the host appBase has been specified, and will be ignored

I use META_INF/context.xml where docBase="test" path="/test"
Is this wrong?
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Donald Winston wrote:
I use META_INF/context.xml where docBase="test" path="/test"
Is this wrong?


You can't set docBase in context.xml when it is in META-INF.

Tomcat Docs


Thanks, leo
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

leo donahue wrote:
Donald Winston wrote:
I use META_INF/context.xml where docBase="test" path="/test"
Is this wrong?


You can't set docBase in context.xml when it is in META-INF.

Tomcat Docs


Well, you can actually, but it

... will be ignored


That's OK, though, if you do something like define the production context in META-INF/context.xml but you want to override it to run the app on a test system.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: context.xml error?
 
Similar Threads
when configure tomcat new Context tomcat creates me 2 web apps
IIS and TOMCAT
passing session values between two web application
Not Able to Deploy War Files in Tomcat 6
Filter not triggerring for applications outside webapps