This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
 
GeeCON Prague 2014
 
subject: Tomcat on Eclipse: Tomcat restarts on each save of .java file