I am using Tomcat to deploy my web applications (written in Struts), and I am constantly doing updates on the files (like configuration files, jsps and the like) by replacing the files in the extracted folder of the WAR in the webapps folder and reloading it.
My problem though is, if the Tomcat is restarted, the updates that I did on the extracted folder is replaced with the old files from the WAR. Is there a way that I can do my updates easily, as I don't want to upload a new WAR to the server every time a new update is needed especially if it is just changes in the jsp or conf file? Can I just delete the WAR and leave the extracted folder there? Will deleting the WAR cause any problems to the application?
Any advice will be appreciated.
Thanks,
Eugene
There's so much to learn in this industry, and not everybody has the necessary interest.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35257
7
posted
0
If you delete the WAR file while Tomcat is running, then Tomcat will undeploy and delete the complete web app directory - probably not what you want.
If you don't want to use the WAR file, why are you deploying the web app using one in the first place?
I'd suggest to: shut down Tomcat, delete the war file, and then work with the web app directory contents exclusively.