问题描述
这个项目是有五个工程的(能够跑起来),需要把里面一个公有类库的工程的一个平台服务器模块分离出来,成为一个单独的工程,同时与之前的五个项目建立依赖关系,并能跑起来。结果出了这档问题。我检查并修改过编译器,也升级过common-logging.jar的版本,修改过*.Properties文件,还比对过之前可以正常运行的工程,工程的Problem也都解决了,没有Problem了,网上找也找了。总之,暂时没辙了。。。我自己认为有两个可能性。一是某些jar包版本过低(但是为什么在原先的*.class的jar包里面都运行的好好的,难道没解压出来的*.class不做检查校验?觉得不大可能)。二是独立出来的工程的属性没配好,可是我真不知道哪里没配好。。。。现在在线求助就是希望有经验丰富的大神或者有碰到过类似问题的大神给个可行性较强的解决方案。先谢过了严重:Errorconfiguringapplicationlistenerofclasscom.ruijie.host.webres.WebResourceDeployerjava.lang.ExceptionInInitializerErroratsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(UnknownSource)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnknownSource)atjava.lang.reflect.Constructor.newInstance(UnknownSource)atjava.lang.Class.newInstance0(UnknownSource)atjava.lang.Class.newInstance(UnknownSource)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4350)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:924)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)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(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:org.apache.commons.logging.LogConfigurationException:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)atorg.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)atcom.ruijie.host.webres.WebResourceDeployer.<clinit>(WebResourceDeployer.java:63)...30moreCausedby:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)...34moreCausedby:java.lang.VerifyError:Cannotinheritfromfinalclassatjava.lang.ClassLoader.defineClass1(NativeMethod)atjava.lang.ClassLoader.defineClassCond(UnknownSource)atjava.lang.ClassLoader.defineClass(UnknownSource)atjava.security.SecureClassLoader.defineClass(UnknownSource)atorg.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)atorg.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)atorg.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:454)atorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:406)...35more2013-11-2522:17:23org.apache.catalina.core.StandardContextlistenerStart严重:Errorconfiguringapplicationlistenerofclassorg.springframework.security.ui.session.HttpSessionEventPublisherjava.lang.ExceptionInInitializerErroratsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(UnknownSource)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnknownSource)atjava.lang.reflect.Constructor.newInstance(UnknownSource)atjava.lang.Class.newInstance0(UnknownSource)atjava.lang.Class.newInstance(UnknownSource)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4350)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:924)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)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(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:org.apache.commons.logging.LogConfigurationException:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)atorg.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)atorg.springframework.security.ui.session.HttpSessionEventPublisher.<clinit>(HttpSessionEventPublisher.java:47)...30moreCausedby:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)...34moreCausedby:java.lang.VerifyError:Cannotinheritfromfinalclassatjava.lang.ClassLoader.defineClass1(NativeMethod)atjava.lang.ClassLoader.defineClassCond(UnknownSource)atjava.lang.ClassLoader.defineClass(UnknownSource)atjava.security.SecureClassLoader.defineClass(UnknownSource)atorg.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)atorg.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)atorg.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:454)atorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:406)...35more2013-11-2522:17:23org.apache.catalina.core.StandardContextlistenerStart严重:Errorconfiguringapplicationlistenerofclasscom.ruijie.host.webapp.WebAppContextListenerjava.lang.ExceptionInInitializerErroratsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(UnknownSource)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnknownSource)atjava.lang.reflect.Constructor.newInstance(UnknownSource)atjava.lang.Class.newInstance0(UnknownSource)atjava.lang.Class.newInstance(UnknownSource)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4350)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:924)
解决方案
解决方案二:
atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)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(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:org.apache.commons.logging.LogConfigurationException:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)atorg.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)atcom.ruijie.host.webapp.WebAppContextListener.<clinit>(WebAppContextListener.java:33)...30moreCausedby:org.apache.commons.logging.LogConfigurationException:java.lang.VerifyError:Cannotinheritfromfinalclassatorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)...34moreCausedby:java.lang.VerifyError:Cannotinheritfromfinalclassatjava.lang.ClassLoader.defineClass1(NativeMethod)atjava.lang.ClassLoader.defineClassCond(UnknownSource)atjava.lang.ClassLoader.defineClass(UnknownSource)atjava.security.SecureClassLoader.defineClass(UnknownSource)atorg.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)atorg.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)atorg.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:460)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:454)atorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:406)...35more2013-11-2522:17:23org.apache.catalina.core.StandardContextlistenerStart严重:Skippedinstallingapplicationlistenersduetopreviouserror(s)2013-11-2522:17:23org.apache.catalina.core.StandardContextstart严重:ErrorlistenerStart2013-11-2522:17:23org.apache.catalina.core.StandardContextstart严重:Context[/rcd]startupfailedduetopreviouserrors2013-11-2522:17:25org.apache.coyote.http11.Http11Protocolstart信息:StartingCoyoteHTTP/1.1onhttp-80882013-11-2522:17:25org.apache.jk.common.ChannelSocketinit信息:JK:ajp13listeningon/0.0.0.0:80092013-11-2522:17:26org.apache.jk.server.JkMainstart信息:JkrunningID=0time=0/307config=null2013-11-2522:17:26org.apache.catalina.startup.Catalinastart信息:Serverstartupin14231ms
解决方案三:
解决方案四:
题目写错了,不是官方的包出问题。。。擦汗!!!
解决方案五:
这么多项目,很容易就冲突了
解决方案六:
引用4楼defonds的回复:
这么多项目,很容易就冲突了
已经解决了,是日志器出问题,把日志器删掉就行