Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-37

Weblogic 8.1 throws javax.xml.soap.SOAPException: There should be only one Content-Type MimeHeader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9, 0.9.1, 1.0 M1
    • Fix Version/s: 1.0 M2
    • Component/s: None
    • Labels:
      None

      Description

      When running any spring-ws app on BEA Weblogic 8.1, the following exception is thrown:

      javax.xml.soap.SOAPException: There should be only one Content-Type MimeHeader.

      Apparently, Weblogic returns the Content-Header as part of the headers retrieved by getHeaderNames(). We should check for this.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        I've fixed this particular bug, and spring-ws runs on Weblogic 8.1, but it is not easy.

        You basically have to override every XML api provided WL, and use more recent versions instead. This basically means putting a recent Xerces, Xalan, and XML-APIs in the WEB-INF/lib, using the AxiomSoapMessageFactory, and using the following in the weblogic.xml:

        <weblogic-web-app>
        <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
        </container-descriptor>
        </weblogic-web-app>

        Show
        arjen.poutsma Arjen Poutsma added a comment - I've fixed this particular bug, and spring-ws runs on Weblogic 8.1, but it is not easy. You basically have to override every XML api provided WL, and use more recent versions instead. This basically means putting a recent Xerces, Xalan, and XML-APIs in the WEB-INF/lib, using the AxiomSoapMessageFactory, and using the following in the weblogic.xml: <weblogic-web-app> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            arjen.poutsma Arjen Poutsma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: