Maven 工程 jetty 容器中使用 JRebel 报错

发布于 2022-09-02 11:44:04 字数 1572 浏览 14 评论 0

报错如下:

2016-03-25 16:37:17 JRebel: Class 'javax.xml.parsers.FactoryFinder' could not be processed by com.zeroturnaround.javarebel.yp@null
2016-03-25 16:37:17 JRebel: ERROR org.zeroturnaround.bundled.javassist.NotFoundException: find(..) is not found in javax.xml.parsers.FactoryFinder
    at org.zeroturnaround.bundled.javassist.CtClassType.getDeclaredMethod(JRebel:1229)
    at com.zeroturnaround.javarebel.yp.process(JRebel:16)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(JRebel:62)
    at com.zeroturnaround.javarebel.java5.AgentInstall.a(JRebel:307)
    at com.zeroturnaround.javarebel.java5.AgentInstall.a(JRebel:135)
    at com.zeroturnaround.javarebel.java5.AgentInstall.premain(JRebel:98)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)

本人项目中除了 JDK7 中有这个类,maven依赖有两个相同的类,之前一直没有出现过问题,
本地工程使用 mvn jetty:run 命令来启动,
JRebel 的配置放在下图中
图片描述
我想请教在 mvn jetty:run 这种启动方式下面 JRebel classLoader 的加载路径,如果可以进一步帮忙解决这个问题就更好不过了。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文