java - Maven 工程 jetty 容器中使用 JRebel 报错
怪我咯
怪我咯 2017-04-17 17:31:22
[Java讨论组]

报错如下:

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 的加载路径,如果可以进一步帮忙解决这个问题就更好不过了。

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号