Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15148

CXF is incompatible with javax.activation version in Karaf

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Blocker
    • Resolution: Done
    • fuse-7.8-GA
    • fuse-7.8-GA
    • CXF, Karaf
    • build6
    • Hide

      It is easily reproducible by CXF soap quickstart for Karaf.

      Show
      It is easily reproducible by CXF soap quickstart for Karaf.

    Description

      CXF fails when consuming SOAP requests on java.lang.NoSuchMethodError: javax.activation.MimeType.isSpecial(C)Z.

      Error message:

      11:12:50.538 ERROR [XNIO-4 task-1] UT005023: Exception handling request to /cxf/HelloWorld
      java.lang.NoSuchMethodError: javax.activation.MimeType.isSpecial(C)Z
      	at javax.activation.MailcapCommandMap.getToken(MailcapCommandMap.java:313) ~[?:1.2.1_2]
      	at javax.activation.MailcapCommandMap.addMailcap(MailcapCommandMap.java:163) ~[?:1.2.1_2]
      	at javax.activation.MailcapCommandMap.parseMailcap(MailcapCommandMap.java:149) ~[?:1.2.1_2]
      	at javax.activation.MailcapCommandMap.parseMailcap(MailcapCommandMap.java:139) ~[?:1.2.1_2]
      	at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:60) ~[?:1.2.1_2]
      	at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:55) ~[?:1.2.1_2]
      	at org.apache.cxf.attachment.AttachmentUtil.<clinit>(AttachmentUtil.java:73) ~[!/:3.3.6.fuse-780024-redhat-00001]
      	at org.apache.cxf.interceptor.AttachmentInInterceptor.handleMessage(AttachmentInInterceptor.java:55) ~[!/:3.3.6.fuse-780024-redhat-00001]
      

      Soap request:

      ID: 1
      Address: http://localhost:8181/cxf/HelloWorld
      Encoding: ISO-8859-1
      Http-Method: POST
      Content-Type: application/x-www-form-urlencoded
      Headers: {Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], connection=[keep-alive], Content-Length=[937], Content-type=[application/x-www-form-urlencoded], Host=[localhost:8181], User-Agent=[Java/1.8.0_265]}
      Payload: <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <soap:Body>
              <ns2:sayHi xmlns:ns2="http://soap.cxf.quickstarts.fuse.jboss.org/">
                  <arg0>John Doe</arg0>
              </ns2:sayHi>
          </soap:Body>
      </soap:Envelope>
      

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            tturek@redhat.com Tomas Turek
            Tomas Turek Tomas Turek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: