我的日常

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

动态微博

查看: 2253|回复: 0

SSH jar包异常总结

[复制链接]

114

主题

29

听众

429

金钱

传功长老

该用户从未签到

跳转到指定楼层
楼主
发表于 2014-09-26 15:53:20 |只看该作者 |倒序浏览
1.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
8 K' i6 A( G* D5 x6 J' T* _缺少asm-3.3.jar. i& G4 q7 m- b- z4 s! Z9 O
2.java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
  A( F& J( _, R: }缺少asm-commons-3.3.jar
# |& D" O( k2 h  r' Z% I! u/ |3.java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener, ~" I9 k0 U# P2 S! o0 O! Q% w' `2 l
缺少spring-web-3.2.3.RELEASE.jar
: q5 q5 E0 e$ k& C: O4.java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
8 j1 H+ F; t. c" ^9 z3 j, @- c缺少spring-web-3.2.3.RELEASE.jar8 e  J0 k7 n5 `3 A% ~
5.java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener5 j5 h' L8 y: v7 y; ?! @) V0 h
缺少spring-web-3.2.3.RELEASE.jar
$ i! {0 M% E4 d1 R6.java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
2 C  Q% d4 N6 u+ W" x! t缺少spring-web-3.2.3.RELEASE.jar# c0 R( e" d  F" i3 o/ p$ M
7.java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext
0 Q! d2 s  M. T# U7 x2 F缺少spring-context-3.2.3.RELEASE.jar+ g9 J+ |/ `- a  n
8.Caused by: java.lang.ClassNotFoundException: org.springframework.beans.FatalBeanException
  Q; U) V; U3 N2 e% g缺少spring-beans-3.2.3.RELEASE.jar
( U5 X& M# X5 E3 P2 r  A& V9.Caused by: java.lang.ClassNotFoundException: org.springframework.core.NestedRuntimeException6 {) U0 B6 P" q% z. M5 j
缺少spring-core-3.2.3.RELEASE.jar" O2 p; Z8 ^& S& N' Y* f' p. R: D
10.java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator; O& E  I6 ~% R. Z
缺少log4j-1.2.16.jar) g+ I) @5 h- B( u8 ?7 \( Q
11. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:7 N' t# T$ [  H2 O4 R/ C
缺少spring-tx-3.2.3.RELEASE.jar
" `! m4 o7 G, n- @. \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/MethodInterceptor2 R, U! c& s  }7 s' |/ D
缺少aopalliance-1.0.jar
$ @7 p- L( C" [3 o13.   org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:) r9 m# }' a, m
缺少spring-aop-3.2.3.RELEASE.jar
; n; G0 E. q, C* t  X14.java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor" \7 T2 m1 g: Z* {  ~
缺少spring-expression-3.2.3.RELEASE.jar
# G' h, D5 o+ T! V+ _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/ L: |& f2 w! X8 e; b
缺少spring-aspects-3.2.3.RELEASE.jaraspectjweaver.jaraspectjrt.jar
4 A5 F) E# K5 y; S16. 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
$ X, ^, p. y: T+ U7 Q缺少spring-orm-3.2.3.RELEASE.jar
% Q' P) T  e2 U2 f. X6 N. h- K17. 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
# C, A! k/ h1 W3 ^  p7 r缺少hibernate-commons-annotations-4.0.2.Final.jar7 T% a$ ?' f% m: ?9 `( x2 s
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
1 ~- p# M3 Z# M! o( M' `缺少dom4j-1.6.1.jar9 E1 G! \$ ^6 z1 X8 |  y
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
  y) k) {/ ]6 |4 u缺少jboss-logging-3.1.1.GA.jar4 a& ?# v$ |- D
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; X) O  V& `0 g, w* V9 ^+ S6 H
缺少jboss-transaction-api_1.1_spec-1.0.1.Final.jar
. H0 }& R- C) O21.   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
, ~) R* l  ]- L- B: N缺少hibernate-jpa-2.0-api-1.0.1.Final.jar9 A  }$ v/ F7 L6 ]5 J
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).( S% S" D8 S& x# z! D7 w' f' E
hibernate.cfg.xml配置中需添加:
: `6 ^- }. G/ a' u<property name="hibernate.cache.use_second_level_cache">true</property>
+ E0 e" q! b" C+ o' S+ g* q4 T<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</property>5 S) `4 R4 _5 r) k+ W
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
0 Q$ K/ |, X/ r  j! q8 i23. 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
4 Y+ U' I8 @% \$ s& [- m- G1 N$ J+ h缺少slf4j-api-1.6.1.jar2 b0 j7 M3 Q) {3 {/ I7 p* y
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; x. N5 z& o( c0 ~2 I" s
缺少spring-jdbc-3.2.3.RELEASE.jar
  Z& ]( e, G& ]' l% v" g6 k  e25. 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
" T* h1 E( A" y) w# V+ u9 t% T1 }0 w26.Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]+ c# |5 `* w  z% V0 I1 c
缺少struts2-spring-plugin-2.3.15.jar' V4 p. J" i+ a
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
0 M& d  `1 F+ A% C8 s3 [, o
. l( z4 a7 @. Z# T  C: \8 x28.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory7 }* J' X. y( P) I- b% t/ u& y
问题及解决办法:缺少commons-logging.jar,需要在lib中添加。
- @, z" Y8 q  W 29.NoClassDefFoundError: org/logicalcobwebs/cglib/core/NamingPolicy
& b7 m( `' f- Y$ L/ G7 B) O 问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jarproxool-cglib.jar
0 l; B0 l; p- d/ V 30.org.logicalcobwebs.proxool.ShutdownHook - Problem calling "get cause" on IllegalStateException.
5 y+ T6 c' u* ~, c0 y6 }
  j2 ~5 e, Y  H- R问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jarproxool-cglib.jar
- J0 @3 R. _$ ]0 x
9 {* j3 [, X2 Q8 M

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


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

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

   

关闭

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

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