2 Replies Latest reply on Feb 16, 2008 3:58 PM by Heiko Braun

    SOAPBinding.Style.DOCUMENT and deployment failed

    Francesco Benvegna Newbie

      My very simple web-service fails deploy with SOAPBinding.Style.DOCUMENT style

      13:05:48,659 INFO [SunJaxwsDeploymentAspect] Add Endpoint
       name=services
       implementation=it.unipa.cuc.ersu.test.ServicesImpl
       url-pattern=/*
       enable-mtom=false
      13:05:48,679 INFO [DefaultEndpointRegistry] register: jboss.ws:context=TestERSU,endpoint=services
      13:05:48,858 INFO [TomcatDeployer] deploy, ctxPath=/TestERSU, warUrl=.../deploy/TestERSU.war/
      13:05:49,086 WARN [DeploymentDescriptorParserExt] bypass collectDocs(), it doesnt work for EJB endpoints
      13:05:49,625 ERROR [MainDeployer] Could not start deployment: file:/opt/jboss-4.2.2.GA/server/default/deploy/TestERSU.war/
      javax.xml.ws.WebServiceException: Failed to build METRO runtime model
       at org.jboss.wsf.stack.sunri.metadata.RuntimeModelDeploymentAspect.create(RuntimeModelDeploymentAspect.java:129)
       at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
       at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
      .............
      .............
      .............
      Caused by: com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class it.unipa.cuc.ersu.test.jaxws.Hello is not found. Have you run APT to generate them?
       at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:287)
       at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596)
      


      but works fine with SOAPBinding.Style.RPC
      12:56:46,134 INFO [SunJaxwsDeploymentAspect] Add Endpoint
       name=services
       implementation=it.unipa.cuc.ersu.test.ServicesImpl
       url-pattern=/*
       enable-mtom=false
      13:08:51,183 INFO [DefaultEndpointRegistry] register: jboss.ws:context=TestERSU,endpoint=services
      13:08:51,280 INFO [TomcatDeployer] deploy, ctxPath=/TestERSU, warUrl=.../deploy/TestERSU.war/
      13:08:51,403 WARN [DeploymentDescriptorParserExt] bypass collectDocs(), it doesnt work for EJB endpoints
      13:08:52,109 WARN [RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.api.ResourceLoader
      


      Why ?

        • 1. Re: SOAPBinding.Style.DOCUMENT and deployment failed
          Francesco Benvegna Newbie

           

          "fbenvegna" wrote:
          My very simple web-service fails deploy with SOAPBinding.Style.DOCUMENT style

          13:05:48,659 INFO [SunJaxwsDeploymentAspect] Add Endpoint
           name=services
           implementation=it.unipa.cuc.ersu.test.ServicesImpl
           url-pattern=/*
           enable-mtom=false
          13:05:48,679 INFO [DefaultEndpointRegistry] register: jboss.ws:context=TestERSU,endpoint=services
          13:05:48,858 INFO [TomcatDeployer] deploy, ctxPath=/TestERSU, warUrl=.../deploy/TestERSU.war/
          13:05:49,086 WARN [DeploymentDescriptorParserExt] bypass collectDocs(), it doesnt work for EJB endpoints
          13:05:49,625 ERROR [MainDeployer] Could not start deployment: file:/opt/jboss-4.2.2.GA/server/default/deploy/TestERSU.war/
          javax.xml.ws.WebServiceException: Failed to build METRO runtime model
           at org.jboss.wsf.stack.sunri.metadata.RuntimeModelDeploymentAspect.create(RuntimeModelDeploymentAspect.java:129)
           at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
           at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
           at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
          .............
          .............
          .............
          Caused by: com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class it.unipa.cuc.ersu.test.jaxws.Hello is not found. Have you run APT to generate them?
           at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:287)
           at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596)
          


          but works fine with SOAPBinding.Style.RPC
          12:56:46,134 INFO [SunJaxwsDeploymentAspect] Add Endpoint
           name=services
           implementation=it.unipa.cuc.ersu.test.ServicesImpl
           url-pattern=/*
           enable-mtom=false
          13:08:51,183 INFO [DefaultEndpointRegistry] register: jboss.ws:context=TestERSU,endpoint=services
          13:08:51,280 INFO [TomcatDeployer] deploy, ctxPath=/TestERSU, warUrl=.../deploy/TestERSU.war/
          13:08:51,403 WARN [DeploymentDescriptorParserExt] bypass collectDocs(), it doesnt work for EJB endpoints
          13:08:52,109 WARN [RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.api.ResourceLoader
          


          With JBossWS-Native, I have no problem to switch from a style to another!
          Why ?


          • 2. Re: SOAPBinding.Style.DOCUMENT and deployment failed
            Heiko Braun Master

            It's this part:



            Caused by: com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class it.uni
            pa.cuc.ersu.test.jaxws.Hello is not found. Have you run APT to generate them?
            at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:287)
            at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596)



            Metro requires you to generate the wrapper beans in a separate step, whereas native does it at runtime. You can use wsprovide to generate the wrapper beans.