karaf 3.0.8で動作するsogi-appにいくつかの問題があります。karafにApache cxfをインストールします
dependencies {
compile 'org.apache.camel:camel-core:2.15.2'
compile 'org.apache.camel:camel-cxf:2.15.2'
compile 'org.slf4j:slf4j-api:1.7.12'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
私はkarafでそれを展開しようと、それは言う:私は、このエラーを取得する
feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.0.4/xml/feature
feature:install cxf
:
org.osgi.framework.BundleException: Unresolved constraint in bundle
foobar.it.osgi.status.osgi-status [863]: Unable to resolve 863.1:
missing requirement [863.1] osgi.wiring.package;
(&(osgi.wiring.package=javax.ws.rs)(version>=2.0.0)(!(version>=3.0.0)))
が、私はこれを試してみました
アプリはこれらの依存関係を持っています
Error executing command: Can't install feature cxf/0.0.0:
No feature named 'jetty' with version '[7,10)' available
うーん、どのように私はよいのように任意のヒント適切なパッケージをインストールしますか?ありがとう。
複雑なフレームワーク(cxf、camel、..)は、特定のバージョンに多くの複雑な依存関係があります。 Karaf自体は空のコンテナです。たぶんApache ServiceMix(cxf、camel、activemq、すべてがインストールされ、私たちのボックスで動作しているKaraf)またはサポートされているバンドル(FuseESB、Talend ESB、...)を使用できます。適切な依存関係を解決するために多くの時間と時間を節約することができます。 – gusto2
良いヒント!、ServiceMixでうまく動作します。 – Jojje