aspose file tools*
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
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: 16014
    
  20

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.
 
Don't get me started about those stupid light bulbs.
 
subject: context.xml error?