找不到org.aspectj.weaver.reflect.ReflectionWorld [英] Cannot find org.aspectj.weaver.reflect.ReflectionWorld

查看:793
本文介绍了找不到org.aspectj.weaver.reflect.ReflectionWorld的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse 4.3中设置了一个Spring 3.2.3 + Hibernate 4项目。



当我添加代码< tx:注释驱动的transaction-manager =transactionManager/> 到我的上下文我开始在每个单个bean中收到以下错误:

 构建路径不完整。找不到org / aspectj / weaver / reflect / ReflectionWorld的类文件$ ReflectionWorldException 

现在,我添加了AspectJ Tools和Cglib依赖于我的项目和JAR,包括它找不到的类。应用程序运行正常,Spring正在成功管理会话和事务。



我已经搜索了一个解决方案,但每个答案都说错误发生是因为缺少JAR。 / p>

有没有人知道我是什么(不兼容的版本?)还是这是Eclipse的错误?



是一个打印屏幕的问题(每个错误,你会看到,我上面指出的一个。)





提前感谢

解决方案

好的,我终于找到了解决我的问题!



当我安装了Spring Tools插件,似乎我忘了检查两个AspectJ编译器和AspectJ开发工具从插件列表。一旦我安装并重新启动Eclipse,错误消失了。



如果有人感兴趣,这是一个打印屏幕:




I'm setting a Spring 3.2.3 + Hibernate 4 project in Eclipse 4.3.

When I add the code <tx:annotation-driven transaction-manager="transactionManager"/> to my context I start getting the following error in every single bean:

Build path is incomplete. Cannot find class file for org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

Now, I added both AspectJ Tools and Cglib dependencies to my project and the JARs are there, including the class it can't find. The application runs normally, and Spring is managing sessions and transactions successfully.

I've searched for a solution but every answers says the error occurs because the lack of JARs.

Does anyone knows what I'm missing (incompatible versions?) or is this an Eclipse bug?

Here is a print screen of the problem (every error you'll see is the one I indicated above).

Thanks in advance!

解决方案

Ok, I finally found the solution to my problem!

When I installed the Spring Tools plugin it seems I forgot to check both "AspectJ Compiler" and "AspectJ Development Tools" from the plugin list. As soon as I installed and restarted the Eclipse, the errors disappeared.

Here's a print screen if someone interested:

这篇关于找不到org.aspectj.weaver.reflect.ReflectionWorld的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆