Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.apache.axis2.AxisFault: Connection refused: connect

We have a java web application running on Glassfish 2.1. We recently changed internet providers which also means out network IP's have changed. Our application makes two different web service calls, and both were working fine until this network change. We have a web service client manager class which calls a 3rd party web service.

Below is the error I'm receiving.

org.apache.axis2.AxisFault: Connection refused: connect 
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203) 
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225) 
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435) 
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402) 
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 

I can access the service on our server using SOAP UI. I can telnet to the IP of the service and if I paste the URL into the server's browser, I get a result.

I have no idea what the problem is or how to fix is. Does anyone have any ideas?

like image 517
CaptainMorgan Avatar asked Mar 09 '26 09:03

CaptainMorgan


1 Answers

I figured it out. Apparently we are no longer using a proxy, and the web service connection was still setting the proxy. I removed this setting and it worked!

like image 86
CaptainMorgan Avatar answered Mar 12 '26 17:03

CaptainMorgan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!