I don't think you can easily make the tutorial work in karaf 3.x.
The main missing piece is jta 1.2 support which would be difficult to provide in karaf 3.x.

So your best bet is to use an older version of the tutorial that was deployable on karaf 3.

https://github.com/cschneider/Karaf-Tutorial/tree/3634e6e1aa49c4173ccef047ae19c9f3a1a16c1e/tasklist-blueprint-cdi

Christian

On 09.12.2015 12:27, Kevin wrote:
Hi Christian,

I'm trying to follow your excellent tutorial here:

http://www.liquid-reality.de/display/liquid/2015/03/05/Apache+Karaf+Tutorial+Part+9+-+Annotation+based+blueprint+and+JPA

I've got it working nicely in standalone karaf 4.0.3 but my requirement for
the project I'm working on is to use servicemix 6.0.0, which only contains
karaf 3.0.5.

I saw that another user had a similar requirement and you suggested manually
installing the additional bundles.  I've tried installing all I can.  I
added the enterprise 4.0.3 repo and manualling installing the latest jpa and
persistence-api features, which seemed to work ok.  However it also looks
for jndi feature, which I hit a block with when I attempted to install jndi
(and others) I get a bigger problem:

java.lang.IllegalStateException: Can't install feature jndi/0.0.0:      
Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
package:(&(package=org.osgi.framework)(version>=1.8.0)(!(version>=2.0.0)))
       Apache Karaf :: JNDI :: Core

How do I resolve this?

Or alternatively, am I going down the wrong route- instead of trying to
upgrade my karaf install by adding these features, should I instead be
trying to change/remove features from your sample code to enable it to work
in karaf 3.0.5?  If I was to go down that route, could you provide a little
bit of help to get me started please?

Sorry for asking fairly basic questions - I'm completely new to osgi and
karaf/servicemix so am on a bit of a learning curve.

Thanks,

Kevin






--
View this message in context: 
http://servicemix.396122.n5.nabble.com/OSGi-JPA-tp5715741p5723255.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to