Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kapil Ranade
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope updating context.xml resolves your issue. Please see the link
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic