Cannot get JPA/Hibernate to work in JBoss Fuse 6.2.0

Solution Verified - Updated -

Issue

  • On Fuse 6.2.0 GA, User is trying to deploy a data source using JPA/Hibernate connecting to a standalone Derby 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content