[JBoss JIRA] (AS7-5981) Exception after adding Karaf Features bundles
by Ulrich Romahn (JIRA)
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
13 years, 5 months
[JBoss JIRA] (AS7-5965) Resource adapter archive not recognized as CDI bean archive
by Martin Kouba (JIRA)
Martin Kouba created AS7-5965:
---------------------------------
Summary: Resource adapter archive not recognized as CDI bean archive
Key: AS7-5965
URL: https://issues.jboss.org/browse/AS7-5965
Project: Application Server 7
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 7.1.2.Final (EAP)
Reporter: Martin Kouba
Assignee: Stuart Douglas
The CDI 1.0 spec states in 12.1. "Bean archives":
{quote}
A library jar, EJB jar, application client jar or rar archive is a bean archive if it has a file named beans.xml in the META-INF directory.
...
In an application deployed as an ear, the container searches every bean archive bundled with or referenced by the ear, including bean archives bundled with or referenced by wars and EJB jars contained in the ear. The bean archives might be library jars, EJB jars, rars or war WEB-INF/classes directories.
{quote}
However it seems that RARs are not recognized.
--
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
13 years, 5 months
[JBoss JIRA] (JBJCA-927) rarinfo tool throw exception if no ResourceAdapter
by Jeff Zhang (JIRA)
Jeff Zhang created JBJCA-927:
--------------------------------
Summary: rarinfo tool throw exception if no ResourceAdapter
Key: JBJCA-927
URL: https://issues.jboss.org/browse/JBJCA-927
Project: IronJacamar
Issue Type: Task
Components: AS
Affects Versions: 1.1.0.Beta2
Reporter: Jeff Zhang
Assignee: Jeff Zhang
Fix For: 1.1.0.Beta3
Report by lgao:
If generated code hasn't ResourceAdapter, rarinfo tool will throw exception
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.jboss.jca.as.rarinfo.Main.getIntrospectedProperties(Main.java:1001)
at org.jboss.jca.as.rarinfo.Main.main(Main.java:347)
Unable to resolve introspected config-property's
--
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
13 years, 5 months
[JBoss JIRA] (JBJCA-928) target directory setting bug if use ant build enviornment
by Jeff Zhang (JIRA)
Jeff Zhang created JBJCA-928:
--------------------------------
Summary: target directory setting bug if use ant build enviornment
Key: JBJCA-928
URL: https://issues.jboss.org/browse/JBJCA-928
Project: IronJacamar
Issue Type: Task
Components: Code Generator
Affects Versions: 1.1.0.Beta2
Reporter: Jeff Zhang
Assignee: Jeff Zhang
Fix For: 1.1.0.Beta3
report by lgao:
./codegenerator.sh -o ~/jca/generated
if use ant as build envionment
throw exception
Exception in thread "main" java.lang.NullPointerException
at org.jboss.jca.codegenerator.Utils.copyFolder(Utils.java:249)
at org.jboss.jca.codegenerator.Main.copyAllJars(Main.java:728)
at org.jboss.jca.codegenerator.Main.main(Main.java:134)
--
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
13 years, 5 months