• 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

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?
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic