Thanks for the info Christian, I tried at first with hibernate and found that
the jpa 2.1 version might be the issue so I went back to OpenJPA. I also
made sure I used the 2.2.2 version as it seems like that had been a bit
better tested.

My bundle does have the <Meta-Persistence> info it, here is the generated
version that Maven spits out:

Manifest-Version: 1.0
Bnd-LastModified: 1397592346859
Build-Jdk: 1.8.0
Built-By: nick
Bundle-Activator: com.pww.test.osgi.Activator
Bundle-Blueprint: OSGI-INF/blueprint/config.xml
Bundle-ManifestVersion: 2
Bundle-Name: demo OSGi Bundle
Bundle-SymbolicName: com.pww.test.demo
Bundle-Version: 1.0.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Export-Package: com.pww.test.osgi.services;uses:="com.pww.test.osgi.doma
 in";version="1.0.0.SNAPSHOT",com.pww.test.osgi.domain;uses:="javax.pers
 istence";version="1.0.0.SNAPSHOT"
Export-Service: com.pww.test.osgi.services.HelloWorldService
Import-Package: javax.persistence;version="[1.0.0,2.0.0]",com.pww.test.o
 sgi.domain,com.pww.test.osgi.services,javax.annotation,org.osgi.framewo
 rk;version="[1.6,2)",org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
 ,org.slf4j;version="[1.7,2)"
Meta-Persistence: META-INF/persistence.xml
Tool: Bnd-2.1.0.20130426-122213

I tried setting the log to DEBUG, but was a unable find any useful
information from there (could be I just don't know what to look for). Also,
I tried the example you have as well at
http://www.liquid-reality.de/display/liquid/2012/01/13/Apache+Karaf+Tutorial+Part+6+-+Database+Access
and have the same issue.

The only thing I haven't tried is blowing away my Karaf install and trying
from scratch, but I would really like to understand whats 'wrong' with my
current setup before I go that route.

-Nick



--
View this message in context: 
http://karaf.922171.n3.nabble.com/JPA-Open-JPA-bundle-issue-tp4032784p4032800.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to