5 Replies Latest reply on Mar 17, 2008 3:43 PM by Daniel Bevenius

    Error on line 46 of build.xml in the webservice_producer sam

    Luiz Antonio Falaguasta Barbosa Novice

      Hi people,

      Please, does anybody have already gotten this error when running 'ant runtest' for the sample webservice_producer?

      Please, take a look at the error:

      C:\jbossesb-4.2.1GA\samples\quickstarts\webservice_producer>ant runtest
      Buildfile: build.xml

      check-jbossesb-dist:

      qslib-dependencies:

      non-qslib-dependencies:

      jbossesb-dependencies:

      jbossesb-server-dependencies:

      messaging-config:

      messaging-dependencies:

      jbossmq-dependencies:

      assert-ws-available:
      [echo] JBoss Webservice container found on target 'c:jboss-4.2.1.GA/server/
      default/deploy'.

      quickstart-specific-dependencies:

      dependencies:

      compile:

      runtest:

      check-jbossesb-dist:

      qslib-dependencies:

      non-qslib-dependencies:

      jbossesb-dependencies:

      jbossesb-server-dependencies:

      messaging-config:

      messaging-dependencies:

      jbossmq-dependencies:

      assert-ws-available:
      [echo] JBoss Webservice container found on target 'c:jboss-4.2.1.GA/server/
      default/deploy'.

      quickstart-specific-dependencies:

      dependencies:

      compile:

      saygoodbye_over_jms:
      [echo] Invoking a JBossWS Endpoint over JMS (via JBoss ESB).

      check-jbossesb-dist:

      qslib-dependencies:

      non-qslib-dependencies:

      jbossesb-dependencies:

      jbossesb-server-dependencies:

      messaging-config:

      messaging-dependencies:

      jbossmq-dependencies:

      assert-ws-available:
      [echo] JBoss Webservice container found on target 'c:jboss-4.2.1.GA/server/
      default/deploy'.

      quickstart-specific-dependencies:

      dependencies:

      compile:

      saygoodbye_over_http:
      [echo] Invoking a JBossWS Endpoint over HTTP (via JBoss ESB).
      [java] Calling JBoss Remoting Listener using locator URI: http://localhost:
      8765
      [java] Exception in thread "main" org.jboss.remoting.CannotConnectException
      : Can not connect http client invoker.
      [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpUR
      LConnection(HTTPClientInvoker.java:332)
      [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport
      (HTTPClientInvoker.java:135)
      [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
      eClientInvoker.java:122)
      [java] at org.jboss.remoting.Client.invoke(Client.java:1550)
      [java] at org.jboss.remoting.Client.invoke(Client.java:530)
      [java] at org.jboss.remoting.Client.invoke(Client.java:518)
      [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
      SendMessage.sendMessageToJBRListener(SendMessage.java:72)
      [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
      SendMessage.main(SendMessage.java:114)
      [java] Caused by: java.net.ConnectException: Connection refused: connect
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
      a:195)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      [java] at java.net.Socket.connect(Socket.java:519)
      [java] at java.net.Socket.connect(Socket.java:469)
      [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
      [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
      [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:494)
      [java] at sun.net.www.http.HttpClient.(HttpClient.java:231)
      [java] at sun.net.www.http.HttpClient.New(HttpClient.java:304)
      [java] at sun.net.www.http.HttpClient.New(HttpClient.java:316)
      [java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
      HttpURLConnection.java:817)
      [java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http
      URLConnection.java:769)
      [java] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo
      nnection.java:694)
      [java] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(H
      ttpURLConnection.java:861)
      [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpUR
      LConnection(HTTPClientInvoker.java:274)
      [java] ... 7 more

      BUILD FAILED
      C:\jbossesb-4.2.1GA\samples\quickstarts\webservice_producer\build.xml:32: The fo
      llowing error occurred while executing this line:
      C:\jbossesb-4.2.1GA\samples\quickstarts\webservice_producer\build.xml:46: Java returned: 1

      Total time: 16 seconds
      C:\jbossesb-4.2.1GA\samples\quickstarts\webservice_producer>

      I ran 'ant deploy' before run the task above and the JBoss AS with JBossESB deployed in was running.

      Thanks in advance!

      Regards,

      Luiz

        • 1. Re: Error on line 46 of build.xml in the webservice_producer
          Daniel Bevenius Master

          Hi Luiz,


          [echo] Invoking a JBossWS Endpoint over HTTP (via JBoss ESB).
          [java] Calling JBoss Remoting Listener using locator URI: http://localhost:8765
          [java] Exception in thread "main" org.jboss.remoting.CannotConnectException
          : Can not connect http client invoker.
          [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpUR
          LConnection(HTTPClientInvoker.java:332)
          [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport
          (HTTPClientInvoker.java:135)
          [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
          eClientInvoker.java:122)
          [java] at org.jboss.remoting.Client.invoke(Client.java:1550)
          [java] at org.jboss.remoting.Client.invoke(Client.java:530)
          [java] at org.jboss.remoting.Client.invoke(Client.java:518)
          [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
          SendMessage.sendMessageToJBRListener(SendMessage.java:72)
          [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
          SendMessage.main(SendMessage.java:114)
          [java] Caused by: java.net.ConnectException: Connection refused: connect

          Can you check that the deployment of the quickstart was successful?
          It looks like it might not have been.

          Regards,

          /Daniel

          • 2. Re: Error on line 46 of build.xml in the webservice_producer
            Luiz Antonio Falaguasta Barbosa Novice

            Hi Daniel,

            Yes, the deploy have occured ok for each following values of org.jboss.esb.tomcat.home key into deployment.properties.

            I tried to use my already installed Tomcat, pointing, in the deployment.properties file, to this:

            org.jboss.esb.tomcat.home=C:\Tomcat4124

            and I've got the error described in the last post (this Tomcat4124 was running when ran 'ant deploy' and 'ant runtest').

            After, I tried with the original value, like this:

            org.jboss.esb.tomcat.home=/apache-tomcat-5.5.20

            but, I've got the same error.

            What would be wrong?

            Thanks in advance!

            Regards,

            Luiz

            • 3. Re: Error on line 46 of build.xml in the webservice_producer
              Daniel Bevenius Master

              Hi Luiz,

              could you re-run 'ant deploy' and post this section from the console:

              deploy-esb:
               [copy] Copying 1 file to /opt/jboss/esb/source/trunk/product/build/jbossesb-server-4.2.1GA/server/default/deploy
              


              Thanks,

              /Daniel

              • 4. Re: Error on line 46 of build.xml in the webservice_producer
                Luiz Antonio Falaguasta Barbosa Novice

                Hi Daniel,

                I deleted the webservice_producer quickstart .esb file from server/default/deploy directory in my JBoss AS and I ran 'ant deploy' again. So, I got this:

                16:02:10,666 INFO [DefaultEndpointRegistry] register: jboss.ws:context=Quicksta
                rt_webservice_producer,endpoint=GoodbyeWorldWS
                16:02:10,900 INFO [JBoss4ESBDeployer] create esb service, Quickstart_webservice
                _producer.esb
                16:02:10,931 INFO [quickstart_webservice_producer_gw] Bound to JNDI name: queue
                /quickstart_webservice_producer_gw
                16:02:10,947 INFO [quickstart_webservice_producer_esb] Bound to JNDI name: queu
                e/quickstart_webservice_producer_esb
                16:02:10,947 INFO [quickstart_webservice_producer_esb_reply] Bound to JNDI name
                : queue/quickstart_webservice_producer_esb_reply
                16:02:11,119 WARN [ServiceController] Problem starting service jboss.esb:deploy
                ment=Quickstart_webservice_producer.esb
                java.lang.NoClassDefFoundError: org/jboss/wsf/spi/invocation/BasicInvocationCont
                ext
                at java.lang.Class.forName0(Native Method)
                at java.lang.Class.forName(Class.java:242)
                at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)
                at org.jboss.soa.esb.listeners.config.ServicePublisher.getConractPublish
                er(ServicePublisher.java:151)
                at org.jboss.soa.esb.listeners.config.ServicePublisher.addServicePublish
                ers(ServicePublisher.java:107)
                at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration
                .java:120)
                at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(J
                Boss4ESBDeployment.java:82)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
                upport.java:289)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
                eanSupport.java:245)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.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(ServiceControl
                ler.java:978)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:417)
                at org.jboss.system.ServiceController.start(ServiceController.java:435)
                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.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.start(MainDeployer.java:1015)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.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(URLDeploymen
                tScanner.java:421)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                canner.java:634)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                doScan(AbstractDeploymentScanner.java:263)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                loop(AbstractDeploymentScanner.java:274)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                run(AbstractDeploymentScanner.java:225)
                16:02:11,166 INFO [TomcatDeployer] deploy, ctxPath=/Quickstart_webservice_produ
                cer, warUrl=.../tmp/deploy/tmp48983Quickstart_webservice_producer.esb-contents/Q
                uickstart_webservice_producer-exp.war/
                16:02:17,041 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.2.1.G
                A/server/default/data/wsdl/Quickstart_webservice_producer.esb/Quickstart_webserv
                ice_producer.war/GoodbyeWorldWSService48984.wsdl
                16:02:17,134 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.esb:deployment=Quickstart_webservice_producer.esb
                State: FAILED
                Reason: java.lang.NoClassDefFoundError: org/jboss/wsf/spi/invocation/BasicInvo
                cationContext
                I Depend On:
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_esb_reply
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_esb
                jboss.esb:deployment=jbossesb.esb
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_gw
                jboss.esb:deployment=soap.esb

                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: jboss.esb:deployment=Quickstart_webservice_producer.esb
                State: FAILED
                Reason: java.lang.NoClassDefFoundError: org/jboss/wsf/spi/invocation/BasicInvo
                cationContext
                I Depend On:
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_esb_reply
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_esb
                jboss.esb:deployment=jbossesb.esb
                jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_pr
                oducer_gw
                jboss.esb:deployment=soap.esb

                I think I installed it correctly because, for example, the helloworld sample is running ok.

                If you can give me some idea, I thank you.

                Regards,

                Luiz

                • 5. Re: Error on line 46 of build.xml in the webservice_producer
                  Daniel Bevenius Master

                  Hi Luiz,

                  the webservice_producer quickstart requires webservice support being installing into the application
                  server. If you are using JBoss AS 4.2.0.GA the take a look at the "Configuring Webservice Integration" section of the
                  JBossESB Adminsitration Guide (found in the docs folder).

                  Regards,

                  /Daniel