Hi Matt,

Did you install the jta and jpa features ?

karaf@root> features:install jta
karaf@root> features:install jpa

Be careful, the jpa feature doesn't install the jpa engine, you have to it by hand before installing the feature.

In your case, we reach the timeout waiting for the EntityManagerFactory.

Could you provide the OSGi statements for your itso.bank.persistence ?

Regards
JB


On 09/16/2011 09:51 PM, Matt Madhavan wrote:
Hello,
I'm new to Karaf! I'm trying to port on of my app that uses
Aries/OpenJPA/derby/JTA trasaction etc. I have tested this successfully
using pax:provision in Felix container.

I'm having some issues with KARAF. Looks like KARAF already has bunch of
bundles installed like JTA/JNDI/JPA etc.

My datasource bundle resolves ok (Embedded Derby). But when I install my
persistence bundle it gets activate but does no create any service. The log
says as follows:

2011-09-16 14:38:57,375 | ERROR | rint Extender: 2 | BlueprintContainerImpl
| ntainer.BlueprintContainerImpl$1  293 | 9 - org.apache.aries.blueprint -
0.3.1 | Unable to start blueprint container for bundle itso.bank.persistence
due to unresolved dependencies
[(&(&(*org.apache.aries.jpa.proxy.factory*=true)(osgi.unit.name=itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))]
java.util.concurrent.TimeoutException
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:287)[9:org.apache.aries.blueprint:0.3.1]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]


Any ideas please?

Thanks in advance!

Matt



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Features-bundles-for-OpenJPA-JTA-tp3342895p3342895.html
Sent from the Karaf - User mailing list archive at Nabble.com.

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to