Cannot get JPA/Hibernate to work in JBoss Fuse 6.2.0
Issue
- On
Fuse 6.2.0 GA, User is trying to deploy a data source usingJPA/Hibernateconnecting to a standaloneDerby DB(latest release). - The persistence bundle remains in
GracePeriod, waiting for dependencies, and eventually fails to start. - The demo project is based on instructions found at https://github.com/FuseByExample/esb-transactions
- Following is the error.
18:54:29,973 | ERROR | rint Extender: 3 | aries | 294 - org.apache.aries.jpa.blueprint.aries - 1.0.4 | No org.apache.aries.jpa.container.sync.Synchronization service registered.
18:54:29,977 | INFO | rint Extender: 3 | BlueprintContainerImpl | 21 - org.apache.aries.blueprint.core - 1.4.2 | Bundle fuse-dbaccess is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=dbaccess-pu))(objectClass=javax.persistence.EntityManagerFactory))]
- Unable to use @Transactional implementation using JPA in fuse
- In the project, we are using JPA entitites for interaction with PostgresSQL database.
Classes used: javax.persistence.EntityManagerFactory, javax.persistence.EntityManager
Environment
- Red Hat JBoss Fuse
- 6.2.0
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.
