2017-01-05 18 views
0

私はEAP 6.3からWildflyスウォームに自分のプロジェクトを変換しようとしている...私はCXFといくつかの問題を抱えているWildflyスウォームとCXF-RT-トランスポート-HTTP

私は分数の依存持っている:

<dependency> 
    <groupId>org.wildfly.swarm</groupId> 
    <artifactId>camel-cxf</artifactId> 
</dependency> 

をそして私には、そうであればそうでない場合、私は

<dependency> 
     <groupId>org.apache.cxf</groupId> 
     <artifactId>cxf-rt-transports-http</artifactId> 
     <version>3.1.9</version> 
    </dependency> 

私のキャメル・プロセッサ・コードで"package org.apache.cxf.message does not exist"エラーが出ますので、後で、私は、これを含めますそれはエラーが表示されます:

Apache CXF library (cxf-core-3.1.9.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach causes most of the webservices Java EE and any JBossWS specific functionality to be disabled.

camel-cxfモジュールとjarファイルを試してみてください... jboss-deployment-structure.xmlファイルを取得していませんか?

他の投稿のようにいくつか試してみました。

これを$ {basedir}/src/main/webapp/WEB-INFのjboss-deployment-structure.xmlに追加し、xmlファイルをmaven-war-pluginのwebResourcesに追加しようとしました。

<deployment> 
    <exclude-subsystems> 
     <subsystem name="webservices" /> 
    </exclude-subsystems> 
    </deployment> 

私はまた、JBossの-展開するstructure.xmlにこれを追加しようとしました:

<dependencies> 
    <module name="org.apache.cxf" /> 
    <module name="org.apache.cxf.impl" /> 
</dependencies> 

しかし、私はそのエラーを取得しておきます。だから私はこの矛盾を解決する方法がわからない。何か案が?

答えて

0

1つのアプローチは、Jboss提供のCXFライブラリを使用し、cxf-rt-transports-http<scope>provided</scope>を設定して、CXFの依存関係をコンパイルしてパッケージ化しないようにします。

あなたは、私は今、多くのことを試してみた、そしてそれはまだLIBSを見つけていないJboss specific configuration

+0

の詳細を見つけます。 camel-core.jarはuberjarのm2repoにあり、EclipseはそれをMaven Dependenciesの下に示しています。しかし、org.apache.camelのjava.lang.NoClassDefFoundErrorを取得します。* – djb

+0

Ah。私はcamel-cxf以外のすべての依存関係を削除しましたが、エラーは表示されません。奇妙な – djb

+0

私が言っていたことは、JBossが提供するCXFライブラリを使用し、アプリケーションにパッケージ化しないことです。 – ravthiru

関連する問題