You can try this one:
http://www.liquid-reality.de/display/liquid/2012/01/13/Apache+Karaf+Tutorial+Part+6+-+Database+Access
I think in your case below you either have to load a bundle for the jpa
spec: mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1
In general it is a good idea to use apache karaf for things like jpa.
There you can simply install the jpa feature.
Christian
Am 18.04.2013 15:48, schrieb FERJANI:
Hello everyone,
I'm a beginner to the OSGi world, and I need a simple example of an
application using JPA (with any provider) that allows me to develop my
own implementation.
I tried to follow what is described here:
http://jaxenter.com/tutorial-using-jpa-in-an-osgi-environment-36661.html
but whenever I try to start my bundle, I have this error:
org.osgi.framework.BundleException: Unresolved constraint in bundle
mouza-db [2]: Unable to resolve 2.0: missing requirement [2.0]
osgi.wiring.package;
(&(osgi.wiring.package=javax.persistence)(jpa=2.0)(version>=1.1.0))
Regards,
Khadija
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]