问题描述
当启动一个项目时,后台报错,好像是以为热编译的问题,但是我启动别的项目都可以正常启动,请大神指教一下Test:Class'org.apache.log4j.helpers.OptionConverter'couldnotbeprocessed:org.zeroturnaround.bundled.javassist.CannotCompileException:[sourceerror]registerConfigurationFile(java.io.InputStream)notfoundinorg.zeroturnaround.javarebel.integration.log4j.Log4jReloaderatorg.zeroturnaround.bundled.javassist.CtBehavior.insertAfter(JRebel:819)atorg.zeroturnaround.bundled.javassist.CtBehavior.insertAfter(JRebel:743)atorg.zeroturnaround.javarebel.integration.log4j.cbp.OptionConverterCBP.process(OptionConverterCBP.java:34)atorg.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(JRebel:57)atcom.zeroturnaround.javarebel.SDKIntegrationImpl.runProcessor(JRebel:478)atcom.zeroturnaround.javarebel.SDKIntegrationImpl.runProcessors(JRebel:467)atcom.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(JRebel:422)atcom.zeroturnaround.javarebel.java4.RuntimeInstall.transform(JRebel:35)atjava.lang.ClassLoader.defineClass(ClassLoader.java)atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)atorg.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)atorg.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)atorg.apache.log4j.LogManager.<clinit>(LogManager.java:86)atorg.apache.log4j.Logger.getLogger(Logger.java:104)atorg.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:262)atorg.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)atsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)atjava.lang.reflect.Constructor.newInstance(Constructor.java:513)atorg.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1025)atorg.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:844)atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)atorg.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)atcom.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory.getLoggerImpl(CommonsLoggerFactory.java:29)atcom.opensymphony.xwork2.util.logging.LoggerFactory.getLogger(LoggerFactory.java:45)atorg.apache.struts2.dispatcher.Dispatcher.<clinit>(Dispatcher.java:103)atorg.apache.struts2.dispatcher.ng.InitOperations.createDispatcher(InitOperations.java:110)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:73)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4363)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:578)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:compileerror:registerConfigurationFile(java.io.InputStream)notfoundinorg.zeroturnaround.javarebel.integration.log4j.Log4jReloaderatorg.zeroturnaround.bundled.javassist.compiler.TypeChecker.atMethodCallCore(JRebel:716)atorg.zeroturnaround.bundled.javassist.compiler.TypeChecker.atCallExpr(JRebel:681)atorg.zeroturnaround.bundled.javassist.compiler.JvstTypeChecker.atCallExpr(JRebel:156)atorg.zeroturnaround.bundled.javassist.compiler.ast.CallExpr.accept(JRebel:45)atorg.zeroturnaround.bundled.javassist.compiler.CodeGen.doTypeCheck(JRebel:241)atorg.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:329)atorg.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)atorg.zeroturnaround.bundled.javassist.compiler.Javac.compileStmnt(JRebel:568)atorg.zeroturnaround.bundled.javassist.CtBehavior.insertAfterAdvice(JRebel:833)atorg.zeroturnaround.bundled.javassist.CtBehavior.insertAfter(JRebel:785)...61more
解决方案
解决方案二:
我也遇到这个问题了,你解决了没啊
解决方案三:
求指导,我也遇到了。但是影响项目运行
解决方案四:
但是不影响项目运行
解决方案五:
这种问题是版本问题,你换个版本就对了
解决方案六:
什么的版本JRebel和log4j?