aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1155) Error when OSGi container is stopped on aries jpa container No persistence units defined for bundle
Date Fri, 31 Jan 2014 08:42:09 GMT
Christian Schneider created ARIES-1155:
------------------------------------------

             Summary: Error when OSGi container is stopped on aries jpa container No persistence
units defined for bundle 
                 Key: ARIES-1155
                 URL: https://issues.apache.org/jira/browse/ARIES-1155
             Project: Aries
          Issue Type: Bug
          Components: JPA
         Environment: Ubuntu Linux, Java 7, Karaf 3.0.1-SNAPSHOT

I tried to find the aries jpa versions for Affects Version but could not find any.
            Reporter: Christian Schneider


I run my cameljpa jpa2jms example on karaf 3.0.1-SNAPSHOT (The snapshot version is necessary
as karaf had some issues with openjpa).

See the readme in:
https://github.com/cschneider/Karaf-Tutorial/tree/master/cameljpa/jpa2jms

The example works fine but when I stop the OSGi container I get the error below:

ERROR: Bundle org.apache.aries.jpa.container [160] Error stopping mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.0
(org.osgi.framework.BundleException: Activator stop error in bundle org.apache.aries.jpa.container
[160].)
java.lang.IllegalStateException: No persistence units defined for bundle jpa2jms/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 org.apache.aries.jpa.container.impl.PersistenceBundleManager.close(PersistenceBundleManager.java:140)
	at org.apache.aries.jpa.container.impl.PersistenceBundleManager.stop(PersistenceBundleManager.java:643)
	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:667)
	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2530)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1309)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
	at java.lang.Thread.run(Thread.java:744)




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message