Javassist conflict with Struts2 in JBoss EAP
Issue
There is an issue with Struts 2.1.8 where a conflict with the Javassist library distributed with the JBoss Enterprise Application Platform (EAP) resulting in errors like
17:28:34,437 ERROR [BasicLazyInitializer] Javassist Enhancement failed: hello.Message
java.lang.RuntimeException: java.lang.IllegalArgumentException: Can not
set static javassist.util.proxy.MethodFilter field
hello.Message_$$_javassist_14._method_filter to
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1
at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:358)
Environment
- JBoss Enterprise Application Platform (EAP) 5
- Struts 2.1.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
