File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes War not updating my project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "War not updating my project" Watch "War not updating my project" New topic
Author

War not updating my project

Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
I was able to send war files to the System admins for our Tomcat 4.1.27 container and it would update my project in the /webapps/firstweb project. My latest War for that project doesnt work. The web site (in the webapps/firstweb directory) is still there with the prior war info but the latest war file they put in the webapps directory doesnt seem to autodeploy and update my web site.

I asked the system admin to shut down the container (/bin/shutdown.bat) and then restart it (/bin/startup.bat) and it doesnt seem to take my updated war file.

Any thoughts on why it is doing this and anything I can suggest for them to get it to work? I have 4.1.3 in my local development environment and have no problems with the War files updating my webapps.

Also I cant update to Tomcat 5.5 for another year due to system issues.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

my updated war file

Are you sure you're actually handling an updated war ?
Unpack it and check that it really contains the new version.


[My Blog]
All roads lead to JavaRanch
Mike Jenkins
Ranch Hand

Joined: Jul 23, 2006
Posts: 57
Thanks for quick reply.

Yes I did check it and it is the latest war file.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you use the Tomcat manager to undeploy your app before deploying the new version, all the old files will be deleted. Otherwise adding a new version is like unzipping on directory structure on top of another. New files will be added, existing ones overwritten if there is a new copy, and files that were in the old version but don't exist in the new, will remain.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: War not updating my project