Unable to load class 'org.hibernate.proxy.HibernateProxy' in Fuse logs
Issue
- We are trying to deploy an application which uses persistence, but we get the following error:
Unable to load class 'org.hibernate.proxy.HibernateProxy' because the bundle wiring for com.bundle-mysql-dao is no longer valid.
-
The application has two bundles: the bundle A contains the service and persistence.xml, the bundle B contains the entity classes.
-
We need to package the @Entity classes in a separate bundle in order to share these classes among various services:
our application must support multiple databases, so we need to share @Entity classes among services that have Entity Managers bound to various datasources.
Environment
- Red Hat JBoss Fuse
- 6.x
- Hibernate
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.