• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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?
 
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic