Ulrich Romahn created AS7-5981:
----------------------------------
Summary: Exception after adding Karaf Features bundles
Key: AS7-5981
URL:
https://issues.jboss.org/browse/AS7-5981
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Affects Versions: 7.2.0.Alpha1
Environment: JBoss AS 7.2.0-Alpha1-SNAPSHOT (latest build from master), Centos
6.3, Oracle Java SDK 1.7.0 u9
Reporter: Ulrich Romahn
Assignee: Thomas Diesler
Priority: Minor
I am trying to add the Features bundles from Apache Karaf allowing me to load bundles
defined in a features.xml file.
After adding the bundles and their dependencies, the log shows the following exception:
12:30:42,567 ERROR [org.apache.aries.blueprint.container.BlueprintContainerImpl]
(Blueprint Extender: 2) Unable to start blueprint container for bundle
org.apache.karaf.features.management:
org.osgi.service.blueprint.container.ComponentDefinitionException:
java.lang.NoSuchMethodError:
org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:98)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)
at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:631)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:337)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_07]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_07]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_07]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
[rt.jar:1.7.0_07]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
[rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_07]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: java.lang.NoSuchMethodError:
org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;
at org.apache.aries.util.internal.R43Worker.getClassLoader(R43Worker.java:40)
at
org.apache.aries.util.AriesFrameworkUtil.getClassLoaderForced(AriesFrameworkUtil.java:99)
at
org.apache.aries.proxy.impl.AbstractProxyManager.getClassLoader(AbstractProxyManager.java:93)
at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:84)
at
org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:50)
at
org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:39)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:236)
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:82)
... 14 more
It looks like there are some incompatibilities between JBoss OSGi and Apache Felix which
Karaf is primarily based on.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira