java - Jboss OSGI, eclipse gemini blueprint, invalid bundle activator -
i trying add eclipse-gemini-blueprint
wildfly 7.2
(ex-jboss
)
i added following capabilities in standalone-osgi.xml
:
<capability name="personal.org.springframework.aop" startlevel="1"/> <capability name="personal.org.springframework.asm" startlevel="1"/> <capability name="personal.org.springframework.beans" startlevel="1"/> <capability name="personal.org.springframework.context" startlevel="1"/> <capability name="personal.org.springframework.core" startlevel="1"/> <capability name="personal.org.springframework.expression" startlevel="1"/> <capability name="personal.com.springsource.aopalliance" startlevel="1"/> <capability name="personal.com.springsource.apachecommons" startlevel="1"/> <capability name="personal.com.springsource.aspectjtools" startlevel="1"/> <capability name="personal.org.eclipse.gemini-blueprint.core" startlevel="1"/> <capability name="personal.org.eclipse.gemini-blueprint.extender" startlevel="1"/> <capability name="personal.org.eclipse.gemini-blueprint.io" startlevel="1"/>
but getting following error:
error [org.jboss.osgi.framework] (msc service thread 1-5) jbosgi011026: framework error: org.osgi.framework.bundleexception: jbosgi011254: cannot start bundle: org.eclipse.gemini.blueprint.extender:2.0.0.m02 @ org.jboss.osgi.framework.spi.abstractbundleadaptor.start(abstractbundleadaptor.java:223) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] @ org.jboss.osgi.framework.internal.startlevelimpl.increasestartlevel(startlevelimpl.java:246) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] @ org.jboss.osgi.framework.internal.frameworkactive.createservicevalue(frameworkactive.java:149) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] @ org.jboss.osgi.framework.internal.frameworkactive.createservicevalue(frameworkactive.java:105) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] @ org.jboss.osgi.framework.spi.abstractintegrationservice.start(abstractintegrationservice.java:60) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.4.ga.jar:1.0.4.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.4.ga.jar:1.0.4.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [rt.jar:1.7.0_11] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [rt.jar:1.7.0_11] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_11] caused by: org.osgi.framework.bundleexception: jbosgi011253: invalid bundle activator: org.eclipse.gemini.blueprint.extender.internal.boot.chainactivator @ org.jboss.osgi.framework.spi.abstractbundleadaptor.start(abstractbundleadaptor.java:209) [jbosgi-framework-core-2.1.0.cr12.jar:2.1.0.cr12] ... 9 more
previously had missing dependencies in modules , added them manually...
what can fix this? error isn't telling me much...
adding following dependencies standalone-osgi.xml leads working blueprint config wildfly 8.0.0.alpha1
<capability name="org.eclipse.gemini:org.eclipse.gemini.blueprint.core:1.0.2.release" startlevel="1"/> <capability name="org.eclipse.gemini:org.eclipse.gemini.blueprint.extender:1.0.2.release" startlevel="1"/> <capability name="org.eclipse.gemini:org.eclipse.gemini.blueprint.io:1.0.2.release" startlevel="1"/> <capability name="org.springframework:org.springframework.aop:3.2.2.release" startlevel="1"/> <capability name="org.springframework:org.springframework.beans:3.2.2.release" startlevel="1"/> <capability name="org.springframework:org.springframework.core:3.2.2.release" startlevel="1"/> <capability name="org.springframework:org.springframework.context:3.2.2.release" startlevel="1"/> <capability name="org.springframework:org.springframework.expression:3.2.2.release" startlevel="1"/> <capability name="org.apache.commons:com.springsource.org.apache.commons.logging:1.1.1" startlevel="1"/> <capability name="org.aopalliance:com.springsource.org.aopalliance:1.0.0" startlevel="1"/>
with these capabilities able simple blueprint hello world bundle work
note: first time using jboss osgi not sure how customize embedded maven artifact resolver. artifacts used above not present on maven central , instead need fetched spring repo. per this thread not possible add third party repositories. had pre fetch them in local repo separately. if there better way let me know
Comments
Post a Comment