 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bradley Kieser Guest
|
Posted: Thu Apr 08, 2004 12:09 am Post subject: WAR file unpacking: When a WAR file won't unpack this could |
|
|
I found this note online and it answered a problem with WAR file
deployment that was giving me a headache in Tomcat, so want to share it
with others because I KNOW that I am not alone being bugged by this.
In Tomcat, to unpack a WAR file, you need to:
a) Deploy it into the webapps dir and nowhere else.
b) Ensure that Tomcat has perms to read it!
c) Ensure that the "unpackwars" flag is set to true in the server.xml file
d) The WAR file must have the same name as the directory name of the
webapp it is deploying
Now, what doesn't come up in the error logs and is VERY scantly
mentioned nearly everywhere is that you MUST DELETE THE DIRECTORY of the
webapp that the WAR file is going to deploy! If you don't Tomcat will
NOT update (i.e. overwrite) the contents of the existing directory with
the new one.
There are no errors that come up and no clues as to why your WAR file
doesn't deploy. It just doesn't.
I hope that this posting saves others loads of headbashing! This problem
sure got me!
brad
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|