I’m trying to deploy a web app from Eclipse to Tomcat, in a packaged format. The problem is that the .war file is copied to the webapps directory, but the ‘exploded’ directory is not updated, meaning that I’m always using the old version, until I remove the directory and restart tomcat.
This is Tomcat’s normal behavior, I would suggest you stop using packaged deployments at all during development. If you use exploded deployments your changes will be immediately hotsynced with Tomcat and you don’t even need to use the Deployment Tool anymore (save for a few times that the hot sync might fail and you need to restart).
My tomcat server is running as root, and what I notice is that although the war file is owned by my user account, the exploded directory created by tomcat is owned by root.
This is also normal, Tomcat is running as root, so technically “root” is unzipping that WAR file, so all the files have “root” perms.