cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
273 stars 303 forks source link

With Karaf 3.0 the db-examplejpa shows error of EntityManager #8

Closed jonathanvila closed 10 years ago

jonathanvila commented 10 years ago

I've tried these samples with Karaf 2.3.0 , Karaf 2.3.3, Karaf 3.0 and Fuse 6.1 ( with Fabric ) and they only work ( for me ) in _Karaf 2.3.3_

In the other versions it always give an error when trying to start the bundle net.lr.tutorial.karaf.db:db-examplejpa:bundle:1.0-SNAPSHOT :

org.apache.aries.blueprint.core - 1.3.0 | Bundle db-examplejpa is waiting for 
dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=person))
(objectClass=javax.persistence.EntityManagerFactory))]
jonathanvila commented 10 years ago

Using Karaf 3.0.1 seems to fix this kind of issues.

issamux commented 10 years ago

i ve also tried this tutorial and get always errors :

2014-09-04 08:11:55,499 | INFO | qtp614674444-399 | BlueprintContainerImpl | 19 - org.apache.aries.blueprint.core - 1.4.0 | Bundle db-examplejpa is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=person))(objectClass=javax.persistence.EntityManagerFactory))]

karaf@root()> info Karaf Karaf version 3.0.1

cschneider commented 10 years ago

This happens a lot when there is an error creating the EntityManagerFactory. Unfortunately the current aries jpa version tends to swallow the reason. Can you try to restart the aries jpa bundles and check if you then get an error in the log?

guiramos commented 8 years ago

cschneider, I am getting this same error using Hibernate 4.2.15.Final and Karaf 4.0.4.

Do you have any suggestion?

shoaibjdev commented 8 years ago

karaf@root()> info Karaf Karaf version 4.0.5

Still getting same issue. Any suggestions?