karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lbu <lburgazz...@gmail.com>
Subject Re: Karaf JPA and EclipseLink
Date Mon, 18 Mar 2013 11:41:51 GMT
I still have an issue with the packages import:

karaf@root> la | grep EclipseLink
[  68] [Active     ] [            ] [   80] EclipseLink ASM
(3.3.1.v201206041142)
[  70] [Active     ] [            ] [   80] EclipseLink ANTLR
(3.2.0.v201206041011)
[  71] [Active     ] [            ] [   80] EclipseLink Core
(2.4.1.v20121003-ad44345)
[  74] [Active     ] [            ] [   80] EclipseLink Hermes Parser
(2.0.1.v20121003-ad44345)
[  75] [Active     ] [            ] [   80] EclipseLink JPA
(2.4.1.v20121003-ad44345)

If I start my eclipselink bundle, I have the following exception:

2013-03-18 12:24:05,168 | ERROR | BlueprintContainerImpl           |
blueprint.container.BlueprintContainerImpl | org.apache.aries.blueprint.core
| Unable to start blueprint container for bundle jpa-eclipselink
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
instantiate components
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:650)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:353)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:252)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[7:org.apache.aries.blueprint.core:1.0.1]
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_17]
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_17]
        at
java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_17]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_17]
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_17]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_17]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_17]
        at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/persistence/internal/weaving/PersistenceWeaved
        at java.lang.ClassLoader.defineClass1(Native Method)[:1.7.0_17]
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:791)[:1.7.0_17]
        at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)
        at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
        at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
        at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_17]
        at java.lang.Class.getDeclaredMethods0(Native Method)[:1.7.0_17]
        at
java.lang.Class.privateGetDeclaredMethods(Class.java:2451)[:1.7.0_17]
        at
java.lang.Class.privateGetPublicMethods(Class.java:2571)[:1.7.0_17]
        at java.lang.Class.getMethods(Class.java:1429)[:1.7.0_17]
        at
org.apache.aries.blueprint.utils.ReflectionUtils.doGetPublicMethods(ReflectionUtils.java:146)
        at
org.apache.aries.blueprint.utils.ReflectionUtils.getPublicMethods(ReflectionUtils.java:130)
        at
org.apache.aries.blueprint.utils.ReflectionUtils.getPropertyDescriptors(ReflectionUtils.java:216)
        at
org.apache.aries.blueprint.container.BeanRecipe.getPropertyDescriptor(BeanRecipe.java:949)
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:936)
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_17]
        at
java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_17]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[7:org.apache.aries.blueprint.core:1.0.1]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:646)[7:org.apache.aries.blueprint.core:1.0.1]
        ... 11 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.persistence.internal.weaving.PersistenceWeaved not found by
jpa-eclipselink [400]
        at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
        at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
        at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_17]
        ... 38 more

Here some more details:

karaf@root> imports 75 | grep weav
EclipseLink Core (71): org.eclipse.persistence.internal.weaving;
version=2.4.1

karaf@root> dev:show-tree 75
Bundle org.eclipse.persistence.jpa [75] is currently ACTIVE

org.eclipse.persistence.jpa [75]
+- org.apache.geronimo.specs.geronimo-jta_1.1_spec [55]
+- org.apache.geronimo.specs.geronimo-jpa_2.0_spec [56]
+- org.apache.geronimo.specs.geronimo-validation_1.0_spec [185]
+- org.apache.servicemix.bundles.ant [187]
+- org.eclipse.persistence.asm [68]
+- org.eclipse.persistence.core [71]
   +- org.eclipse.persistence.antlr [70]
   +- org.apache.geronimo.specs.geronimo-jpa_2.0_spec [56]
   +- org.apache.geronimo.specs.geronimo-jta_1.1_spec [55]
   +- org.eclipse.persistence.asm [68]
   +- org.eclipse.persistence.jpa.jpql [74]
      +- org.apache.geronimo.specs.geronimo-jpa_2.0_spec [56]

I've solved it with DynamicImport-Package but it is not the best solution,
do you know another way to fix it?


Thx





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-JPA-and-EclipseLink-tp4027571p4028245.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message