views:

1329

answers:

3

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"

Can anyone suggest steps for getting this to work?

Thanks!

A: 

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.

Chase Seibert
+1  A: 

I have been using JavaRebel 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)

Javamann
A: 

What you described should work. What are your jvm args to jboss to enable debugging?

Mine are these: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Ron