This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile" Watch "Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile" New topic
Author

Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile

Joao Bosco Jares
Ranch Hand

Joined: May 13, 2011
Posts: 44
Hi Ranches,

I have an JAX-WS client on websphere 7 consuming a WCF basicHttpBinding on IIS. An SSL chanel is enabled and a ws-security with usernametoken implemented. So, the problem is when the container receives the response and do not understand the header throing this exception: Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile. The curious is that when a do the same call with soapui it´s run without problem. In my cliente application I have a policy that´s configured to send the usernametoken but have no configuration to receive any kind of security header. Some one knows about it?


Thanks a lot!


[05/09/12 18:21:59:771 GMT-03:00] 00000019 WSChannelFram A CHFW0019I: O Transport Channel Service iniciou a cadeia HttpsOutboundChain:s1iisd08.capgv.intra.bnb:443:1156069846.
[05/09/12 18:22:00:380 GMT-03:00] 00000019 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Exceção criada não capturada em um dos métodos de serviço do servlet Executa no aplicativo ClienteNovoISKEYEAR. Exceção criada: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:586)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:130)
at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:364)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:185)
at $Proxy41.verificarUsuarioBloqueado(Unknown Source)
at br.gov.bnb.s095.ssl.servlet.Executa.doAction(Executa.java:53)
at br.gov.bnb.s095.ssl.servlet.Executa.doGet(Executa.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
Caused by: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:115)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:179)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:581)
... 32 more

[05/09/12 18:22:00:394 GMT-03:00] 00000019 LocalTranCoor E WLTC0017E: Os recursos foram revertidos porque setRollbackOnly() está sendo chamado.
[05/09/12 18:22:00:394 GMT-03:00] 00000019 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: Incidente do FFDC emitido em C:\Program Files (x86)\IBM\SDP_75\runtimes\base_v7\profiles\AppSrv05\logs\ffdc\server1_11251125_12.09.05_18.22.00.3841500039431037249260.txt com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch 448
[05/09/12 18:22:00:398 GMT-03:00] 00000019 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Erro de Servlet]-[Executa]: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:586)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:130)
at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:364)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:185)
at $Proxy41.verificarUsuarioBloqueado(Unknown Source)
at br.gov.bnb.s095.ssl.servlet.Executa.doAction(Executa.java:53)
at br.gov.bnb.s095.ssl.servlet.Executa.doGet(Executa.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
Caused by: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:115)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:179)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:581)
... 32 more

[05/09/12 18:22:01:164 GMT-03:00] 00000006 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper doDestroy SRVE0253I: [ClienteNovoISKEYEAR] [/ClienteNovoISKEY] [Executa]: Destroy bem-sucedido.
[05/09/12 18:22:01:179 GMT-03:00] 00000006 ApplicationMg A WSVR0220I: Aplicativo interrompido: ClienteNovoISKEYEAR
[05/09/12 18:22:01:322 GMT-03:00] 00000006 CompositionUn A WSVR0193I: Unidade de composição WebSphere:cuname=ClienteNovoISKEYEAR no BLA WebSphere:blaname=ClienteNovoISKEYEAR parada.
[05/09/12 18:22:01:410 GMT-03:00] 00000006 AdminHelper A ADMN1008I: Foi feita uma tentativa de iniciar o aplicativo ClienteNovoISKEYEAR. (ID do Usuário = defaultWIMFileBasedRealm/server:M1072317Node03Cell_M1072317Node03_server1)
[05/09/12 18:22:01:441 GMT-03:00] 00000006 CompositionUn A WSVR0190I: Iniciando unidade de composição WebSphere:cuname=ClienteNovoISKEYEAR no BLA WebSphere:blaname=ClienteNovoISKEYEAR.
[05/09/12 18:22:01:526 GMT-03:00] 00000006 ApplicationMg A WSVR0200I: Iniciando o aplicativo ClienteNovoISKEYEAR
[05/09/12 18:22:01:544 GMT-03:00] 00000006 ApplicationMg A WSVR0204I: Aplicativo: ClienteNovoISKEYEAR Nível do Build do Aplicativo: Desconhecido
[05/09/12 18:22:01:600 GMT-03:00] 00000006 webapp I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Carregando Módulo da Web: ClienteNovoISKEY.
[05/09/12 18:22:01:622 GMT-03:00] 00000006 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Será criado um novo contexto de sessão para a chave de aplicativo default_host/ClienteNovoISKEY
[05/09/12 18:22:01:655 GMT-03:00] 00000006 config I Initializing Sun's JavaServer Faces implementation (1.2_07-b03-FCS) for context '/ClienteNovoISKEY'
[05/09/12 18:22:01:714 GMT-03:00] 00000006 SystemOut O Develoment State Manager Decorator loaded.
[05/09/12 18:22:01:819 GMT-03:00] 00000006 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [ClienteNovoISKEYEAR] [/ClienteNovoISKEY] [JavaScript Resource Servlet]: Inicialização bem-sucedida.
[05/09/12 18:22:01:822 GMT-03:00] 00000006 servlet I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [ClienteNovoISKEYEAR] [/ClienteNovoISKEY] [Faces Servlet]: Inicialização bem-sucedida.
[05/09/12 18:22:01:824 GMT-03:00] 00000006 webcontainer I com.ibm.ws.wswebcontainer.VirtualHost addWebApplication SRVE0250I: O Módulo da Web ClienteNovoISKEY foi ligado ao default_host[*:9082,*:80,*:9445,*:5065,*:5064,*:443].
[05/09/12 18:22:01:854 GMT-03:00] 00000006 ApplicationMg A WSVR0221I: Aplicativo iniciado: ClienteNovoISKEYEAR
[05/09/12 18:22:01:856 GMT-03:00] 00000006 CompositionUn A WSVR0191I: Unidade de composição WebSphere:cuname=ClienteNovoISKEYEAR no BLA WebSphere:blaname=ClienteNovoISKEYEAR iniciada.
[05/09/12 18:22:01:893 GMT-03:00] 00000006 AppBinaryProc I ADMA7021I: A distribuição do aplicativo ClienteNovoISKEYEAR foi concluída com êxito.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error 500: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must Understand check faile