Hi,
I try to use hibernate in a bundle. I create my bundles with the maven-bundle-plugin.
I have following dependencies added to my pom.xml:
Code:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.2.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
</dependency>
But following error is printed when I start the bundle:
Code:
g! ERROR: Error starting obr://com.televic.track-persist-impl-mock/-1295527086198 (org.osgi.framework.BundleException: Unresolved constraint in bundle com.televic.track-persist-impl-mock [5]: Unable to resolve 5.5: missing requirement [5.5] package; (package=org.hibernate))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.televic.track-persist-impl-mock [5]: Unable to resolve 5.5: missing requirement [5.5] package; (package=org.hibernate)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:636)
From where and how can I start the hibernate bundle? Does hibernate provide a bundle for OSGI?
Kind regards,
Stijn.