spring常见异常
来源:互联网 发布:淘宝平台如何赚钱 编辑:程序博客网 时间:2024/06/06 19:27
出现的问题解决:
问题1:Exceptionin thread "main" java.lang.NoClassDefFoundError:org/apache/commons/logging/LogFactory atorg.springframework.util.ClassUtils.<clinit>(ClassUtils.java:67) at org.springframework.core.io.DefaultResourceLoader.<init>(DefaultResourceLoader.java:52) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:184) at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:80) at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:58) at
需要加上:commons-logging.jar log4j-1.2.11.jar
问题2:Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException:Unexpected exception parsing XML document from class path resource[text.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
at java.lang.Class.forName0(Native Method)
需要加上:aspectjweaver.jar
问题3:Exception in thread "main" org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'logBean' defined in class path resource[text.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
需要加上:cglib-2.1.3.jar
问题4:xception in thread "main" org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'logBean' defined in class path resource[text.xml]: Initialization of bean failed; nested exception isjava.lang.NoClassDefFoundError: org/objectweb/asm/Type
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
需要加上:asm.jar
- spring常见异常
- spring常见异常
- spring+jasperReport 常见异常
- Spring 常见异常收集
- Spring开发中常见异常
- Spring种常见异常解决方法
- Spring 4 常见异常总结
- spring+struts+hibernate常见异常总结--邵京国
- hibernate 和spring整合常见异常
- spring+struts+hibernate常见异常总结(转)
- Spring开发常见异常及原因列表
- spring+struts+hibernate常见异常总结
- Spring中常见的bean创建异常
- spring boot 上线运行异常常见解决方案
- JavaWeb spring 常见的缺包异常
- Spring常见的十八中异常Exception
- Spring的几种常见异常
- Spring mvc 和mybatis 整合碰见的常见 异常
- JSON的结果格式
- "极限编程"介绍
- 钩子函数学习
- 当从文件读入数据时,注意文件最后一个换行符
- XML结果格式
- spring常见异常
- Http Handler 介绍 及通过IhttpHandler实现图片验证码
- IEEE 802.11协议(来自网络)
- 踏入新的世界,属于我自己的类型容器:TypeVector
- RIL.java里request流程
- Linux中的地址空间
- informatica power center 851实践笔记(3) ——缓慢变化维相关以及核心资料下载
- 在linux系统中使用windows应用程序打开本地文件
- 传工信部将大力推进开源软件