Spring3 Common Exception resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.