Cannot inherit from final class!在线求助,亲,不要给我翻译什么的。是官方的包出现这个问题,看描述

问题描述

这个项目是有五个工程的(能够跑起来),需要把里面一个公有类库的工程的一个平台服务器模块分离出来,成为一个单独的工程,同时与之前的五个项目建立依赖关系,并能跑起来。结果出了这档问题。我检查并修改过编译器,也升级过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的回复:

这么多项目,很容易就冲突了

已经解决了,是日志器出问题,把日志器删掉就行

时间: 2024-09-20 15:47:33

Cannot inherit from final class!在线求助,亲,不要给我翻译什么的。是官方的包出现这个问题,看描述的相关文章

24色位图,字母图片验证码识别,基于MFC对话框的程序,在线求助,高手帮帮忙

问题描述 24色位图,字母图片验证码识别,基于MFC对话框的程序,在线求助,高手帮帮忙 24色位图(如下图)字母图片验证码识别,基于MFC对话框的程序,在线求助,高手帮帮忙

新人c++无奖问答,在线求助

问题描述 新人c++无奖问答,在线求助 编写一个自定义函数:int f( int M, int N) ,函数f的功能是:对给定的正整数M和N,找出满足方程"5x+6y=M"的正整数解中x和y都是偶数的解.要求:若M和N不都是正整数,则结束函数并返回-1:只有M和N都是正整数时,且x,y∈[1,N], 才继续求解操作,并用二重循环进行求解:(1)在函数中输出满足条件的正整数解x和y,(2)使函数值返回满足条件的正整数解的组数. #include < iostream> usi

java如何实现监控视频的数据流获取,以及摄像头的远程控制?在线求助。在此先谢过查看的人

问题描述 java如何实现监控视频的数据流获取,以及摄像头的远程控制?在线求助.在此先谢过查看的人 需求描述:我们公司做工程项目,要在自己的软件上呈现及时视频监控信息.我现在最大的问题就是想知道怎么取到指定摄像头上边的数据?摄像头厂家提供sdk工具包,都是.dll,不会用.我现在想在web页面上实现监控数据的查看?求前辈.师兄指点. 解决方案 http://download.csdn.net/detail/deartern/4913564http://www.pudn.com/downloads

opengl-关于OpenGL,在线求助

问题描述 关于OpenGL,在线求助 OpenGL中添加纹理映射或者混合后再添加光照就变成灰色而且没有光照效果了,不添加混合或纹理映射就没问题,这是怎么回事.还有纹理映射还会影响颜色,比如我在以前的纹理映射的代码基础上加反走样的时候即使吧纹理映射关了,用glDisable,图形颜色也不能显示,时候一片灰色,只有把开启纹理映射的代码全部删掉才没问题.在线求助 解决方案 http://blog.csdn.net/wangkuifeng0118/article/details/7428406 解决方案

在线求助,输入一个二叉树,如何从叶子节点向上逐层打印

问题描述 在线求助,输入一个二叉树,如何从叶子节点向上逐层打印二叉树的形式如下:ABCDEFG程序打印出,DEFGBCA用java如何实现,请高手指点一下,谢谢! 解决方案 解决方案二:先层次遍历,压入到堆栈或者向量什么的都可以...解决方案三:楼上的有没有代码示例呀?解决方案四:importjava.util.ArrayList;importjava.util.List;publicclassTest{publicstaticvoidmain(String[]args){//组装一颗树Node

c++ cfindfile-关于CFindFile FindNextFile方法。急!!!在线求助

问题描述 关于CFindFile FindNextFile方法.急!!!在线求助 BOOL CZip::RestoreFileName(CString sDirectory) { CFileFind ff; BOOL bFound = ff.FindFile(sDirectory + _T("\*.*")); TCHAR newName[260]; CString sNoteDirectory = sDirectory; sNoteDirectory += _T("\note

jar-Cannot inherit from final class

问题描述 Cannot inherit from final class 有个方法,main方法调用没有问题,嵌入到struts项目中就报错了. 2015/03/26 10:48:02,137 [org.apache.struts2.dispatcher.Dispatcher]-[ERROR] Exception occurred during processing request: null java.lang.reflect.InvocationTargetException at sun.

电脑问题-在线求助,坐等电脑大神解答。

问题描述 在线求助,坐等电脑大神解答. 为什么电脑突然打不开计算机,垃圾箱,文件夹之类的,但是游戏和网站可以打开,任务栏有显示文件,窗口打不开. 解决方案 我的电脑被偷了怎样找到

关于清理数据库冗余的上传文件在线求助!

问题描述 <!--#includefile="system.asp"--><%SubDelSpilthFile(Table,tField,FilePath)'***********************************************'过程名:DelSpilthFile'作用:删除数据库里冗余的上传文'参数:Table:数据'tField:图片字段'FilePath:图片相对文'作者:精灵QQ:3190576'随意传播转载,请保持文件完整'优化:流香