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

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

报错如下:

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

【热门文章】
【热门文章】