- This topic has 9 replies, 3 voices, and was last updated 18 years, 11 months ago by
ranimathur.
-
AuthorPosts
-
lukmanphMemberHi there
my config:
Eclipse 3.1.1
Myeclipse 4.0.3 GA
Tomcat 5.0.28
jdk 1.4.2when I debug with Tomcat, it does not refresh the code, and i have the ‘reloadable’ set to true for my web application.
Example, if i change a line of code during a debug session, it won’t refresh it.
So i start up Tomcat again but it keeps debugging a old line of code (which has been already deleted but that had a breakpoint, and removed all previously set breakpoints).
thanks in advanceJanuary 25, 2006 at 7:49 pm #245344
Riyad KallaMemberAre you using an exploded deployment?
January 26, 2006 at 9:14 am #245403
lukmanphMemberyes, I’m
January 26, 2006 at 1:53 pm #245452
Riyad KallaMemberTry this:
1) Deploy your project
2) Wait a few minutes (yes minutes)
3) Fire up tomcat
4) Open up the deployment dialog, select your deployment and click Browse
5) Now drill down to the classes subdirectory of a class you want to change. Display the “details” view of your file listing to see the time stamp
6) Go back to MyEclipse, open that Java file up for that class, and add a space at the end of it and save it.
7) Did you see the timestamp in the file explorer update?January 27, 2006 at 2:38 pm #245544
lukmanphMemberhi Riyad
i just did that, and no, the timestamp of the class does not change in the File Explorer ….
January 27, 2006 at 6:13 pm #245554
Riyad KallaMemberOk that’s not good. Please give me your Eclipse Build ID (Help > About menu) and your MyEclipse Build ID (MyEclipse > About menu).
Also check your log file (<workspace dir>\.metadata\.log) for exceptions near the bottom pertaining to deployment.
Also is this a Web, EJB or EAP project?
January 28, 2006 at 4:35 pm #245570
lukmanphMemberhi Riyad
i reinstalled latest version of MyEclipse with a clean Eclipse installation and everything seems to be working now.
however, got a question:
1- if i deploy a webapp on Tomcat, and declare it as the default application in server.xml, the hot swap works without restarting the context of the application. however,if deployed as not the default application, it restarts up the context… is it the expected behaviour?cheers
PatriaJanuary 28, 2006 at 5:28 pm #245571
Riyad KallaMember1- if i deploy a webapp on Tomcat, and declare it as the default application in server.xml, the hot swap works without restarting the context of the application. however,if deployed as not the default application, it restarts up the context… is it the expected behaviour?
Patria,
MyEclipse doesn’t handle this behavior. This is determined by the “reloadable=true” property set for that context. Double check your config files, you can probably set that to false and tomcat will stop reloading the context.January 29, 2006 at 11:00 pm #245598
lukmanphMemberok,got it….
thanks for your replyAugust 8, 2006 at 7:05 pm #256394
ranimathurMemberHi Riyad,
I got the same issue, I m using my eclipse version 4.1.1 and Resin as application server (resin-pro-3.0.14), jdk 1.4.2 and eclipse 3.1.0.
Sometimes when i m debugging and I find the problem –> change the file –> save it –> it runs changes too.
but sometimes it doesn’t ?? any specific reason ?? -
AuthorPosts