'Hot code replace' not working — Eclipse doesn't change any code on JBoss

前端 未结 4 1985
不思量自难忘°
不思量自难忘° 2020-12-06 00:22

I\'m currently experiencing a problem with \'hot code replace\' not working on Eclipse Galileo and JBoss 4.2.3.

Among other applications I\'m running an exploded Jav

相关标签:
4条回答
  • 2020-12-06 00:48

    I did not work with JBoss but I have two suggestions.

    1. If you run your application in eclipse using the launch configuration

      Is your "Project" - "Build Automatically" flag enabled? If not, the code is not compiled and ignored t runtime.

    2. When you debug an application in remote mode, you can not change the code, but you can change the value of parameters. (I think)

    0 讨论(0)
  • 2020-12-06 00:49

    First check is the Project/Build automatically.

    It may be also required to check the application server deployment configuration,

    E.g. for JBoss, in Eclipse, in the Servers view, double click on the server and there is a Deployment Scanners section with two check boxes:

    • Add missing deployment scanners
    • Remove added deployment scanners before shutdown

    https://docs.jboss.org/author/display/AS7/Deployment+Scanner+configuration JBoss AS/ Deployment Scanner configuration

    0 讨论(0)
  • 2020-12-06 01:02

    I had issues in a project with Maven and Eclipse. No errors were shown, but hot code replacement was not working. I read that "Build Automatically" has to be checked. I checked this and it still didnt work. I had some errors in other projects in my build path. I believe that was the error. When i researched, I found that the we had to uncheck the "Abort build when buildpath errors". I have given the details in the link below.

    0 讨论(0)
  • 2020-12-06 01:09

    I just recently had this problem in Eclipse 2019-06 and found I had to uncheck the option in "Replace classfiles containing compilation errors" in Preferences->Java->Debug->Hot Code Replace group. All the other options there were checked. Previous to doing that I was getting "Hot code replace failed - Delete method not implemented" despite my only change being to ass a System.out.println call. As soon as I changed that option ( in the same debug session ) it started working for me.

    0 讨论(0)
提交回复
热议问题