javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

Oracle Community | konkimalla | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem in authenticating web service client with usernametoken info in glassfish 3.0.1

    Oracle Community | 6 years ago | konkimalla
    javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
  2. 0

    Consuming a secure service with x509 certificate using JAX-WS

    Stack Overflow | 3 years ago | Jorge Infante Osorio
    javax.xml.ws.WebServiceException: WSSTUBE0024: error al proteger el mensaje saliente.
  3. 0

    NoClassDefFoundError with Metro web service client

    GitHub | 2 years ago | antoniovl
    javax.xml.ws.WebServiceException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.security.opt.impl.util.WSSElementFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Metro - Users - Redirecting Metro STS to ADFS2.0

    nabble.com | 1 year ago
    javax.xml.ws.WebServiceException: java.lang.RuntimeException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenResponseType

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.ws.WebServiceException

      java.lang.ClassCastException: com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest()
    2. Metro Web Services Runtime OSGi Bundle
      SecurityClientTube.processRequest
      1. com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:236)
      1 frame
    3. JAX-WS RI Runtime Bundle
      SEIStub.invoke
      1. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
      2. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
      3. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
      4. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
      5. com.sun.xml.ws.client.Stub.process(Stub.java:319)
      6. com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
      7. com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
      8. com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
      9. com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
      9 frames
    4. Unknown
      $Proxy255.spAppAdRequest
      1. $Proxy255.spAppAdRequest(Unknown Source)
      1 frame