Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webapps/war file not deploying automatically in tomcat4.0.1

 
Dez Max
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Yup, I thought I had answered that one before.

http://www.coderanch.com/t/81715/Tomcat/Tomcat-unpacking-wars
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
p.s. 'Fred'

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