I am running JBoss 4.0.3.SP1_CP04 and connecting to it with Eclipse 3.4.1's debugger, both using JDK 1.6.0_11.
When I make a minor change to a method (e.g. changing a "+ 1" in the logic to a "+ 2") and save it, I immediately receive an error message dialog titled "Hot Code Replace Failed" with the error "Delete method not implemented"
Hot code replace failed dialog http://img6.imageshack.us/img6/531/hotcodereplacefailedkp6.png
Can anyone suggest steps for getting this to work?
What you want to do is deploy to JBOSS as an exploded WAR. Typically, if an editor does the initial deploy itself, it will then manage copying individual files over as they change.
In IntelliJ, this is easy. I have never done it from Eclipse, but this project is your best bet.
I have been using JRebel and it's a life saver as far as modifying code and dynamically updating the app server. Paid for itself the first day. (we have a 7 minute compile/deploy/restart cycle)
The reason is that the assembly can be used another compiler that hot swap. For example, if you build project by maven, we used javac. When you try to perform a hot swap etslipse uses built-in compiler jdt compiler(compiler is not taken from installed jdk and can not be changed by regular means.). Binary classes obtained are different and jvm can not replace them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With