1

AEM の osgi 環境で Fuelsdk を使用しようとしています。このエラーが発生しています -

java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub は org.apache.cxf.frontend.ClientProxy にキャストできません

これは、OSGi が、fuelsdk の依存関係が組み込まれているバンドルの前にシステム バンドルをロードするためです。バンドルが解決されます。このエラーは実行時に発生します。

OSGi クラスローダーが実行時に com.sun.xml.internal.ws.client.sei.SEIStub ではなく org.apache.cxf.frontend.ClientProxy を選択するように強制するにはどうすればよいですか?

「uses」ディレクティブの組み合わせを使用できますか? および/またはパッケージのインポート/エクスポート?

- を使用してクライアントを作成するよう提案されました。

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(HelloWorld.class);
factory.setAddress("http://localhost:9000/helloWorld");
soapClient = (Client) factory.create();

factory.setServiceClass(); で使用するクラスを知りたいです。

factory.setAddress( ) でどのアドレスを使用する必要がありますか。それはエンドポイントアドレスですか?-- https://webservice.s6.exacttarget.com/Service.asmx

ヘルプは大歓迎ですありがとう

4

1 に答える 1