Spring 4.0.0 + Eclipse + Maven + WAS8.0 = ClassNotFoundException:org.springframework.asm.commons.EmptyVisitor

时间:2014-06-06 16:31:01

标签: java eclipse spring maven

我跟着http://www.codejava.net/frameworks/spring/creating-a-spring-mvc-project-using-maven-and-eclipse-in-one-minute建立了一个基本的Spring MVC骨架。这在WAS8.0上开箱即用。我们在这里使用Spring 4.0.0.RELEASE,所以我进入了pom.xml并将spring版本更改为4.0.0.RELEASE,现在该应用程序不再有效。浏览网页即可

Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet

检查Eclipse控制台中的错误:http://fpaste.org/107837/07216414/

我当前的pom.xml(仅从教程中更改过的文件)http://fpaste.org/107880/02080310/

唯一的变化是将spring.version更改为4.0.0.RELEASE。

/ WEB-INF / lib

的内容
aopalliance-1.0.jar
commons-logging-1.1.1.jar
spring-aop-4.0.0.RELEASE.jar
spring-context-4.0.0.RELEASE.jar
spring-core-4.0.0.RELEASE.jar
spring-expression-4.0.0.RELEASE.jar
spring-web-4.0.0.RELEASE.jar
spring-webmvc-4.0.0.RELEASE.jar

mvn dependency:tree的输出:

com.redacted.test:Spring4MVCTest2:war:0.0.1-SNAPSHOT
+- org.springframework:spring-context:jar:4.0.0.RELEASE:compile
|  +- org.springframework:spring-aop:jar:4.0.0.RELEASE:compile
|  \- org.springframework:spring-expression:jar:4.0.0.RELEASE:compile
+- org.springframework:spring-webmvc:jar:4.0.0.RELEASE:compile
|  \- org.springframework:spring-web:jar:4.0.0.RELEASE:compile
+- org.springframework:spring-core:jar:4.0.0.RELEASE:compile
|  \- commons-logging:commons-logging:jar:1.1.1:compile
+- org.springframework:spring-beans:jar:4.0.0.RELEASE:compile
+- org.springframework:spring-orm:jar:4.0.0.RELEASE:compile
|  +- aopalliance:aopalliance:jar:1.0:compile
|  +- org.springframework:spring-jdbc:jar:4.0.0.RELEASE:compile
|  \- org.springframework:spring-tx:jar:4.0.0.RELEASE:compile
+- org.springframework:spring-test:jar:4.0.0.RELEASE:test
+- javax.servlet:servlet-api:jar:2.4:provided
\- javax.servlet.jsp:jsp-api:jar:2.1:provided

http://fpaste.org/107879/08026714/

非常感谢任何帮助,谢谢!

0 个答案:

没有答案