Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context.xml error?

 
Donald Winston
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18097
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic