2013-05-21 58 views
0

我想補充eclipse-gemini-blueprintwildfly 7.2ex-jbossJboss的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 

以前我有一些模塊中缺少的依賴關係,我手動添加它們...

我能做些什麼來解決這個問題?這個錯誤是不會告訴我那麼多......

+1

我試圖運行雙子座藍圖與最新的野蠻(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

+0

,並且您正在像我一樣添加功能?或者如何添加所有內容?...另外..請添加一個答案..以便我可以接受它 – Alex

+0

如果您只是在該部署文件夾中添加了jar,它就不能正常工作:)(雙子座藍圖不工作..它是隻是被忽略) – Alex

回答

1

添加以下的依賴到獨立,osgi.xml導致工作藍圖的配置與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"/> 

有了這些功能,我能夠得到簡單藍圖Hello World捆綁工作

注意:這是我第一次使用Jboss OSGi,所以不確定如何定製嵌入式Maven artifact解析器。上面使用的工件不在Maven中心,而是需要從Spring Repo中提取。但根據this thread不可能添加第三方存儲庫。所以我必須分別在本地回購中預先獲取它們。如果有更好的方法,然後讓我知道

+0

好的謝謝你。我會盡力回家.. – Alex