该用户从未签到
|
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.jar、aspectjweaver.jar、aspectjrt.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.jar和proxool-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.jar和proxool-cglib.jar
- J0 @3 R. _$ ]0 x
9 {* j3 [, X2 Q8 M |
|
|