Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Tomcat Debug - Change in class results in restart
Tomcat Debug - Change in class results in restart [message #132303] Fri, 12 August 2005 08:52 Go to next message
Eclipse UserFriend
Originally posted by: r.david.notthistime.de

Hi,

i started working with eclipse 3.1 and the wtp 0.7. When debugging a
webproject and modify a class the tomcat-thread will be restarted. That
means a new login, navigation to the test point and so on. In eclipse 2.x
there was a class replacement at runtime - it worked most of the time. How
can I activate that feature or is it gone forever?!

Rainer
Re: Tomcat Debug - Change in class results in restart [message #132615 is a reply to message #132303] Sat, 13 August 2005 13:49 Go to previous message
Eclipse UserFriend
Originally posted by: nils.teha-systems.de

Hi,

> In eclipse
> 2.x there was a class replacement at runtime - it worked most of the
> time. How can I activate that feature or is it gone forever?!

I think you must make sure that your web module has the "Auto reload"
flag set to "Disabled". You can set this flag via your "Web Modules"
configuration (double click on your server or select "open" in the
context menu of your Servers view, then switch to "Modules"). Changing
this flag which will set the "reloadable" attribute for your
application's Context in tomcat's server.xml file to false. This works
for me with JDK1.5 and Tomcat 5.5. (I think that otherwise Tomcat
detectes a (class) file change when Eclipse recompiles the source file
and then reloads the context).

(Note: in my local environment (linux) the server.xml-file is somtimes
not updated when I change this flag via the gui. In those cases I remove
the whole server configuration and create a new one. Ugly but only a few
mouse clicks).

Hope that helps !
Nils
Previous Topic:Do DB Tools work at all on Mac OS X?
Next Topic:How to make TCP/IP monitor work in WTP
Goto Forum:
  


Current Time: Fri Apr 25 20:36:40 EDT 2025

Powered by FUDForum. Page generated in 0.03513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top