Reputation: 721
can not resolve bundle in karaf. Here logs:
2016-04-08 05:01:02,323 | INFO | h for user karaf | BlueprintContainerImpl
| 17 - org.apache.aries.blueprint.core - 1.4.4 |
Bundle io.subutai.core.kurjun.impl/4.0.0.RC7-SNAPSHOT is waiting for dependencies
[(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=PU-KURJUN))(objectClass=javax.persistence.EntityManagerFactory))]
In this module creating db, using openjpa for that.
Upvotes: 1
Views: 2367
Reputation: 19626
It means that your bundle needs an EntityManagerFactory service for your persistence unit. This can be a bit difficult to track down.
You have to check that you have a bundle that defines this persistence unit, that it is correctly announced using the Manifest header and also that you have a suitable DataSource defined.
For the new error you get I think the problem is that you inject an EnityManagerFactory while I think you need to inject an EntityManager.
Upvotes: 2