nuaavee nuaavee - 1 year ago 100
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download