Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context Configuration File - auto-expand WAR

 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • 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.)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In server.xml we find:
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic