• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context in server.xml

 
Keith Lockey
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try putting a context for database pooling in the server.xml, it works on my jbuilder and then when I switch over to the tomcat standalone, the war file will not unpack unless i take the context out. Not sure what to do?
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keith,
I found the same thing and I'm not sure why it works this way. BTW, You can also define a context in a separate whatever.xml file deployed in the webapps directory. I find this more maintainable and is especially useful if you aren't allowed access to server.xml. It still won't auto-unpack the war though. A cursory check of the Tomcat website and docs revealed nothing. I just live with it and unpack it manually. You could try posting the Tomcat site if nobody here knows.
kktec
SCJP, SCWCD, SCJD
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been around for a while, and it still annoys me.

http://www.coderanch.com/t/81715/Tomcat/Tomcat-unpacking-wars
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic