2011-12-06 12 views
1

私はWSDL(私はJAVA 1.6を使用しています)からSOAP Webサービスクライアントを自動生成し、Tomcat 6でうまく動作します。私は次のエラーを取得するJBossアプリケーションサーバ6.1でそれを展開しよう:WebサービスはTomcat 6で動作しますが、JBoss AS 6では動作しません

Caused by: java.lang.ExceptionInInitializerError 
    at com.sun.xml.ws.tx.common.Util.isJTAAvailable(Util.java:71) [:1.0] 
    at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssembler.isTransactionsEnabled(PipelineAssemblerFactoryImpl.java:468) [:1.0] 
    at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssembler.createClient(PipelineAssemblerFactoryImpl.java:271) [:1.0] 
    at com.sun.xml.ws.api.pipe.TubelineAssemblerFactory$TubelineAssemblerAdapter.createClient(TubelineAssemblerFactory.java:136) [:1.0] 
    at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:423) [:1.0] 
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:589) [:1.0] 
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:329) [:1.0] 
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:311) [:1.0] 
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:304) [:1.0] 
    **at javax.xml.ws.Service.getPort(Service.java:92) [:1.0.0.Final]** 
    at com.ewave.meuhedet.ws.iclient.city.EWCITYServicesService.getEWCITYServices(EWCITYServicesService.java:74) [:] 
    at com.ewave.meuhedet.ws.iclient.impl.PharmacyServiceIClientImpl.<init>(PharmacyServiceIClientImpl.java:58) [:] 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26] 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_26] 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_26] 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_26] 
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) [:3.0.1.RELEASE-A] 
    ... 105 more 
**Caused by: java.lang.ClassCastException: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple cannot be cast to javax.transaction.TransactionSynchronizationRegistry** 
    at com.sun.xml.ws.tx.common.TransactionManagerImpl.<init>(TransactionManagerImpl.java:106) [:1.0] 
    at com.sun.xml.ws.tx.common.TransactionManagerImpl.<clinit>(TransactionManagerImpl.java:62) [:1.0] 
    ... 122 more 

これはそれはあなたは、JBoss(ネイティブでサポートされているWS実装に固執しなければならないでしょうに見える

@WebEndpoint(name = "EW_CITYServices") 
    public EWCITYServices getEWCITYServices() { 
     return super.**getPort**(new QName("http://ew_city.wsbeans.iseries", 
       "EW_CITYServices"), EWCITYServices.class); 
    } 
+0

おそらくライブラリのバージョンが異なりますか、ライブラリがありませんか?おそらくそれがarjunaのものからjavaxへのキャストの試みです – Alfabravo

+0

thats a probs direction ...しかし、私はこのキャストの問題を解決する方法を知りません、私が知っているのは、arjunacoreのpacageはjboss 6の一部です –

答えて

1

自動生成getEWCITYServices機能です、CXFまたはメトロ)。

sunの実装(com.sun.xml.ws. *など)を含むすべてのjarファイルをクラスパスから削除するだけです。とにかく古くて、メトロに取って代わりました。

http://www.jboss.org/jbosswsを参照してください。

関連する問題