做酒网站,滨江区建设局网站,如何制作框架网页,电脑如何重新安装wordpress初学spring#xff0c;在网上搜到一篇spring3常见异常的文章#xff0c;现转载如下#xff1a; 以下异常使用的是spring是3.1.1#xff0c;是我自己学习中遇到的错误笔记#xff0c;有可能不是都适用#xff0c;仅做参考 异常1#xff1a;java.lang.NoClassDefFoundErro…初学spring在网上搜到一篇spring3常见异常的文章现转载如下 以下异常使用的是spring是3.1.1是我自己学习中遇到的错误笔记有可能不是都适用仅做参考 异常1java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 缺少包commons-logging的jar本人下载了一个commons-logging-1.1.1.jar引入问题解决下载地址点击打开链接 异常2java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator 缺少包加入org.springframework.transaction-3.1.1.RELEASE.jar即可 异常3Offending resource: class path resource 缺少包加入org.springframework.aop-3.1.1.RELEASE.jar即可 异常4java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor 缺少包aopalliance-alpha1.jar 下载地址http://sourceforge.net/projects/aopalliance/files/ 下完引入 异常5java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice 缺少包com.springsource.org.aopalliance-1.0.0.jar下载地址点击打开链接下完引入 异常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] 原因是aopalliance-alpha1.jar和com.springsource.org.aopalliance-1.0.0.jar冲突了删除前者这里有点不是很明白异常4的解决包怎么就可以删除了呢是不是异常5的解决方法也适用于异常4有待尝试 异常7org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces. 缺少cglib的包下载地址http://sourceforge.net/projects/cglib/files/latest/download?sourcefiles 下完引入 异常8java.lang.NoClassDefFoundError: javax/mail/MessagingException 缺少activation.jar, mail.jar 原文地址链接http://blog.csdn.net/sjzs5590/article/details/7348836转载于:https://www.cnblogs.com/suxygz/p/3988861.html