Hot code swap is not working, why?

MaxNevermind picture MaxNevermind · Feb 28, 2014 · Viewed 7.1k times · Source

When I'm trying to write a simple one class console app - there is no problem. I can change code in a method when debugging.

The problem is with my web apps on Jetty. It's not working nor just in usual debug mode(pressing a debug button in eclipse) nor in remote debug mode described here. I can debug but can't change even usual not static methods, like adding sysout for example, I mean I can change it but after saving it's not updated and it works the same as before.

Also, I talked to my colleagues, it works for them but they use Spring Tool Suite version of eclipse, I tried and concluded that it works in the latest version STS out of the box in usual debug mode and it doesn't work in the latest version of Eclipse.

What can be a reason?

Answer

Antoniossss picture Antoniossss · Feb 28, 2014

You would have to use hot swap proxy for swapping classes in EE container like jRebel. Check it out.