nuaavee nuaavee - 5 months ago 11x
Java Question

Having to restart tomcat whenever you make a change

Is there a way around having to restart tomcat every time a small change is made in java code?


Set reloadable attribute of <Context> element in context.xml to true.

<Context reloadable="true">

Then Tomcat will monitor changes in /WEB-INF/classes and /WEB-INF/lib and reload whenever appropriate.

If you're using an IDE, this is configureable as server setting as well. Here's how it look like in Eclipse:

alt text