码迷,mamicode.com
首页 > 编程语言 > 详细

Spring环境搭建错误

时间:2015-01-08 20:15:27      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:

技术分享技术分享

1,cvc-complex-type.2.4.c
技术分享
技术分享
此错误是因为导使用jar包都是spring 4.0的jar包,但是配置文件引入的xsd文件版本不对,或者少引入了xsd文件导致。
技术分享
技术分享
技术分享
技术分享
2,
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘juggler‘ defined in class path resource [chp04/aop/spring.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0‘: Cannot create inner bean ‘(inner bean)‘ of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)‘: Cannot create inner bean ‘(inner bean)‘ of type [org.springframework.aop.aspectj.AspectJExpressionPointcut] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#2‘: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutDesignatorHandler
主要错误信息为两点:
BeanPostProcessor before instantiation of bean failed
Cannot create inner bean ‘(inner bean)‘ of type
这种错误是缺少jar包:aspectjrt.jar、aspectjweaver.jar
两个jar包。















Spring环境搭建错误

标签:

原文地址:http://blog.csdn.net/mergades/article/details/42527755

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!