我想補充eclipse-gemini-blueprint
到wildfly 7.2
(ex-jboss
)Jboss的OSGI,日食雙子座藍圖,無效的包激活
我加入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"/>
,但我收到以下錯誤:
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
at org.jboss.osgi.framework.spi.AbstractBundleAdaptor.start(AbstractBundleAdaptor.java:223) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
at org.jboss.osgi.framework.internal.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:246) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
at org.jboss.osgi.framework.internal.FrameworkActive.createServiceValue(FrameworkActive.java:149) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
at org.jboss.osgi.framework.internal.FrameworkActive.createServiceValue(FrameworkActive.java:105) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
at org.jboss.osgi.framework.spi.AbstractIntegrationService.start(AbstractIntegrationService.java:60) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
at 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
at org.jboss.osgi.framework.spi.AbstractBundleAdaptor.start(AbstractBundleAdaptor.java:209) [jbosgi-framework-core-2.1.0.CR12.jar:2.1.0.CR12]
... 9 more
以前我有一些模塊中缺少的依賴關係,我手動添加它們...
我能做些什麼來解決這個問題?這個錯誤是不會告訴我那麼多......
我試圖運行雙子座藍圖與最新的野蠻(8.0.0.Alpha1),它工作得很好。根據[code](http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.osgi.framework/jbosgi-framework-core/2.1.0.CR12 /org/jboss/osgi/framework/spi/AbstractBundleAdaptor.java?av=f#209)看起來問題與類加載有關,可能是多個OSGi類被打包 – Chetan
,並且您正在像我一樣添加功能?或者如何添加所有內容?...另外..請添加一個答案..以便我可以接受它 – Alex
如果您只是在該部署文件夾中添加了jar,它就不能正常工作:)(雙子座藍圖不工作..它是隻是被忽略) – Alex