Is there any way to setup Tomcat server so whenever I make changes to Java class or JSP page the change is visible on browser refresh.
I’m bored stopping and starting Tomcat. I want to configure Tomcat like the way WAMP works [where you can see the PHP code change upon browser refresh]
Is there any way to setup Tomcat server so whenever I make changes to
Share
If it’s for development mode that’s ok. Don’t use it for production stuff.
You don’t have to restart the server. You can restart the app through the Tomcat Manager.
You can even do this directly as: http://[hostname]:[port]/manager/reload?path=%5B/path/to/your/webapp%5D
or
Define your context as reloadable
Be careful: It is NOT recommended to place elements directly in the server.xml file
Check out the Tomcat configuration guide
For java classes: reloadable
For JSP: development ($CATALINA_BASE/conf/web.xml)
Hope this helps