- This topic has 1 reply, 2 voices, and was last updated 18 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
Roel De NijsMemberI’m working with MyEclipse and a colleague of mine is migrating a project from RAD (Rational Application Developer, IBM) to MyEclipse for testing the new development environment (RAD still lacks support for Java 5.0)
We noticed a very strange problem: deploying the app, no problem. running the app, no problem. when he added to a class some lines with just System.ou.println(“blahblah”); this lines weren’t printed and skipped while debugging that method. very strange.
and we tried everything that i know of: cleaning project, rebuilding project (both automatically and manual), removing deployment, deploy project, shutting down tomcat, restarting tomcat, combinations of all. ultimately shutting down MyEclipse and restarting it. but no avance, still in debug mode the added lines were skipped and no output was generated.
so it seems these classes are cached and the cache isn’t refreshed properly.
Please help to solve this issue
Riyad KallaMemberwhen he added to a class some lines with just System.ou.println(“blahblah”); this lines weren’t printed and skipped while debugging that method. very strange.
Depends, if you are referring to hot-swap not working, make sure your app server supports JSR-45, and that you are running Eclipse and your app server with VM’s both 1.4 or later and preferablly both the same VM, something like 1.5.0_06 works great or the latest 1.4.2 release.
and we tried everything that i know of: cleaning project, rebuilding project (both automatically and manual), removing deployment, deploy project, shutting down tomcat, restarting tomcat, combinations of all. ultimately shutting down MyEclipse and restarting it. but no avance, still in debug mode the added lines were skipped and no output was generated.
Hmm. If you are running Eclipse and TOmcat with the same JDK, for example, 1.5.0_06, and you are using Tomcat 5.5.17 (for example) AND most importantly you have Tomcat setup to launch in debug mode (Window > Prefs > MyEclipse > App Server > Tomcat 5 > Launch) then it should hot code replace your class for you. If you have it in Run mode, that might be why it’s ignoring the change.
-
AuthorPosts