2012-05-28 28 views
0

我試圖在karaf中運行cxf包。它說包Org.apache.ws.commons.schema丟失,但已經安裝了相應的包(servicemix包)無法在osgi中運行cxf xmllschema包中缺少(但已安裝)

我不知道爲什麼如果捆綁785(xmlschema)被激活,依賴沒有解決。我是否需要包含其他內容或者是否存在某種配置問題?

OSGi>features:install idb 
Refreshing bundles org.springframework.jms (104) 
Error executing command: Could not start bundle 
mvn:org.apache.cxf/cxf-bundle-minimal/2.2.9 in feature(s) 
cxf-bundle-minimal-2.6.0: Unresolved constraint in bundle 
org.apache.cxf.bundle-minimal [832]: Unable to resolve 832.0: 
missing requirement [832.0] package; 
(&(package=org.apache.ws.commons.schema)(version>=1.4.0)(!(version>=2.0.0))) 

OSGi>osgi:info 785 

Apache ServiceMix Bundles: xmlschema-1.4.3 (785) 
------------------------------------------------ 
OSGi>osgi:headers 785 

Apache ServiceMix Bundles: xmlschema-1.4.3 (785) 
------------------------------------------------ 
Manifest-Version = 1.0 
Bnd-LastModified = 1237594240914 
Tool = Bnd-0.0.255 
Built-By = gnodet 
Build-Jdk = 1.5.0_16 
Created-By = Apache Maven Bundle Plugin 

Bundle-Vendor = The Apache Software Foundation 
Bundle-Name = Apache ServiceMix Bundles: xmlschema-1.4.3 
Bundle-DocURL = http://www.apache.org/ 
Bundle-Description = This bundle simply wraps xmlschema-1.4.3.jar. 
Bundle-SymbolicName = org.apache.servicemix.bundles.xmlschema 
Bundle-Version = 1.4.3.1 
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt 
Bundle-ManifestVersion = 2 

Import-Package = 
javax.xml.namespace, 
javax.xml.parsers, 
javax.xml.transform, 
javax.xml.transform.dom, 
javax.xml.transform.sax, 
javax.xml.transform.stream, 
org.apache.ws.commons.schema;version=1.4.3, 
org.apache.ws.commons.schema.constants;version=1.4.3, 
org.apache.ws.commons.schema.extensions;version=1.4.3, 
org.apache.ws.commons.schema.resolver;version=1.4.3, 
org.apache.ws.commons.schema.utils;version=1.4.3, 
org.w3c.dom, 
org.xml.sax 
Export-Package = 
org.apache.ws.commons.schema.resolver;uses:=org.xml.sax;version=1.4.3, 
org.apache.ws.commons.schema.utils; 
    uses:="org.apache.ws.commons.schema, 
     javax.xml.namespace, 
     org.w3c.dom"; 
    version=1.4.3, 
org.apache.ws.commons.schema; 
    uses:="org.xml.sax, 
     javax.xml.namespace, 
     org.w3c.dom, 
     javax.xml.transform, 
     org.apache.ws.commons.schema.extensions, 
     javax.xml.transform.dom, 
     javax.xml.transform.sax, 
     org.apache.ws.commons.schema.resolver, 
     org.apache.ws.commons.schema.utils, 
     javax.xml.parsers, 
     org.apache.ws.commons.schema.constants, 
     javax.xml.transform.stream"; 
    version=1.4.3, 
org.apache.ws.commons.schema.constants; 
    uses:=javax.xml.namespace; 
    version=1.4.3, 
org.apache.ws.commons.schema.extensions; 
    uses:="org.apache.ws.commons.schema, 
     javax.xml.namespace, 
     org.w3c.dom"; 
    version=1.4.3 

回答

0

您使用的CXF版本似乎很舊。你能用最新的CXF版本來測試嗎?順便說一句。你使用的是什麼卡拉夫版本?

+0

是的,顯然它是。我會嘗試更新的版本 – santiagozky

+0

我切換到singlebundle發行版本1.3.1來解決問題。我寧願保持依賴關係分離,但它現在必須做。 – santiagozky

+0

我仍然不能讓它運行,但我有一個不同的錯誤,嘿嘿。我會試圖找出它 – santiagozky

0

首先,包785(xmlschema-1.4.3)的狀態是什麼? 如果狀態已解決或處於活動狀態,則可以;如果它只是「安裝」,那麼它有一個問題,它出口的包是而不是系統中可用。

其次,檢查誰提供捆綁包785導入的包。(org.w3c.dom等) 您可能有以下情況: 如果包idb導入例如org.w3c.dom,xmlschema-1.4.3從另一個源導入它們(例如,不同的版本可以同時使用,或者框架本身和一些額外的bundle都提供),那麼框架將不會解析idb包與xmlschema-1.4.3中的包綁定,因爲這會導致稍後發生ClassCastException。

+0

這個狀態是活躍的。我會檢查你的建議 – santiagozky

相關問題