NoClassDefFoundError when using Hibernate and javassist on JBoss EAP 7
Issue
- When annotating a Hibernate entity with
@Proxy(proxyClass = javax.management.DynamicMBean.class)
, ajava.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
error occurs when the application is deployed. - When starting EAP with
-Dhibernate.bytecode.provider=javassist
, anjava.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
error occurs on startup.
Environment
- Red Hat JBoss Enterprise Application Platform 7
- Hibernate with the javassist bytecode enhancer
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.