• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Context Configuration File - auto-expand WAR

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there something to specify in a context configuration file that would instruct Tomcat to expand a WAR?
At the moment, I'm using the following context configuration file. With it, Tomcat 4.1.x doesn't expand the WAR, but the web app does run successfully. (Of course, a few things do end up in the work directory.)
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In server.xml we find:
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The host tag in my server.xml file looks the same.
However, when I install and start a WAR, with the above context configuration file, using the manager app, the WAR is not expanded.
This may just be some buggy behavior of Tomcat 4.1.27. I can repeat it on four different machines.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like the unpack rule is only applied when Tomcat is starting up and searching for new WAR files. What happens when you restart Tomcat?
Bill
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I (re)start Tomcat with the context configuration file in place, then the WAR is not expanded. If I simply remove the context configuration file, then the WAR is expanded (when restarting, or if the WAR alone is simply added to the webapp folder while Tomcat is already running). That's why I was thinking that maybe I should be adding something to the context configuration file to get the WAR to expand.
I'd simply go without the context configuration file, but then I can't use my Ant script to install/uninstall/start/stop/restart the web app through the manager app, which seems to require the context configuration file.
[ May 09, 2004: Message edited by: Dirk Schreckmann ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic