Eclipse热代码替换失败 - 重新发布Web应用程序 [英] Eclipse Hot Code Replace Fail - republish web application

查看:386
本文介绍了Eclipse热代码替换失败 - 重新发布Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Tomcat上使用Web应用程序的热插拔Java调试功能。在一些类签名更改后,我得到了热代码替换失败Eclipse对话框 - 我明白了。



在这种情况下,我想要重新发布应用程序(我可以这样做)并使用新部署的代码。但是调试器stil抱怨,直到我重新启动服务器。因为其他应用程序和长时间的启动我不想要。



有没有办法告诉调试器,有一个新的类版本已经重新加载在新的webapp类加载器,它被保存以继续?



谢谢。

解决方案

你为什么不试试JRebel?
JRebel是与应用程序服务器集成的JVM Java代理,使类可以与现有的类加载器重新加载。只有已更改的类才能重新编译并在正在运行的应用程序中立即重新加载。
JRebel插入IDE并构建系统。类和静态资源直接从工作空间加载。
http://zeroturnaround.com/software/jrebel/



Regards,
Andrea


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.

解决方案

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

这篇关于Eclipse热代码替换失败 - 重新发布Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆