Build path is incomplete. Cannot find class file for org/aspectj/weaver/refl

like_bean 2014-10-19 11:44:28
<bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>

<!-- 配置事物属性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="get*" read-only="true"/>
<tx:method name="*"/>
</tx:attributes>
</tx:advice>

<!-- 配置事物切入点 -->
<aop:config>
<aop:pointcut expression="execution(* com.ssh.service.*.*(..))" id="txpointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="txpointcut"/>
</aop:config>
加了这行就报错Build path is incomplete. Cannot find class file for org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException,为什么?是架包不对吗?
...全文
2348 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
junzibuqi124 2017-02-28
  • 打赏
  • 举报
回复
run meven clean 一下就可以了
baijiaheidoujiang 2016-09-12
  • 打赏
  • 举报
回复
复制一下工程,复制出来的新工程不会有红叉,具体什么原因不清楚,我的解决了
公子七 2016-08-28
  • 打赏
  • 举报
回复
可能是你的 你删除文件夹后,没有从Build path 删除,导致的,我的就这样解决的
Whh520Xdd 2016-05-03
  • 打赏
  • 举报
回复
我也是同样的问题。但是能运行起来,就是项目会有个红色的X……不知道还有没有更好的解答
zrh1203 2015-11-28
  • 打赏
  • 举报
回复
同样的问题,,,求解,,,
qq_26377811 2015-11-22
  • 打赏
  • 举报
回复
同样的问题,,,求解,,,
qq_19249117 2015-11-09
  • 打赏
  • 举报
回复
遇到同样的问题求解
diu_brother 2015-08-17
  • 打赏
  • 举报
回复
遇到同样问题求解决
zhangdongxv25977 2014-11-12
  • 打赏
  • 举报
回复
遇到同样问题求解决
qq1121196537 2014-10-31
  • 打赏
  • 举报
回复
你根据包的路径,在编译环境中看下class 在不在
lx8489 2014-10-31
  • 打赏
  • 举报
回复
帮顶。遇到同样的问题、spring-aspects-4.0.0.RELEASE.jar包也导入了、难道是版本问题吗
like_bean 2014-10-20
  • 打赏
  • 举报
回复
来人呀?不知道哪里得问题

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧