0 Replies Latest reply on Mar 3, 2005 4:51 AM by lowhm

    Hot swap fail when adding/removing methods

    lowhm

      Hi,

      I'd appreciate some help on the following problem.

      I have successfully configure Eclipse to run with the interactive debugger and hot swap enable when I change some of the code during debugging.

      However, if I add a method to the code I'm currently debugging, it pop up an error window
      "Hot code replace failed
      org.jboss.Main at localhost:1134 (may be out of sync) was unable to replace the running code with the code in the workspace.

      Reason:
      Hot code replace failed - Scheme change not implemented"


      How can I make the how swap successful in this case.

      If I try to do a hot deploy of my web and ejb app, (ie. copy all my class, dd, lib etc in exploded format to server/deploy and touch the dd), when I subsequently try to run through the same execution, my creation of the Home object to create the EJB will fail from the Web end giving a ServletException with the root cause ClassCastException.
      From here, I must restart the server to get the code running again.

      FYI, I'm using Struts in the web end and using a EJBHomeFactory pattern.


      I would greatly appreciate any suggestion to solve the problem.


      Thanks in advance.

      Cheers.



      Han Ming