Hi Christian,

I think that you have the same exception in Karaf commands with 2.3.0.

Regarding jpa, it's the same issue seen by Dan (Tran). A workaround is to change the start-level of the persistence engine.

Regards
JB

On 02/28/2013 10:33 AM, Christian Schneider wrote:
I tested Karaf 2.3.1 with my db / jpa tutorial. You can easily replicate
by following:
https://github.com/cschneider/Karaf-Tutorial/blob/master/db/examplejpa/ReadMe.txt


- Basically check out the tutorial
- do mvn clean install in the db dir
- Copy the derby datasource xml to deploy
- Do the commands from the ReadMe.txt

I found some issues:
- I got exceptions for my karaf commands ClassNotFound:
org.apache.karaf.shell.console.CompleteableFunction.
   I had to add <Import-Package>org.apache.karaf.shell.console,
*</Import-Package> to make it work.
   As I am not referencing CompleteableFunction I think this is an issue
in Karaf. It can be worked around easily though.
   We can explain it in the release notes
- When stopping karaf I get the stack trace below. This may be an issue
in aries jpa.

So I am +0 for the release.

Christian

---
ERROR: Bundle org.apache.aries.jpa.container [65] Error stopping bundle.
(java.lang.IllegalStateException: No persistence units defined for
bundle db-examplejpa/1.0.0.SNAPSHOT.)
java.lang.IllegalStateException: No persistence units defined for bundle
db-examplejpa/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:2361)
     at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1214)
     at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)

     at java.lang.Thread.run(Thread.java:662)
ERROR: Bundle org.apache.aries.jpa.container [65] 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 [65].)
java.lang.IllegalStateException: No persistence units defined for bundle
db-examplejpa/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:2361)
     at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1214)
     at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)

     at java.lang.Thread.run(Thread.java:662)




On 28.02.2013 02:43, Jamie G. wrote:
Hi,

We resolved 98 issues in this release (web page will be published post
RC promotion):
https://svn.apache.org/repos/asf/karaf/site/trunk/src/main/webapp/index/community/download/karaf-2.3.1-release.page


Staging repository:
https://repository.apache.org/content/repositories/orgapachekaraf-315/

Release tags:
https://svn.apache.org/repos/asf/karaf/tags/karaf-2.3.1/

2.3.x Dependencies table:
https://svn.apache.org/repos/asf/karaf/site/trunk/src/main/webapp/index/documentation/karaf-dependencies/karaf-deps-2.3.x.page


Please vote to approve this release:

[ ] +1 Approve the release
[ ] -1 Veto the release (please provide specific comments)

This vote will be open for 72 hours.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to