我在Wildfly(以前称为JBoss)8.0.0-beta1上遇到OSGI捆绑问题。
我安装OSGI没有问题。然后,当我启动应用程序服务器时,OSGI显然正确启动:
[org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001: Bundle installed: org.apache.felix.log:1.0.1
[org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001: Bundle installed: jboss-osgi-logging:1.0.0
[org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001: Bundle installed: org.apache.felix.configadmin:1.6.0
[org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001: Bundle installed: jbosgi-wildfly-configadmin:2.1.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011011: Starting bundles for start level: 1
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: jbosgi-wildfly-http:2.1.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: jbosgi-wildfly-jpa:2.1.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: org.apache.felix.log:1.0.1
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: jboss-osgi-logging:1.0.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: org.apache.felix.configadmin:1.6.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011002: Bundle started: jbosgi-wildfly-configadmin:2.1.0
[org.jboss.osgi.framework] (MSC service thread 1-13) JBOSGI011000: OSGi Framework started
但是,当我使用管理控制台时,捆绑包上的一些重要信息显然已丢失(请查看附带的屏幕截图)。
这是我使用/subsystem=osgi
的数据:
{
"activation" => "eager",
"startlevel" => 1,
"bundle" => {
"0" => undefined,
"1" => undefined,
"10" => undefined,
"11" => undefined,
"12" => undefined,
"13" => undefined,
"14" => undefined,
"2" => undefined,
"3" => undefined,
"4" => undefined,
"5" => undefined,
"6" => undefined,
"7" => undefined,
"8" => undefined,
"9" => undefined
},
"capability" => {
"javax.jws.api" => undefined,
"javax.persistence.api" => undefined,
"javax.servlet.api" => undefined,
"javax.transaction.api" => undefined,
"javax.ws.rs.api" => undefined,
"javax.xml.bind.api" => undefined,
"javax.xml.ws.api" => undefined,
"org.apache.felix.log" => undefined,
"org.jboss.osgi.logging" => undefined,
"org.apache.felix.configadmin" => undefined,
"org.jboss.as.osgi.configadmin" => undefined,
"org.jboss.as.osgi.http" => undefined,
"org.jboss.as.osgi.jpa" => undefined
},
"property" => {"org.osgi.framework.startlevel.beginning" => undefined}
}