关闭

错误汇总

85人阅读 评论(0) 收藏 举报
如果Eclipse的BuildPath里面不缺jar包并且在 ProjectProperties>>DeploymentAssembly里面定义的lib都包含齐全,那么有可能jar包没有被deploy到tomcat里面路径可能是:\WorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ProjectNameXXX\WEB-INF\lib。手动将jar包扔进去可解决tomcat报"NoClassDefFoundError"错误。

Java代码  收藏代码
  1. EVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener  
  2. java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext  
  3.     at java.lang.Class.getDeclaredConstructors0(Native Method)  
  4.     at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)  
  5.     at java.lang.Class.getConstructor0(Unknown Source)  
  6.     at java.lang.Class.newInstance0(Unknown Source)  
  7.     at java.lang.Class.newInstance(Unknown Source)  
  8.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4150)  
  9.     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)  
  10.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)  
  11.     at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)  
  12.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)  
  13.     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)  
  14.     at org.apache.catalina.core.StandardService.start(StandardService.java:525)  
  15.     at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)  
  16.     at org.apache.catalina.startup.Catalina.start(Catalina.java:595)  
  17.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  18.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  19.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  20.     at java.lang.reflect.Method.invoke(Unknown Source)  
  21.     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)  
  22.     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)  
  23. Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext  
  24.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)  
  25.     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)  
  26.     ... 20 more  







1.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
缺少asm-3.3.jar
2.java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
缺少asm-commons-3.3.jar
3.java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
缺少spring-web-3.2.3.RELEASE.jar
4.java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
缺少spring-web-3.2.3.RELEASE.jar
5.java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener
缺少spring-web-3.2.3.RELEASE.jar
6.java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
缺少spring-web-3.2.3.RELEASE.jar
7.java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext
缺少spring-context-3.2.3.RELEASE.jar
8.Caused by: java.lang.ClassNotFoundException: org.springframework.beans.FatalBeanException
缺少spring-beans-3.2.3.RELEASE.jar
9.Caused by: java.lang.ClassNotFoundException: org.springframework.core.NestedRuntimeException
缺少spring-core-3.2.3.RELEASE.jar
10.java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator
缺少log4j-1.2.16.jar
11. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]
缺少spring-tx-3.2.3.RELEASE.jar
12.org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [resource/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
缺少aopalliance-1.0.jar
13.   org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
缺少spring-aop-3.2.3.RELEASE.jar
14.java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor
缺少spring-expression-3.2.3.RELEASE.jar
15. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [resource/applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'pointcut' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pointcut': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
缺少spring-aspects-3.2.3.RELEASE.jar、aspectjweaver.jar、aspectjrt.jar
16. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate4.LocalSessionFactoryBean] for bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean
缺少spring-orm-3.2.3.RELEASE.jar
17. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
缺少hibernate-commons-annotations-4.0.2.Final.jar
18. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException
缺少dom4j-1.6.1.jar
19.org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger
缺少jboss-logging-3.1.1.GA.jar
20.   org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/SystemException
缺少jboss-transaction-api_1.1_spec-1.0.1.Final.jar
21.   org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Entity
缺少hibernate-jpa-2.0-api-1.0.1.Final.jar
22. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, please either disable second level cache or set correct region factory class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, is available in the classpath).
hibernate.cfg.xml配置中需添加:
<property name="hibernate.cache.use_second_level_cache">true</property>
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</property>
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
23. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
缺少slf4j-api-1.6.1.jar
24. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
缺少spring-jdbc-3.2.3.RELEASE.jar
25. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cjjt.dao.impl.BaseDaoImpl] for bean with name 'baseDao' defined in class path resource [resource/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cjjt.dao.impl.BaseDaoImpl
26.Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
缺少struts2-spring-plugin-2.3.15.jar
27.org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
28.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
问题及解决办法:缺少commons-logging.jar,需要在lib中添加。
29.NoClassDefFoundError: org/logicalcobwebs/cglib/core/NamingPolicy
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jar和proxool-cglib.jar
30.org.logicalcobwebs.proxool.ShutdownHook - Problem calling "get cause" on IllegalStateException.
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jar和proxool-cglib.jar
0
0
查看评论

网络汇总

1、I/O模型,select、poll、epoll :http://blog.csdn.net/pmt123456/article/details/56556557 2、进程、线程的区别:http://blog.csdn.net/pmt123456/article/details/57424068 ...
  • pmt123456
  • pmt123456
  • 2017-02-27 16:33
  • 567

maven:常见错误汇总分析

1.在通过maven 命令刚建立一个新项目,放到 eclipse常用的目录workspaces下,通过命令mvn eclipse:eclipse执行,报如下错误:     2.和D:\git_project\bocAnalysisServer的这个项目冲突,删除它在wo...
  • u011066470
  • u011066470
  • 2016-06-06 17:34
  • 156

前端开发问题汇总

最近更新时间:2017年7月14日09:33:36     前端技术开发的过程中,经常会遇到零碎的知识点,本文主要记录开发过程中的所有问题,从量变到质变后作为专题进行详细梳理。 非单页面应用开发:常规web项目,前后端不分离项目 1、页面跳转传递参数   ...
  • wanshaobo888
  • wanshaobo888
  • 2017-07-14 10:15
  • 198

【BASH】出错时显示错误信息

 问题:你期望你的脚本显示尽量多的错误提示信息。你期望在某个命令失败的时候看到错误信息,不过你不希望改变原有的脚本流程(ps.增加if判断) 解决方案:shell脚本程序员的一个惯用方法是使用||分隔命令和调试或错误信息,下面是一个例子:cmd|| printf "%b...
  • magicpang
  • magicpang
  • 2009-04-30 13:26
  • 1534

错误汇总

Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常: 严重: IOException while load...
  • houzuoxin
  • houzuoxin
  • 2013-11-19 15:28
  • 614

JAVA错误汇总

1.Slf4J-API版本兼容 问题描述 Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/S...
  • u013371163
  • u013371163
  • 2017-03-05 17:34
  • 362

《利用python进行数据分析》学习笔记(五)(上)

pandas摘抄一下pandas的特点: 具备按轴自动或显式数据对齐功能的数据结构。这可以防止许多由于数据未对齐以及来自不同数据源(索引方式不同)的数据而导致的常见错误。 集成时间序列功能 既能处理时间序列数据也能处理非时间序列数据的数据结构 数学运算和简约(比如对某个轴求和)可以根据不同的元数据(...
  • mike112223
  • mike112223
  • 2017-06-23 16:50
  • 371

《页面架构》课堂交流区问题汇总

本课程为网易云课堂 - - 前端开发工程师 - - 《页面架构》学习总结 《页面架构》课堂交流区问题汇总
  • Lovejulyer
  • Lovejulyer
  • 2016-06-28 18:21
  • 5001

NDK探究之旅《九》——jni开发中常见的错误及其注意事项

NDK开发中难免会遇到一些错误,下面我就总结一些常见的错误。
  • androidstarjack
  • androidstarjack
  • 2017-05-25 21:41
  • 744

汇总常见的JAVA错误

1.变量可能未初始化 错误提示:Abc.java:9: variable i might not have been initialized              ...
  • Shenou_extjs
  • Shenou_extjs
  • 2015-08-29 10:11
  • 401
    个人资料
    • 访问:933次
    • 积分:53
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:4篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档