axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
Subject Re: Connection refused error while running SOAP withAttachments
Date Fri, 29 Jun 2007 02:12:40 GMT
Hi,
> Tried running the client as follows::
> ant run.client -Dfile README.txt -Ddest myReadMe.txt
> and again with
> ant run.client -Dfile README.txt -Ddest myReadMe.txt -Dhttp.proxyHost=myProxy
> -Dhttp.proxyPort=myPort
In the sample build script we do not support specifyig anything else
than the -Ddest & the -Dfile... When it comes to samples we aimed at
simplicity rather than the options :)...

For this to work you may need to hand tweak the given ant build.xml or
you can run the client program using other means (eg: IDE)...

thanks,
Thilina

>
> The below output messages is what I got. Is this because my proxy server needs to be
configured to
> allow SOAP messages to be transmitted back and forth from my application ?
>
> Any help is appreciated.
>
>
> Thanks,
> Andy.
>
>
> C:\axis2-1.2\samples\soapwithattachments>ant run.client -Dfile README.txt -Ddest myReadMe.txt
>
> Buildfile: build.xml
>
> compile:
>
> check-parameters:
>
> print-usage:
>
> run.client:
>      [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ModuleDeployer deploy
>      [java] INFO: Deploying module: addressing-1.2
>      [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ModuleDeployer deploy
>      [java] INFO: Deploying module: soapmonitor-1.2
>      [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy
>      [java] INFO: Deploying Web service: sample-swa.aar
>      [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy
>      [java] INFO: Deploying Web service: version.aar
>      [java] Jun 28, 2007 2:37:06 PM org.apache.axis2.deployment.ServiceDeployer deploy
>      [java] INFO: Deploying Web service: WeatherService.aar
>      [java] Jun 28, 2007 2:37:08 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: I/O exception (java.net.ConnectException) caught when processing request:
> Connection refused: connect
>      [java] Jun 28, 2007 2:37:08 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: Retrying request
>      [java] Jun 28, 2007 2:37:09 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: I/O exception (java.net.ConnectException) caught when processing request:
> Connection refused: connect
>      [java] Jun 28, 2007 2:37:09 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: Retrying request
>      [java] Jun 28, 2007 2:37:10 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: I/O exception (java.net.ConnectException) caught when processing request:
> Connection refused: connect
>      [java] Jun 28, 2007 2:37:10 PM org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
>      [java] INFO: Retrying request
>      [java] Exception in thread "main" org.apache.axis2.AxisFault: Connection refused:
connect
>      [java]     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
>      [java]     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>      [java]     at sample.soapwithattachments.client.SWAClient.transferFile(SWAClient.java:133)
>      [java]     at sample.soapwithattachments.client.SWAClient.main(SWAClient.java:81)
>      [java] Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>      [java]     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:3
> 14)
>      [java]     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
>      [java]     ... 5 more
>      [java] Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>      [java]     at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
>      [java]     at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>      [java]     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:3
> 05)
>      [java]     ... 6 more
>      [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.java:195)
>      [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>      [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>      [java]     at java.net.Socket.connect(Socket.java:519)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:597)
>      [java]     at
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
>      [java]     at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:1
> 24)
>      [java]     at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
>      [java]     at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
>      [java]     at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>      [java]     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>      [java]     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>      [java]     at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
>      [java]     at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
>      [java]     ... 8 more
>      [java] Java Result: 1
>
> BUILD SUCCESSFUL
> Total time: 5 seconds
>
>
>
>
>
>
> ____________________________________________________________________________________
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message