File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Soft Skills this week in the Jobs Discussion 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: 16305
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: context.xml error?