Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4201

Cannot be cast org.apache.cxf.jaxws.context.WrappedMessageContext to javax.xml.ws.handler.soap.SOAPMessageContext

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.1.Final
    • Web Services
    • None

    Description

      SOAPMessageContext jaxwsContext = (SOAPMessageContext) wsContext.getMessageContext();

      Caused by: java.lang.ClassCastException: org.apache.cxf.jaxws.context.WrappedMessageContext cannot be cast to javax.xml.ws.handler.soap.SOAPMessageContext

      This was working fine on AS 5.1.

      If I check the docs for WrappedMessageContext it's sub sclass is SOAPMessageContextImpl which does implement javax.xml.ws.handler.soap.SOAPMessageContext. See http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxws/context/WrappedMessageContext.html

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            will.tatam@red61.com Will Tatam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: