开发者

Eclipse Hot Code Replace Fail - republish web application

开发者 https://www.devze.com 2023-01-14 13:07 出处:网络
I use the Hot Swap java debugging feature with web app on Tomcat. After some class signature change, I got \"Hot Code Replace Fail\" Ecli开发者_开发知识库pse dialog - I understand that.

I use the Hot Swap java debugging feature with web app on Tomcat. After some class signature change, I got "Hot Code Replace Fail" Ecli开发者_开发知识库pse 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.


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


There is a old PHD project. The guy who made it was brought by Oracle but his work didnt made it to the Java 8 and hopefully will be seen in Java 9 but is more likely to be in Java 10. There is a new Version of this for Java 8 I guess. I havent tried it yet.

My Original Question for additional information: Advanced Code Hot Swapping in JDK 8?

And the Project page on Github: https://github.com/dcevm/dcevm

With this you can hot replace almost any class change freeing you from restarting the JDK ever after. (beside sideeffects for static objets and singletons but that would be logical)


Did you try Server Options - Serve modules without publishing along with Publishing?

Eclipse Hot Code Replace Fail - republish web application


Eclipse Hot Code Replace Fail - republish web application

Also not sure what you are saying about other apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号