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

Some quickstarts using SAAJ API fail on IBM JAVA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • jboss-fuse-6.2.1
    • CXF, Karaf
    • None
    • % %
    • Hide

      The workaround/solution is to remove saaj-api from endorsed libraries:

      rm lib/endorsed/org.apache.servicemix.specs.saaj-api-1.3-2.5.0.jar
      

      and add the following command line argument to the fuse script or set it as an environment variable :

      JAVA_OPTS=-Xshareclasses:none ./bin/fuse
      
      Show
      The workaround/solution is to remove saaj-api from endorsed libraries: rm lib/endorsed/org.apache.servicemix.specs.saaj-api-1.3-2.5.0.jar and add the following command line argument to the fuse script or set it as an environment variable : JAVA_OPTS=-Xshareclasses:none ./bin/fuse
    • Hide

      Following quickstarts does not work due to this issue:

      • bean-service
      • soap-attachment
      Show
      Following quickstarts does not work due to this issue: bean-service soap-attachment

      2015-11-09 15:02:19,416 | WARN  | qtp1130550138-82 | ServletHandler                   | 97 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | Error for /cxf/quickstart-bean/OrderService
      java.lang.IllegalAccessError: Class com/sun/org/apache/xerces/internal/dom/ElementImpl illegally accessing "package private" member of class com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl
      	at com.sun.org.apache.xerces.internal.dom.ElementImpl.synchronizeData(ElementImpl.java:1159)
      	at com.sun.org.apache.xerces.internal.dom.ElementImpl.getAttributeNodeNS(ElementImpl.java:791)
      	at com.sun.org.apache.xerces.internal.dom.ElementImpl.hasAttributeNS(ElementImpl.java:907)
      	at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.getNamespaceURI(ElementImpl.java:228)
      	at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.ensureNamespaceIsDeclared(ElementImpl.java:119)
      	at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:99)
      	at com.sun.xml.messaging.saaj.soap.ver1_2.Envelope1_2Impl.<init>(Envelope1_2Impl.java:74)
      	at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEmptyEnvelope(SOAPPart1_2Impl.java:77)
      	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:145)
      	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getDocumentElement(SOAPPartImpl.java:411)
      	at org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter.writeStartElement(OverlayW3CDOMStreamWriter.java:175)
      	at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:814)
      	at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:741)
      	at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:705)
      	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:179)
      	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:65)
      	...
      

              tcunning@redhat.com Thomas Cunningham
              mbasovni Martin Basovnik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: