Beginner spring, in the online search for an article Spring3 Common anomalies, is reproduced as follows:
The following exception is using spring is 3.1.1, is my own study encountered in the error notes, may not all apply, only for reference
Exception 1:java.lang.noclassdeffounderror:org/apache/commons/logging/logfactory
Missing package commons-logging jar, I downloaded a commons-logging-1.1.1.jar, introduced, problem solved, click to open the link
Exception 2:java.lang.noclassdeffounderror:org/springframework/dao/support/persistenceexceptiontranslator
Missing package, add Org.springframework.transaction-3.1.1.release.jar
Exception 3:offending Resource:class path resource
Missing package, add Org.springframework.aop-3.1.1.release.jar
Exception 4:java.lang.noclassdeffounderror:org/aopalliance/intercept/methodinterceptor
Missing Package Aopalliance-alpha1.jar
Http://sourceforge.net/projects/aopalliance/files/after the introduction
Exception 5:Java.lang.noclassdeffounderror:org/aopalliance/aop/advice
Missing package Com.springsource.org.aopalliance-1.0.0.jar, click Open Link to complete the introduction
Exception 6: Org.springframework.beans.factory.BeanNotOfRequiredTypeException:Bean named ' Org.springframework.transaction.interceptor.transactioninterceptor#0 ' must be of type [Org.aopalliance.aop.Advice], But was actually of type [org.springframework.transaction.interceptor.TransactionInterceptor]
The reason is that Aopalliance-alpha1.jar and Com.springsource.org.aopalliance-1.0.0.jar conflict, delete the former (here is a bit not very clear, exception 4 of the solution package how can be deleted, is not an exception 5 of the workaround also applies to the exception 4, waiting to be tried)
Exception 7:Org.springframework.aop.framework.AopConfigException:Cannot Proxy target class because CGLIB2 is not available . Add CGLIB to the class path or specify proxy interfaces.
The Cglib package is missing, Http://sourceforge.net/projects/cglib/files/latest/download?source=files is introduced after the
Exception 8:java.lang.noclassdeffounderror:javax/mail/messagingexception
Missing Activation.jar, Mail.jar original address link: http://blog.csdn.net/sjzs5590/article/details/7348836
Spring3 Common Exception resolution