• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

webapps/war file not deploying automatically in tomcat4.0.1

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I've packaged my web-application in a war file and placed under webapps directory. I've enter the context too in server.xml. The unpacked attribute of server.xml is also set to true. When the server starts up its suppose to deploy the war file automatically but its no doing so. Did i missed out anything else?
Help...
Fred
 
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
When you put the war file into webapps, and just don't use any Context information in server.xml (ie: do *not* put a context there for your webapp), Tomcat has been able to unpack the WAR.

If you have a context, however, Tomcat isn't so smart..even with the proper attribute in place. That's been my experience.

So what if you want to set things up in your Context, like loggers ? You need to unpack the WAR file yourself, is the short answer.
 
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
Yup, I thought I had answered that one before.

https://coderanch.com/t/81715/Tomcat/Tomcat-unpacking-wars
 
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
p.s. 'Fred'

Please refer to our naming policy
[ October 27, 2002: Message edited by: Mike Curwen ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic