gpt4 book ai didi

java - ClassNotFoundException : org. aopalliance.intercept.MethodInterceptor

转载 作者:行者123 更新时间:2023-11-28 23:04:23 25 4
gpt4 key购买 nike

我正在使用 Tomcat 7 开发 Hibernate3 Spring3 项目启动器,
我正在努力解决这个 ClassNotFoundException - aopalliance 拦截器 Jar(这是 AspectJ 吗??)
尽管 Jar 存在于类路径中。
我从 maven 中不明白的是,我在哪里使用这个 Jar - 谁依赖这个 Jar?

[INFO] +- org.hibernate:hibernate-core:jar:3.3.2.GA:compile
[INFO] | +- antlr:antlr:jar:2.7.6:compile
[INFO] | +- javax.transaction:jta:jar:1.1:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.5.8:compile
[INFO] +- org.hibernate:hibernate-entitymanager:jar:3.3.2.GA:compile
[INFO] | +- org.hibernate:hibernate:jar:3.2.6.ga:compile
[INFO] | | +- net.sf.ehcache:ehcache:jar:1.2.3:compile
[INFO] | | \- asm:asm-attrs:jar:1.5.3:compile
[INFO] | +- org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile
[INFO] | +- org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile
[INFO] | +- org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile
[INFO] | \- javassist:javassist:jar:3.4.GA:compile
[INFO] +- junit:junit:jar:4.8.1:test
[INFO] +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] +- javax.servlet:servlet-api:jar:2.4:compile

这是有问题的 jar :

[INFO] +- aopalliance:aopalliance:jar:1.0:compile


[INFO] +- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:3.0.5.RELEASE:test
[INFO] +- org.springframework:spring-webmvc:jar:3.0.5.RELEASE:compile
...

最佳答案

who is dependent on this Jar?

Spring 框架需要它来实现 Spring AOP。独立的 AspectJ 不需要它。

关于java - ClassNotFoundException : org. aopalliance.intercept.MethodInterceptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12233267/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com