MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jiazhiming
Post subject: tomcat 4 hot deployment issue  PostPosted: Oct 22, 2004 - 03:57 AM
Registered Member
Registered Member


Joined: Oct 21, 2004
Posts: 6

So far, the biggest problem I encounter is the hot deployment of web application to Tomcat. I always have to restart the server to do redeployment. The server always hold some jar file which myeclipse fail to delete hence fail to redeploy.

recently I redeploy a web appliation and myeclipse complain about the standard.jar being locked, clearly the library do not need to be deleted. Can myeclipse improve so that it delete only the files has been modified to minimize the chance that hot deployment failure?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 22, 2004 - 05:55 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

This is exactly what happens when you use an "Exploded deployment", the changes are copied out immediately after you save the file... just make sure ot have Tomcat setup to reload the changes (might take up to 15 seconds).

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jiazhiming
Post subject:   PostPosted: Oct 22, 2004 - 08:18 AM
Registered Member
Registered Member


Joined: Oct 21, 2004
Posts: 6

Thanks for the reply. If I understand correctly, you mean I don't need to manually do redeployment, I just need to save the changes, wait for some seconds, and then go to browser to test and it will reflect my changes. sounds nice. seems it works somehow. of course, sometimes still have to restart. but, anyway, it is good enough.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 22, 2004 - 04:08 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Yep you got it, when you DO have to restart is when Tomcat is unable to cleanly reload the changed classes (if the structure chanegs too much, it can't). However, you can keep the Tomcat manager open in another browser window and just click "Restart" next to the context you are working on, this will allow you to avoid restarting the entire application server.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits