Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3955

Could not obtain STS metadata. MEX call failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.5
    • None
    • Services
    • Unknown

    Description

      I tried to deploy a cxf consumer as part of a servlet webapplication. When I run my example using mvn jetty:run everything works just fine as expected. But when I deploy my application to my glassfish 3 container I get the following error message:

      com.sun.xml.ws.api.security.trust.WSTrustException: WST0017:Could not obtain STS metadata. MEX call to STS http://my.server.org:8081/SecurityTokenService/UT/mex failed.

      Looking into the STS Server Log it contains the following errors:

      [#|2011-12-05T17:28:46.222+0100|WARNING|glassfish3.1.1|org.apache.cxf.phase.PhaseInterceptorChain|_ThreadID=20;_ThreadName=Thread-2;|Interceptor for

      {http://docs.oasis-open.org/ws-sx/ws-trust/200512/}

      SecurityTokenService has thrown exception, unwinding now
      org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.
      at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:144)
      at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)

      [#|2011-12-05T17:28:46.235+0100|WARNING|glassfish3.1.1|org.apache.cxf.phase.PhaseInterceptorChain|_ThreadID=19;_ThreadName=Thread-2;|Interceptor for

      {http://docs.oasis-open.org/ws-sx/ws-trust/200512/}

      SecurityTokenService has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:60)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jan4talend Jan Bernhardt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: