Home > J2EE, JSP, Technical > Reload a class without restarting tomcat

Reload a class without restarting tomcat

February 29, 2012

Step 1: Open tomcat_dir/conf/context.xml

Step 2: Change  from <context>  to <context reloadable=”true”> then save the changes

Step 3: Open tomcat_dir/conf/server.xml

Step 4: Add the following lines

<Context path=”” docBase=”ROOT” debug=”0″/>
<DefaultContext reloadable=”true”/>

Step 5: Save the changes and restart the tomcat server, now servlet class changes can work without restarting tomcat server

 

 

Advertisements
Categories: J2EE, JSP, Technical
%d bloggers like this: