Is there a way to deploy the jar without rebooting in Tomcat 9?
I know this question came up here, however this applies to tomcat 9.
Is there something that has changed in recent tomcat releases that allows you to deploy the jar file without restarting tomcat? We are using tomcat 7 in our development and all developers reloading tomcat take a long time. Its an application that has 700 java files that are embedded in the .jar file and about 1000 jsp files that rely on this .jar file, we are not using war. Can WatchedResource be used for this?
source to share
If you are using the Eclipse IDE you can simply use the FileSync plugin to quickly deploy files .class
to tomcat WEB-INF/classes
.
Basically, you need to map the folder YOUR_PROJECT/target/classes
to WEB-INF/classes
so that they are always in sync.
This is what we do in our project to avoid restarting Tomcat due to changes to the source file.
source to share