Ok, just got it working. One exception caused me to double check some
settings, when I logged out of the karaf console I got:

java.lang.IllegalStateException: No persistence units defined for bundle
com.pww.test.demo/1.0.0.SNAPSHOT.
        at
org.apache.aries.jpa.container.unit.impl.ManagedPersistenceUnitInfoFactoryImpl.destroyPersistenceBundle(ManagedPersistenceUnitInfoFactoryImpl.java:60)
        at
org.apache.aries.jpa.container.impl.PersistenceBundleManager.removedBundle(PersistenceBundleManager.java:313)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerRemoved(BundleHookBundleTracker.java:513)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerRemoved(BundleHookBundleTracker.java:433)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.untrack(BundleHookBundleTracker.java:834)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker.close(BundleHookBundleTracker.java:196)
        at
org.apache.aries.util.tracker.RecursiveBundleTracker.close(RecursiveBundleTracker.java:120)
        at 
   ....

And I thought that was odd as I know I have one defined. I went and checked
my persistence.xml and found a wrong version and mismatch name.

<persistence xmlns="http://java.sun.com/xml/ns/persistence";
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
             version="2.0">  (notice 2.0)

Apparently in my random thrashing for other things this got changed. I
changed it back to 1.0 and made sure everything matched, and magically it
works now. However, that not so good part is that it failed silently and
also that Christian's example was exhibiting the same problem, and all his
stuff matched up. (also with no other apparent changes that example is
working now as well) 

Bah, anyways, its work, thanks for making be look and double check items,
not sure if anything more useful could be added to the logs for this to make
the process easier, besides the issue that is already closed that was
mentioned earlier.

Thanks again!
-Nick




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

Reply via email to