0

每当我将 .war 文件部署到 WAS-ND 时,都会遇到此错误。

Error Stack: 
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file <filename>

nested exception is java.lang.IncompatibleClassChangeError: org.springframework.asm.ClassVisitor 


Caused by: java.lang.IncompatibleClassChangeError: org.springframework.asm.ClassVisitor

我做了一些研究,发现我需要 cglib 和 asm jar 才能工作。不幸的是,我已经有了它们......

罐子:

cglib-nodep-2.2.2.jar
spring-asm-3.1.1.RELEASE.jar

我不明白为什么它仍然不起作用......这里有什么帮助吗?:(

4

3 回答 3

0

If you are using applicationContext, Check whether its under source folder.

And also check jars under buildpath

于 2012-10-17T05:40:28.317 回答
0

它不是在谈论 classnotfound 异常。它只是说明“ClassVisitor”所依赖的类是不兼容的。它可以定位类,只是版本与预期的不同。

我会先试试这个。查看此类并查看其使用的导入,并查看哪些 Jars 包含这些类,并且可能其中一个应该包含答案。

顺便说一句,您使用的是什么版本的 Spring,并确保所有依赖的 Jars 都是兼容的!

高温高压

于 2012-10-16T00:59:13.440 回答
0

我通过删除 org.springframework.asm jar 解决了这个问题。显然,这是 IBM 已知的一个错误,将于 10 月 29 日发布补丁以进行修复。希望这可以帮助。:)

编辑:不幸的是,补丁没有解决问题......

于 2012-10-26T17:03:41.140 回答