【发布时间】:2012-12-22 17:22:45
【问题描述】:
与Compatibility Issue of ASM 3.1 and HIbernate and JAX-RS 类似的问题 似乎击中了我: 我的基于 Jersey / JPA 的 rest 应用程序也使用 jersey-moxy(jersey 版本 1.15)引发错误:
Caused by: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassReader.accept(Lorg/eclipse/persistence/internal/libraries/asm/ClassVisitor;[Lorg/eclipse/persistence/internal/libraries/asm/Attribute;Z)V
我的maven依赖列表显示:
- asm-3.1.jar
- jersey-moxy-1.15.jar
- org.eclipse.persistence.asm-2.3.2.jar
如果我从依赖项中删除 jersey-moxy 1.15,问题就会消失,但是我不能使用额外的 MOXy 功能。
如果排除 org.eclipse.persistence.asm 依赖项,我得到:
Internal Exception: java.lang.SecurityException: class "org.eclipse.persistence.sessions.factories.SessionManager"'s signer information does not match signer information of other classes in the same package
有什么办法可以解决这种情况?
【问题讨论】:
-
尝试使用maven-duplicate-finder-plugin 来检测您的WAR 中的重复项,也许会有所帮助
标签: java jersey eclipselink jax-rs moxy