• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

WAR Deployment: Should a WAR 'unpack' when deployed?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just beginning to work with Tomcat and have attempted to deploy web applications. After creating a .WAR file and adding a new entry to the server.xml file
(<Context path="/mydev" docBase="c:/tomcat/webapps/mydev.war" debug="0" <br /> reloadable="true"/><Context path="/mydev" docBase="c:/tomcat/webapps/mywar.war" debug="0" <br /> reloadable="true"/>)
I have placed the WAR file in the webapps directory. I seem able to access the JSP I have deployed, but I expected the WAR file to be unpacked, which doesn't happen. Is this the correct behavior?

 
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
No, it should unpackage itself.

Try removing that new entry from server.xml and see what happens.
[This message has been edited by Mike Curwen (edited November 19, 2001).]
 
chris kirby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike,
That worked! Thanks a lot.
Chris
 
Mike Curwen
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
As an 'end-note' for this post.. I saw this in another post in this forum, and perhaps it has something to do with your situation.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html

Check for the attribute "unpackWARs". Perhaps it was set to false?
 
reply
    Bookmark Topic Watch Topic
  • New Topic