4 Replies Latest reply on Aug 3, 2007 5:52 PM by Burr Sutter

    Can't deploy Quickstart_webservice_producer

    Barry Sheward Newbie

      Hi,

      I seem to be unable to deploy Quickstart_webservice_producer.

      12:37:31,455 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss/server/default/tmp/deploy/tmp2777Quickstart_webservice_producer.esb-contents/Quickstart_webservice_pro
      ducer.war
      java.lang.NullPointerException
       at org.jboss.wsf.container.jboss42.WebMetaDataAdapter.buildUnifiedWebMetaData(WebMetaDataAdapter.java:64)
       at org.jboss.wsf.container.jboss42.DeploymentInfoAdapter.buildMetaData(DeploymentInfoAdapter.java:117)
       at org.jboss.wsf.container.jboss42.DeploymentInfoAdapter.buildDeploymentInfo(DeploymentInfoAdapter.java:86)
       at org.jboss.wsf.container.jboss42.UnifiedDeploymentInfoDeployer.create(UnifiedDeploymentInfoDeployer.java:64)
       at org.jboss.wsf.spi.deployment.BasicDeployerManager.deploy(BasicDeployerManager.java:69)
       at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy46.create(Unknown Source)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:595)
      


      I have a script to ensure everything is clean:

      export JB_VER=4.2.0.GA
      
      cd /cygdrive/c
      unzip /cygdrive/c/Documents\ and\ Settings/shewardb/My\ Documents/Software/JBoss/AS/jboss-${JB_VER}.zip
      mv jboss-${JB_VER} jboss
      
      export JBOSS_HOME=/jboss
      
      ( cd jboss-messaging-1.3.0.GA/util; ant -f release-admin.xml )
      mv jboss/server/default jboss/server/default.old
      mv jboss/server/messaging jboss/server/default
      
      echo ""
      echo "Fixing jms-ds.xml"
      echo ""
      mv jboss/server/default/deploy/jms-ds.xml jboss/server/default/deploy/jms-ds.xml.old
      sed -e 's/jboss\.mq/jboss.messaging/g' jboss/server/default/deploy/jms-ds.xml.old > jboss/server/default/deploy/jms-ds.xml
      diff jbosss/server/default/deploy/jms-ds.xml.old jboss/server/default/deploy/jms-ds.xml
      
      echo ""
      echo "Fixing standardjboss.xml"
      echo ""
      mv jboss/server/default/conf/standardjboss.xml jboss/server/default/conf/standardjboss.xml.old
      sed -e 's#<CreateJBossMQDestination>true</CreateJBossMQDestination>#<CreateJBossMQDestination>false</CreateJBossMQDestination>#' jboss/server/default/conf/standardjboss.xml.old > j
      boss/server/default/conf/standardjboss.xml
      diff jboss/server/default/conf/standardjboss.xml.old jboss/server/default/conf/standardjboss.xml
      
      echo ""
      echo "Fixing jboss-service.xml"
      echo ""
      mv jboss/server/default/conf/jboss-service.xml jboss/server/default/conf/jboss-service.xml.old
      sed -e 's#<attribute name="JMSService">jboss.mq:service=DestinationManager</attribute>##' jboss/server/default/conf/jboss-service.xml.old > jboss/server/default/conf/jboss-service.
      xml
      diff jboss/server/default/conf/jboss-service.xml.old jboss/server/default/conf/jboss-service.xml
      
      ( cd jbossws-native-2.0.0.GA; ./build.sh deploy-jboss42 )
      ( cd jbossesb/trunk/product; ant clean deploy )
      ( cd jbossesb/trunk/product/samples/quickstart/robot; ant clean deploy )
      


      I've tried this with JBoss AS 4.2.0.GA and 4.2.1.GA with JBoss Messaging 1.3.0 and JBossWS 2.0.0.

      Any ideas?

      Barry


        • 1. Re: Can't deploy Quickstart_webservice_producer
          Barry Sheward Newbie

          I downloaded the JBossESB Server 4.2MR3 and installed it. When I tried to deploy the Quickstart_webservice_producer I saw the following error:

          BUILD FAILED
          c:\jbossesbs\samples\quickstarts\conf\base-build.xml:416: **** DEPLOYMENT FAILED... Sorry, this Quickstart requires the JBoss Webservice container from http://anonsvn.labs.jboss.co
          m/labs/jbossesb/workspace/jbossws2_0_0. 'c:\jbossesbs' does not appear to contain that Webservice container. Check the 'org.jboss.esb.server.home' property in ../quickstarts.prop
          erties"
          


          So, I tried to install JBoss WS 2.0, but it seems that the JBoss ESB server .zip file is missing a vital file, so I get:

          BUILD FAILED
          c:\jbossws-native-2.0.0.GA\build\build-deploy.xml:68: The following error occurred while executing this line:
          c:\jbossws-native-2.0.0.GA\build\macros-deploy-native.xml:186: Not available: /jbossesbs/client/jboss-client.jar
          


          After I modified the build script not to fail on this, I did get JBoss WS to install into the JBossESB Server. When I start it up and go to http://localhost:8080/jbossws/services, I get:

          13:49:38,353 ERROR [[/jbossws]] StandardWrapper.Throwable
          java.lang.NoClassDefFoundError: org/jboss/kernel/Kernel
           at org.jboss.wsf.spi.management.EndpointRegistryFactory.getEndpointRegistry(EndpointRegistryFactory.java:46)
           at org.jboss.ws.core.server.ContextServlet.init(ContextServlet.java:61)
           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
           at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
          13:49:38,353 ERROR [[ContextServlet]] Allocate exception for servlet ContextServlet
          java.lang.NoClassDefFoundError: org/jboss/kernel/Kernel
           at org.jboss.wsf.spi.management.EndpointRegistryFactory.getEndpointRegistry(EndpointRegistryFactory.java:46)
           at org.jboss.ws.core.server.ContextServlet.init(ContextServlet.java:61)
           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
           at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
          


          This seems unbelievable painful!

          • 2. Re: Can't deploy Quickstart_webservice_producer
            Burr Sutter Master

            WS Producer will not work with the ESB Server MR3 deployment option. Only with JBoss Application 4.2 + JBoss WS Native 2.0.

            We hope to correct this in the near future as we believe there are a number of people who will wish to use web services on the ESB Server.

            • 3. Re: Can't deploy Quickstart_webservice_producer
              Barry Sheward Newbie

               

              WS Producer will not work with the ESB Server MR3 deployment option. Only with JBoss Application 4.2 + JBoss WS Native 2.0.


              That what I tried initially, on JBoss 4.2.1 and 4.2.0.

              • 4. Re: Can't deploy Quickstart_webservice_producer
                Burr Sutter Master

                That does work. At least in my configuration of AS 4.2.0 + JBoss WS 2.0 + ESB 4.2MR3 + ant deployIntros (from the install folder).