• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Context in server.xml

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has been around for a while, and it still annoys me.

https://coderanch.com/t/81715/Tomcat/Tomcat-unpacking-wars
 
There is no "i" in denial. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic