wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat on Eclipse: Tomcat restarts on each save of .java file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat on Eclipse: Tomcat restarts on each save of .java file " Watch "Tomcat on Eclipse: Tomcat restarts on each save of .java file " New topic
Author

Tomcat on Eclipse: Tomcat restarts on each save of .java file

Kapil Ranade
Greenhorn

Joined: Jan 31, 2011
Posts: 2
Hello,

I have Tomcat 5.5 being added in Eclipse Europa server's list. My project is plain J2EE with .java and .jsp files.

We use log4j for logging and JNDI for database connections.

Whenever I save .java file, the hot replacement of class file fails and Tomcat restarts, but whenever I change and save a jsp file, it gets published without any problem.

Hot replacement of class files used to work untill we started using JNDI.

This is really frustrating while debugging and issue.

I appreciate any help on this.
Kapil Ranade
Greenhorn

Joined: Jan 31, 2011
Posts: 2
It gives following in the output and restarts:

Feb 1, 2011 11:22:49 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Feb 1, 2011 11:22:49 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Feb 1, 2011 11:22:50 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Feb 1, 2011 11:22:51 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

Hope updating context.xml resolves your issue. Please see the link


Java Experience
 
wood burning stoves
 
subject: Tomcat on Eclipse: Tomcat restarts on each save of .java file
 
Similar Threads
Weblogic 10 and JSF Hot Deploy
Tomcat abnormally restarts when a JSP or Javascript file is modified.
Hot Deployment of Individual Class/JSP Files
eclipse tomcat context reloading on each jsp save :(
Hot deployment tomcat eclipse