4 Replies Latest reply on Nov 16, 2007 2:42 AM by folesen

    jbossWS 2.0.1 and JDK 1.6

    gumnaam

      The release notes of 2.0.1 say it was fixed to work with JDK 1.6.

      How ever I can't get it to work with JDK 1.6 under jboss 4.0.5.

      If I run against JDK 1.6, I get the error saying jaxb-api.jar ver. 2.0 is loaded from bootstrap classpath however the JAX RI requires ver 2.1. To override , use the endoresed mechanism.
      This is a deployment error, i.e. the application is not deployed.


      So I copied jaxb-api.jar and jaxws-api.jar to jboss/lib/endorsed directory, after this the application is deployed fine, but when I call the web service , I get


      aused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
      at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
      at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
      at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
      at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
      at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)


      What exactly needs to be done to make JDK 1.6 work with Jbossws 2.0.1 ?

        • 1. Re: jbossWS 2.0.1 and JDK 1.6
          koganty

          I'm using the endorsed lib mechanism as suggested and I have the following in the endorsed folder and it works ..

          jboss-ssaj.jar
          jboss-jaxws.jar
          jboss-jaxrpc.jar
          jaxb-impl.jar
          jaxb-api.jar

          • 2. Re: jbossWS 2.0.1 and JDK 1.6
            heiko.braun

            In order to run JBossWS on JDK 6 you need to replace the API's that have been included in JDK 6, namely jaxrpc, jaxws, jaxb and saaj.

            Copy the following jars to ${JBOSS_HOME}/lib/endorsed:

            * jboss-jaxrpc.jar
            * jboss-saaj.jar
            * jaxb-api.jar
            * jaxws-api.jar

            • 3. Re: jbossWS 2.0.1 and JDK 1.6
              dkane

               

              "heiko.braun@jboss.com" wrote:
              In order to run JBossWS on JDK 6 you need to replace the API's that have been included in JDK 6, namely jaxrpc, jaxws, jaxb and saaj.

              Copy the following jars to ${JBOSS_HOME}/lib/endorsed:

              * jboss-jaxrpc.jar
              * jboss-saaj.jar
              * jaxb-api.jar
              * jaxws-api.jar



              Just faced the same problem and followed this instriction.
              With one exception : I have not found jaxws-api.jar but jboss-jaxws.jar .

              JBoss was restarted. Still the same result,
              java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage


              I use JBoss 4.2.1 GA and Java 1.6.

              Any ideas ?

              Thanks



              • 4. Re: jbossWS 2.0.1 and JDK 1.6
                folesen

                I have placed the following files in the lib/endorsed folder:

                jaxb-api.jar
                jaxws-rt.jar
                jboss-jaxrpc.jar
                jboss-jaxws.jar
                jboss-saaj.jar

                I am using jboss4.2.2.GA and sun jdk 1.6 and it works fine on a vista platform.