I've tried all namespace handlers which are in JPA 2.1 registry persistence_1_0.xsd,persistence_2_0.xsd,persistence_2_1.xsd. As a result, none of them worked and thrown below error.
2.0,2.1 is waiting for namespace handlers [http://xmlns.jcp.org/xml/ns/persistence] 1.0 is waiting for namespace handlers [http://java.sun.com/xml/ns/persistence]
Let me know the cause of the issue.
Many Thanks In Advance.
If you check:
You'll see NB: this feature doesn't provide the JPA engine, you have to install one by yourself (OpenJPA for instance). This description seems old. You need actual JPA provider, like:
(versions of bundles from Fuse newer than 7.0).
So please install additionally
hibernatefeature:EDIT 2019-11-07:
I checked (upcoming Fuse 7.5, but should be valid for 7.0) and found the problem you have.
If you check:
you'll see there's
org.hibernate.jpa.HibernatePersistenceProviderJPA provider registered by Hibernate.You've however added (in
META-INF/persistence.xml):You should either remove this provider or use
org.hibernate.jpa.HibernatePersistenceProviderbecause it affects an OSGi filter created byorg.apache.aries.jpa.container.impl.PersistenceProviderTracker#createFilterfor your bundle. So that's the reason why you didn't have EMF registered.With this change, I found it works: