Reputation: 35874
Forgetting about why I need to do this for a minute...
I need to deploy a handful of class files into an existing / running webapp. I can't build and deploy the entire WAR for this. I've copied the class files to the right place. Made sure the permissions on the files were right. I've cleared Tomcat's work folder. I've bounced Tomcat. But it is still delivering results from the old class files.
If it matters, these class files relate to a Grails service class which is loaded as a singleton in the spring context. I must be missing something but not sure what it is.
UPDATE: I tried extracting the existing WAR into a directory and replacing the class files in it, then repackaging it into a WAR and deploying the application. Still no joy. This is really perplexing.
Upvotes: 3
Views: 1112
Reputation: 3597
I'm not sure what OS you are on but I had an issue similar to this where even after bouncing Tomcat the web app wouldn't die. I was running my app on windows and had to check cmd netstat -a
to see that the port was still in use after I tried to kill the app. Then checked under Component Services to kill the tomcat service. Application updated fine after restarting tomcat... I hope this helps
Upvotes: 2