Web services Axis2 webservice客户端weblogic webservice客户端jar确认

Web services Axis2 webservice客户端weblogic webservice客户端jar确认,web-services,axis2,webservice-client,weblogic-10.x,Web Services,Axis2,Webservice Client,Weblogic 10.x,我的应用程序是部署在WebLogic10中的war。在我的一个类中,我需要进行两个webservice调用A和W。A基于AXIS2使用wstx-asl-3.2.4.jar,W基于weblogic webservice使用weblogic中的jar。我猜由于wstx asl和weblogic stax实现之间的冲突,它们不能同时进行。 以下是问题的详细信息: 1.如果我从web inf/lib文件夹中删除wstx-asl-3.2.4.jar, B正常,但A由于异常而失败:ClassCastExce

我的应用程序是部署在WebLogic10中的war。在我的一个类中,我需要进行两个webservice调用A和W。A基于AXIS2使用wstx-asl-3.2.4.jar,W基于weblogic webservice使用weblogic中的jar。我猜由于wstx asl和weblogic stax实现之间的冲突,它们不能同时进行。 以下是问题的详细信息: 1.如果我从web inf/lib文件夹中删除wstx-asl-3.2.4.jar, B正常,但A由于异常而失败:ClassCastException:weblogic.xml.stax.XMLStreamInputFactory 2.如果我将wstx-asl-3.2.4.jar保存在web inf/lib文件夹中, A正常,但B因异常而失败: [java.lang.ExceptionInInitializeError位于com.bea.statxb.runtime.internal.BindingContextImpl.createMarshallerBindingContextImpl.java:65位于weblogic.wsee.bind.runtime.internal.internal.LiteralSerializerContext.LiteralSerializerContext.java:54位于weblogic.wsee.bind.runtime.internal.RuntimeBindingSiml.CreateSerializerContextRuntimeBindingSiml.java:152位于web:152logic.wsee.bind.runtime.internal.RuntimeBindingSiml.CreateSerializerContextRuntimeBindingSiml.java:168位于weblogic.wsee.codec.soap11.SerializationContextTil.CreateSerializerContextSerializationContextContextTil.java:26位于weblogic.wsee.codec.soap11.SoapEncoder.EncoderSoapEncoderCoder.java:119在weblogic.wsee.codec.soap11.SoapCodec.encodeSoapCodec.java:128在weblogic.wsee.ws.dispatch.client.CodecHandler.encodeCodecHandler.java:52在weblogic.wsee.ws.dispatch.client.CodecHandler.handlerRequestcodechandler.java:41在weblogic.wsee.handler.HandlerIterator.handlerRequestHandlerIterator.java:123在weblogic.wsee.handler.handlerjava:99位于weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatchecclientdispatcher.java:101位于weblogic.wsee.ws.WsStub.invokewstub.java:89位于weblogic.wsee.jaxrpc.StubImpl._invokeStubImpl.java:331位于 .........................
请建议如何使它们一起成功。谢谢。

在部署weblogic.xml文件中,对axis2调用使用标记并将其设置为true。对于weblogic web服务,将其设置为false