私は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>
しかし、私はそのエラーを取得しておきます。だから私はこの矛盾を解決する方法がわからない。何か案が?
の詳細を見つけます。 camel-core.jarはuberjarのm2repoにあり、EclipseはそれをMaven Dependenciesの下に示しています。しかし、org.apache.camelのjava.lang.NoClassDefFoundErrorを取得します。* – djb
Ah。私はcamel-cxf以外のすべての依存関係を削除しましたが、エラーは表示されません。奇妙な – djb
私が言っていたことは、JBossが提供するCXFライブラリを使用し、アプリケーションにパッケージ化しないことです。 – ravthiru