Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Hot Code Replace Fail - republish web application

I use the Hot Swap java debugging feature with web app on Tomcat. After some class signature change, I got "Hot Code Replace Fail" Eclipse dialog - I understand that.

What I want in such case is to republish the application (I can do that) and work with the newly deployed code. However the debugger stil complains, until I restart the server. Because other apps and long startup I don't want that.

Is there a way how to tell to the debugger, that there is the new class version already reloaded in a new webapp classloader and that it is save to continue?

Thanks.

like image 207
edudant Avatar asked Aug 31 '10 16:08

edudant


1 Answers

Why don't you try with JRebel? JRebel is a JVM Java Agent that integrates with application servers, making classes reloadable with existing class loaders. Only changed classes are recompiled and instantly reloaded in the running application. JRebel plugs into IDEs and build systems. Classes and static resources are loaded straight from the workspace. http://zeroturnaround.com/software/jrebel/

Regards, Andrea

like image 97
abarisone Avatar answered Oct 05 '22 11:10

abarisone