I also tested my example with the hibernate 5.0.6 feature now and found
some issues with it.
I tracked the issue and a patched feature file at
https://hibernate.atlassian.net/browse/HHH-10432.
Can you test with this file too?
Christian
On 08.01.2016 14:41, cniehues wrote:
It seems that the ServiceMix ant bundle is needed to get it working.
I added the hibernate-orm feature provided by the
hibernate-osgi-5.0.6.Final-karaf.xml from the official download to the
enterprise-4.0.3-features.xml in karaf and also added the ServiceMix:ant
bundle and now I get an EntityManager.
/<feature name='hibernate-orm' description='Combines all Hibernate core
dependencies and required modules into a single feature'
version='5.0.6.Final'>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5</bundle>
*<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.8.2_2</bundle>*
<bundle>mvn:org.jboss.logging/jboss-logging/3.3.0.Final</bundle>
<bundle>mvn:org.hibernate.javax.persistence/hibernate-jpa-2.1-api/1.0.0.Final</bundle>
<bundle>mvn:org.javassist/javassist/3.18.1-GA</bundle>
<bundle>mvn:org.jboss/jandex/2.0.0.Final</bundle>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5</bundle>
<bundle>mvn:org.hibernate.common/hibernate-commons-annotations/5.0.1.Final</bundle>
<bundle>mvn:org.hibernate/hibernate-core/5.0.6.Final</bundle>
<bundle>mvn:org.hibernate/hibernate-entitymanager/5.0.6.Final</bundle>
<bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
<bundle>mvn:org.hibernate/hibernate-osgi/5.0.6.Final</bundle>
</feature>/
I think I should create a hibernate ticket for that.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Injection-Problem-with-JPA-and-Camel-in-Karaf-4-0-3-tp4044627p4044709.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com