facebook

Hot Code Swap Failed

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #266083 Reply

    jwnorma
    Member

    I keep getting this error when working on JSF pages.

    The error says:

    org.apache.catalina.startup.Bootstrap at localhost:52426 (may be out of synch) was unable to replace the running code with the code in the workspace.

    Reason:
    Hot code replace failed- VM may be inconsistent

    I believe there is either a problem with Tomcat or Eclipse, or possibly how the two are interacting.

    Anyone have this problem before, or know of a possible solution?

    Thanks

    #266099

    Greg
    Member

    Are you using MyEclipse Web project with exploded deployment? Packaged deployment does not have the same hot-swap capability. Beyond that, here are a couple of things to keep in mind.

    1. Make sure you are running your eclipse(MyEcilpse) instance with the same jvm that you are launching Tomcat with.
    2. Make sure both eclipse and tomcat are launching with relatively new release of JDK. 1.3 and early versions of 1.4 did not support hot swapping very well. Also Sun is always fixing bugs in the latest jdk updates related to hot swapping.
    3. Hot swapping isn’t available when you change anonymous inner classes or changing class or method signatures.

    #266147

    jhm
    Member

    If you change classes in exploded webapps you have to configure Tomcat itself to look after that … For Tomcat 5.5 you could simply add a context.xml to WebRoot/META-INF with

    <Context reloadable=”true”/>

    .

    RFE: MyEclipse could add the reloadable-behaviour (or complete Tomcat-Configuration) via server configuration …

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Hot Code Swap Failed

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