1.java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
解决:添加aopalliance.jar
2.java.lang.NoClassDefFoundError: antlr/ANTLRException
解决:添加antlr.jar
3.nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
解决:添加asm.jar
4.nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
解决:添加aspectjweaver.jar
5.nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
解决:添加cglib.jar
6.nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
解决:添加commons-collections.jar
7.java.lang.NoClassDefFoundError: org/dom4j/DocumentException
解决:添加dom4j.jar
8.java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
解决:添加jta.jar
9.org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available
解决:添加com.springsource.net.sf.cglib.jar
10. @OneToOne or @ManyToOne on Amodel references an unknown entity Bmodel
解决:在hibernate.cfg.xml中添加<mapping class="Bmodel" />
11.java.lang.NoSuchMethodError: javax.persistence.OneToMany.orp hanRemoval()Z
解决:(1) 加入hibernate\lib\jpa中的jpa2.0的jar包
(2) 将JRE System Library的jdk设置成1.6以上版本
(3) 将ejb3-persistence去掉
注意:
hibernate-jpa-2.0-api-1.0.0.Final和ejb3-persistence有冲突,如果升级到Hibernate3.5那么可以把ejb3-persistence去掉