Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1218

java.net.ConnectException: Connection refused: connect when building binding-ws-axis2

    XMLWordPrintableJSON

Details

    Description

      When building java/sca from the trunk, the following error occurs:

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.tuscany.binding.axis2.itests.HelloWorldTestCase
      log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils).
      log4j:WARN Please initialize the log4j system properly.
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.52 sec
      Running org.apache.tuscany.binding.axis2.Axis2ServiceTestCase
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
      Running org.apache.tuscany.binding.axis2.itests.endpoints.WSDLRelativeURITestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.975 sec
      Running org.apache.tuscany.binding.axis2.itests.HelloWorldOMTestCase
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.307 sec <<< FAILURE!
      testCalculator(org.apache.tuscany.binding.axis2.itests.HelloWorldOMTestCase) Time elapsed: 4.247 sec <<< ERROR!
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy8.getGreetings(Unknown Source)
      at org.apache.tuscany.binding.axis2.itests.HelloWorldOMComponent.getGreetings(HelloWorldOMComponent.java:31)
      at org.apache.tuscany.binding.axis2.itests.HelloWorldOMTestCase.testCalculator(HelloWorldOMTestCase.java:43)
      Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
      java.net.ConnectException: Connection refused: connect; nested exception is:
      org.apache.axis2.AxisFault: Connection refused: connect; nested exception is:
      java.net.ConnectException: Connection refused: connect
      at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
      at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
      at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
      at org.apache.tuscany.binding.axis2.Axis2TargetInvoker.invokeTarget(Axis2TargetInvoker.java:77)
      at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(TargetInvokerExtension.java:52)
      at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterceptor.java:45)
      at org.apache.tuscany.spi.wire.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:91)
      at org.apache.tuscany.implementation.java.proxy.JDKInvocationHandler.invoke(JDKInvocationHandler.java:150)
      ... 29 more

      On my machine, this occurs every time when building from the root. It does not occur if I only build the binding-ws-axis2 module.

      Attachments

        1. patch-1218
          8 kB
          Simon Nash

        Activity

          People

            aelder ant elder
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: