6 Replies Latest reply on Oct 3, 2008 7:48 AM by Silvano Maffeis

    DeploymentException when trying to deploy webservice with th

    Thorsten Schmid Newbie

      I get a org.jboss.deployment.DeploymentException caused by a java.lang.ClassNotFoundException: org.jboss.ws.core.soap.SAAJMetaFactoryImpl when I try to deploy a 'war' file containing a webservice. My JBoss installation includes the metro webservice stack.

      Does anyone have an idea which library is missing and where I have to deploy it?

      Thank you very much in advance.


      The exception stacktrace is:

      ...
      15:37:01,320 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      15:37:01,585 INFO [TomcatDeployer] deploy, ctxPath=/rpe-webapp, warUrl=.../tmp/deploy/tmp17308rpe-webapp-exp.war/
      15:37:01,742 INFO [http] WSSERVLET12: JAX-WS context listener initializing
      15:37:02,257 ERROR [http] WSSERVLET11: failed to parse runtime descriptor: java.lang.ExceptionInInitializerError
      java.lang.ExceptionInInitializerError
      at com.sun.xml.ws.api.BindingID.(BindingID.java:318)
      at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.createBinding(DeploymentDescriptorParser.java:302)
      at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:243)
      at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
      at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
      ...
      ...
      Caused by: java.lang.IllegalStateException: Failed to load javax.xml.soap.MetaFactory: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
      at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:131)
      at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:60)
      at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:106)
      at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:178)
      at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:83)
      ... 140 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
      at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:125)
      ... 144 more
      15:37:02,257 ERROR [ContainerBase] Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
      com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: java.lang.ExceptionInInitializerError
      at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:118)
      ...
      ...


      This is my web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5"
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation=
       "http://java.sun.com/xml/ns/javaee
       http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
       <listener>
       <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
       </listener>
       <servlet>
       <servlet-name>ws</servlet-name>
       <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>ws</servlet-name>
       <url-pattern>/ws</url-pattern>
       </servlet-mapping>
       <session-config>
       <session-timeout>60</session-timeout>
       </session-config>
      </web-app>



      And this is my sun-jaxws.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <endpoints
       xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime"
       version="2.0">
       <endpoint
       name="RPEService"
       implementation="de.jamba.esb.rpe.service.RPEService"
       url-pattern="/ws"/>
      </endpoints>



        • 1. Re: DeploymentException when trying to deploy webservice wit
          Alessio Soldano Master

          Did you properly installed JBossWS-Metro? The class you're looking for (org.jboss.ws.core.soap.SAAJMetaFactoryImpl) is a JBossWS-Native class.

          • 2. Re: DeploymentException when trying to deploy webservice wit
            Thorsten Schmid Newbie

            Thank you for your reply.

            We made the standard JBoss-Meto deployment (see below).
            This deployment includes the jboss-saaj.jar file but no corresponding jboss saaj impl artifact.
            The impl artifact is only included in the JBossWS-Native deployment: webservice-native-3.0.2\deploy\jbossws.sar\jbossws-native-core.jar

            Why is it missing in the Metro deployment (and also the CXF deployment) and how can we solve this problem?


            D:\download\jbossws-metro-dist>ant deploy-jboss423
            Buildfile: build.xml
            
            prepare:
            
            undeploy-jboss423:
             [loadfile] d:\projects\server\JBoss-4.3\server\default\deploy\jbossws.sar\jbossws-deploy.conf doesn't exist
             [delete] Deleting directory d:\projects\server\JBoss-4.3\server\default\deploy\juddi-service.sar
            
            prepare-deploy:
            
            deploy-structure-jboss42:
            
            deploy-jbossws-endorsed:
             [mkdir] Created dir: D:\download\jbossws-metro-dist\output\deploy-jboss42\lib\endorsed
             [copy] Copying 1 file to D:\download\jbossws-metro-dist\output\deploy-jboss42\lib\endorsed
            
            deploy-jbossws-metro42:
             [mkdir] Created dir: D:\download\jbossws-metro-dist\output\deploy-jboss42\bin
             [copy] Copying 4 files to D:\download\jbossws-metro-dist\output\deploy-jboss42\bin
             [copy] Copying 2 files to D:\download\jbossws-metro-dist\output\deploy-jboss42\lib
             [mkdir] Created dir: D:\download\jbossws-metro-dist\output\deploy-jboss42\client
             [copy] Copying 20 files to D:\download\jbossws-metro-dist\output\deploy-jboss42\client
             [mkdir] Created dir: D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\lib
             [copy] Copying 7 files to D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\lib
             [mkdir] Created dir: D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\deploy\jbossws.sar
             [copy] Copying 28 files to D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\deploy\jbossws.sar
             [copy] Copying 1 file to D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\deploy\jbossws.sar\jbo
            ssws.beans\META-INF
             [move] Moving 1 file to D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\deploy\jbossws.sar\jbos
            sws.beans\META-INF
             [copy] Copying 1 file to D:\download\jbossws-metro-dist\output\deploy-jboss42\server\default\deploy\jbossws.sar\MET
            A-INF
            
            deploy-jboss423:
             [copy] Copying 65 files to d:\projects\server\JBoss-4.3
             [unzip] Expanding: D:\download\jbossws-metro-dist\deploy\lib\juddi-service.sar into d:\projects\server\JBoss-4.3\ser
            ver\default\deploy\juddi-service.sar


            • 3. Re: DeploymentException when trying to deploy webservice wit
              Marek Neumann Novice

              Allessio, is the installation verified for 4.3? We will try once more to execute the installation on a clean 4.3 version. If this does not work, I will open a support ticket.

              Thanks
              Marek

              • 4. Re: DeploymentException when trying to deploy webservice wit
                Richard Opalka Master

                Yes Marek, we successfully tested JBossWS-Metro 3.0.3 with AS 4.2.3

                • 6. Re: DeploymentException when trying to deploy webservice wit
                  Silvano Maffeis Newbie

                  I'm having exactly the same exception after installing metro 3.0.3 on JBoss 4.2.3 GA. This is a clean installation. We had no such issues with metro 3.0.3 on JBoss 4.2.2.

                  I followed the installation instructions for mtro 3.0.3., modified the ant properties file accordingly, and then did a

                  ant deploy-jboss423

                  (which was successful).

                  Anything else that needs to be done?

                  Silvano