我的日常

登录/注册
您现在的位置:论坛 盖世程序员(我猜到了开头 却没有猜到结局) 盖世程序员 > SSH jar包异常总结
总共48087条微博

动态微博

查看: 2254|回复: 0

SSH jar包异常总结

[复制链接]

114

主题

29

听众

429

金钱

传功长老

该用户从未签到

跳转到指定楼层
楼主
发表于 2014-09-26 15:53:20 |只看该作者 |倒序浏览
1.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
4 j- W# p5 j; p& r3 \缺少asm-3.3.jar6 o- z% a: V& d0 f/ o
2.java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
3 }% N( C! J( g: \% O缺少asm-commons-3.3.jar
. L( G8 Z- m; e. E  A3.java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener3 G: g+ F9 s- P* D" F+ g: g9 `- ^- z! L" V
缺少spring-web-3.2.3.RELEASE.jar
8 l- z( K7 G1 }4.java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
+ `! X: r+ k- b4 V6 _& Q9 p缺少spring-web-3.2.3.RELEASE.jar
, K" K1 c* G" Y7 a& P5.java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener
8 \6 v3 `& p$ P! g/ T缺少spring-web-3.2.3.RELEASE.jar
+ H6 I/ I9 C9 v0 N& E" Q# O6.java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener% }1 q; N9 `2 q% b/ s
缺少spring-web-3.2.3.RELEASE.jar" k5 b( n; F, o3 I/ T
7.java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext, T* |: g% G& D9 t' D& I3 m& u
缺少spring-context-3.2.3.RELEASE.jar. b4 ?# n: G4 e3 a
8.Caused by: java.lang.ClassNotFoundException: org.springframework.beans.FatalBeanException
4 C- A9 v4 r/ u: c$ k缺少spring-beans-3.2.3.RELEASE.jar9 Q1 C& Q, E1 K& c
9.Caused by: java.lang.ClassNotFoundException: org.springframework.core.NestedRuntimeException- k3 M  C" @% D
缺少spring-core-3.2.3.RELEASE.jar
  ^: r8 a6 P! d10.java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator( y3 l$ k  J  p
缺少log4j-1.2.16.jar5 K, x# U# v4 r
11. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:" E5 h9 g0 `; E
缺少spring-tx-3.2.3.RELEASE.jar
" o3 w) x: ]0 T6 q3 N2 @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! ?% F& z7 z( ?6 d
缺少aopalliance-1.0.jar6 R4 q7 f' I6 j* R9 C. r% H  l: q; {
13.   org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:( R7 R+ E  h7 p6 A0 `- U) v9 N
缺少spring-aop-3.2.3.RELEASE.jar
: Z" V/ @- [# m14.java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor2 b/ }4 J: G6 v) J& `
缺少spring-expression-3.2.3.RELEASE.jar
! Y0 Y" V2 L, W15. 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
2 ~' U( V6 e. e/ Q& ]- b- X+ g缺少spring-aspects-3.2.3.RELEASE.jaraspectjweaver.jaraspectjrt.jar
, l1 y, x1 x+ q/ d3 ]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+ w+ m* w4 w7 f$ u2 C
缺少spring-orm-3.2.3.RELEASE.jar- Z" I) F  \! _% Y! r  b
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/ReflectionManager2 V& {2 h6 Q& J1 s
缺少hibernate-commons-annotations-4.0.2.Final.jar
1 Z# V7 x' e4 i5 D" f" z  g) M18. 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
: t8 w+ G0 n! d8 F2 C缺少dom4j-1.6.1.jar
1 u1 n' W/ V" Y6 ^- @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/BasicLogger4 H$ n( f2 @8 ?% C2 a! C" Y  O
缺少jboss-logging-3.1.1.GA.jar# K8 \% F: N! F) q# P4 g
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/SystemException2 q# [1 ?/ q4 t9 C
缺少jboss-transaction-api_1.1_spec-1.0.1.Final.jar# {) [) L2 |+ o. i
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
" D) s9 _  |! i7 ]; b缺少hibernate-jpa-2.0-api-1.0.1.Final.jar6 ^5 `1 a+ K' B) B
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).
0 }& d3 f; H; w7 v- Yhibernate.cfg.xml配置中需添加:
7 k# z" E4 A. u: g0 \, T<property name="hibernate.cache.use_second_level_cache">true</property>0 K, ?0 G1 {- \  k5 W
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</property>5 s5 N( M% Z" v
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>  Y! ]3 o* Z4 u" S4 Q! q
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/LoggerFactory8 t+ Y( \' r, d2 s$ I; G. H5 f/ j
缺少slf4j-api-1.6.1.jar+ E/ U" x& G: N: v9 v
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
  F! M( o) u; ~缺少spring-jdbc-3.2.3.RELEASE.jar
% i2 `: H$ b6 W1 W1 v$ `; U25. 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" r1 R9 X! p9 a( ~3 z) R$ _; w# K
26.Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
* V% H; {4 N9 l缺少struts2-spring-plugin-2.3.15.jar3 P% A: o* u' _2 g9 R9 L( }  k
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
, O* I3 |* w1 H: Q; b, T$ v% a6 ^+ U  |( Q+ K7 }
28.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory: a/ r1 `$ z8 {; @1 _; L
问题及解决办法:缺少commons-logging.jar,需要在lib中添加。
* j4 q4 W$ W+ o 29.NoClassDefFoundError: org/logicalcobwebs/cglib/core/NamingPolicy# s% V1 G# R/ b5 [1 u
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jarproxool-cglib.jar9 ^4 {  A8 ~/ C- ]+ \9 v
30.org.logicalcobwebs.proxool.ShutdownHook - Problem calling "get cause" on IllegalStateException.
$ ]  |% I0 G3 o; c$ Y3 N: W2 j; m) c9 o% }  H. S$ }; B  r; X
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jarproxool-cglib.jar
$ t4 v* N+ c( o& \( s8 G0 X( L7 `+ K5 l9 u. h

科帮网 1、本主题所有言论和图片纯属会员个人意见,与本社区立场无关
2、本站所有主题由该帖子作者发表,该帖子作者与科帮网享有帖子相关版权
3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和科帮网的同意
4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任
5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
7、科帮网管理员和版主有权不事先通知发贴者而删除本文


JAVA爱好者①群:JAVA爱好者① JAVA爱好者②群:JAVA爱好者② JAVA爱好者③ : JAVA爱好者③

快速回复
您需要登录后才可以回帖 登录 | 立即注册

   

关闭

站长推荐上一条 /1 下一条

发布主题 快速回复 返回列表 联系我们 官方QQ群 科帮网手机客户端
快速回复 返回顶部 返回列表