facebook

Hot swap with Tomcat

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #244776 Reply

    lukmanph
    Member

    Hi everyone

    My environment

    Eclipse 3.1
    Myeclipse 4.0.3
    JDK 1.4.2
    winXP
    Tomcat 5.0.28

    I’m having a situation whereby everytime I change a line of code while Tomcat is running, the whole application gets reloaded. It didn’t happen with previous versions of MyEclipse.
    Is this a normal behaviour? or is there any setting that can be configured?
    thanks in advance
    Patria

    #244780 Reply

    Riyad Kalla
    Member

    Patria,
    If you want this to stop, you can set your context in Tomcat to “reloadable=false”. Otherwise every time it detects a chance it will reload.

    #244784 Reply

    lukmanph
    Member

    do you mean in the conf/server.xml file for Tomcat??

    #245489 Reply

    fmbraga
    Member

    Might be. But (s)he was meaning to go into tomcat’s admin application, and change it there.

    #245547 Reply

    lukmanph
    Member

    ok i see, cause i changed it directly in the xml file under {CATALINA_HOME}/conf/localhost/ and still is not working…

    #245639 Reply

    Scott Anderson
    Participant

    This is peculiar because we don’t do *anything* in MyEclipse (any version) to force applications to completely reload. When Java code is changed, the debugger updates that class in the server JVM directly, but only the modified class. For JSP’s, we update the deployments automatically upon change and the server will recompile / reload them at the next access. For Tomcat, the only way (other than the admin console) that I know of to force the entire application to reload is to touch the web.xml file (which is handy, but doesn’t sound like what you’re doing here).

    #245643 Reply

    lukmanph
    Member

    Hi Scott

    it’s really weird anyway. the only thing i can do to avoid the complete reload of the application when there is a change in the code is to declare my webapp as the default one.
    However, I did notice that when changing the web.xml file the reloading occurs.
    as from now, i’ll just leave it as it is…
    thanks for your reply
    Patria

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Hot swap with Tomcat

You must be logged in to post in the forum log in