2014-09-10 36 views
0

我正在嘗試使用OSGi包,但它卡在「已安裝」狀態,無法解析。當我嘗試啓動它,我得到以下信息:OSGi導入包:我收到了錯誤的包嗎?

org.osgi.framework.BundleException: Could not resolve module: org.apache.felix.gogo.usocklistener [6] 
    Unresolved requirement: Import-Package: org.osgi.service.command; version="0.7.0.SNAPSHOT" 

這是我目前的束列表:

START LEVEL 6 
    ID|State  |Level|Name 
    0|Active  | 0|OSGi System Bundle (3.10.100.v20140909-1519) 
    1|Active  | 4|OSGi Release 4.2.0 Services (3.4.0.v20140909-1519) 
    2|Active  | 4|OSGi Release 4.2.0 Utility Classes (3.3.0.v20140909-1519) 
    3|Active  | 4|Apache Felix Gogo Command (0.14.0) 
    4|Active  | 4|Apache Felix Gogo Runtime (0.12.1) 
    5|Active  | 4|Apache Felix Gogo Shell (0.10.0) 
    6|Installed | 4|Apache Felix Gogo USockListener (1.0.0.SNAPSHOT) 
    7|Installed | 4|Apache Felix Web Management Console (4.2.3.SNAPSHOT) 
    8|Active  | 4|Apache Felix Configuration Admin Service (1.8.1.SNAPSHOT) 
    9|Active  | 4|Apache Felix EventAdmin (1.3.2) 
    10|Active  | 4|Console plug-in (1.1.100.v20140828-1547) 
    11|Active  | 4|Log Service Bundle (1.2.300.v20140828-1634) 
    12|Active  | 4|Http Services Servlet (1.1.500.v20140909-1612) 
    13|Installed | 4|Jetty Http Service (3.0.200.v20140828-1634) 
    15|Active  | 4|servlet-api bundle (2.4.0.SNAPSHOT) 

所以,很顯然,我需要org.osgi.service.command束,至少v0.7.0的(這是「至少」,而不是「完全」,對不對?)。但我有org.eclipse.osgi.services-3.4.0包,它是活動的。如果那不包含我需要的命令包,那麼我不知道在哪裏尋找。

請問org.eclipse.osgi.services-3.4.0包括org.osgi.service.command?如果不是,我在哪裏可以找到org.osgi.service.command(最好是源代碼形式而不是二進制形式)?

回答

相關問題