NoClassDefFoundError是什么错误?应该怎样解决

exceptionjavax.servlet.ServletException:Errorinstantiatingservletclasscom.src11.ibait... exception

javax.servlet.ServletException: Error instantiating servlet class com.src11.ibaitiseg.service.PersonController
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)

root cause

java.lang.NoClassDefFoundError: com/ibatis/common/resources/Resources
com.src11.ibaitiseg.dao.ibaitis.DaoConfig.newDaoManager(DaoConfig.java:37)
com.src11.ibaitiseg.dao.ibaitis.DaoConfig.<clinit>(DaoConfig.java:25)
com.src11.ibaitiseg.dao.ibaitis.DaoFactory.createAccountDao(DaoFactory.java:18)
com.src11.ibaitiseg.business.AccountDB.<init>(AccountDB.java:18)
com.src11.ibaitiseg.service.PersonController.<init>(PersonController.java:25)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
java.lang.Class.newInstance0(Class.java:355)
java.lang.Class.newInstance(Class.java:308)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)
展开
 我来答
blue_ysy
2010-06-24
知道答主
回答量:8
采纳率:0%
帮助的人:0
展开全部
出现 java.lang.NoClassDefFoundError 一般情况下是由于你没有把必要的jar包放到lib中。add一个包就行了,找下com/ibatis/common/resources/Resources包把它加进去就好
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式