[jboss-user] [JBossWS] - JBoss WS security throws javax.xml.ws.WebServiceException: o

r12345_2003 do-not-reply at jboss.com
Mon Jul 28 09:48:38 EDT 2008


Hi all,

I am using Jboss Web services and WS security. I have Jboss version 4.2.2 GA. My web service is implemented as a stateless EJB. The problem is when I invoke the web service from a client application, the following exception is thrown:
  | javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details
  | 	org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
  | 	org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
  | 	org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
  | 	org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
  | 	org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
  | 	org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
  | 	org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
  | 	$Proxy119.getUserDetailsFromURSID(Unknown Source)
  | 	test.filter.base.SecurityFilter.getUserDetails(SecurityFilter.java:274)
  | 	test.filter.base.SecurityFilter.doFilter(SecurityFilter.java:166)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details
  | 	org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105)
  | 	org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177)
  | 	org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
  | 	org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
  | 	org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
  | 	org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
  | 	org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
  | 	org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
  | 	org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
  | 	org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
  | 	org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
  | 	org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
  | 	$Proxy119.getUserDetailsFromURSID(Unknown Source)
  | 	test.filter.base.SecurityFilter.getUserDetails(SecurityFilter.java:274)
  | 	test.filter.base.SecurityFilter.doFilter(SecurityFilter.java:166)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

There are no exceptions in the server log or the client logs. 
When I deploy the web service on my windows box, it works fine, I get the above error only when I'm running the web service on my linux environment. This makes me think that there may be some configuration error in my linux environment. However, I checked the most likely reasons like a misconfigured login-conf.xml, or a missing jboss-wsse-server.xml or a missing jboss-wsse-client.xml and it looks fine. 
Another thing to mention is the debug statements inside the web service method being invoked are printed, however the control doesnt return to the client. Does anyone have any idea what is going on? Any help would be greatly appreciated!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167042#4167042

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167042



More information about the jboss-user mailing list