2013-06-19 125 views
0

我使用jaxws-ri从webservices.j文件创建存根。我已经在tomcat上部署了应用程序,并且它工作正常。现在我想要移动到websphere 7.0。当我部署相同的war时,会看到登录页面,但是当调用webservice时,应用程序会引发错误。Websphere应用程序服务器不从jaxws jar中调用类

LoginAction : execute : catch : WebServiceExceptionjavax.xml.ws.soap.SOAPFaultException: com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5509E: A security token whose type is [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken] is required. 
at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1249) 
at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:975) 
at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshaller.demarshalFaultResponse(DocLitWrappedMethodMarshaller.java:550) 
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:421) 
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:384) 
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:308) 
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:158) 
at $Proxy43.getLogin(Unknown Source) 

我试着调试代码,发现肥皂头中有一个处理程序被调用,它扩展了名为Service的类。这个类存在于jaxws jar中。当我在websphere中部署Service类时,将从axis2 jar中调用服务,而不是os jaxws jar。 我尝试通过删除axis2 jar和粘贴在websphere的插件和lib文件夹jaxws罐,但这并没有奏效。 请任何人都可以帮我解决这个问题。 在此先感谢。

+0

任何机构可以请建议一些解决方案...我仍然坚持这一点。我将配置更改为Parent_Last。然后它给了我类演员异常。 –

回答

0

对我来说,你应该在客户端设置WS-Security用户名令牌。如果您使用SoapUi进行测试,请添加新的传出WS-Security配置(使用用户名WSS条目)。

相关问题