Hi,
from the exception it seems that the endpoint is not active or you are
trying to reach a wrong endpoint.
Are you sure that:
1) The webserver where the webservice resides is alive
2) You are targeting the right url:port
Luciano
-----Original Message-----
From: Miller, Janet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 09 March 2004 23:36
To: [EMAIL PROTECTED]
Subject: Connection refused exception
I'm new to axis and webservices and am trying to connect to an existing
web service
at a client's site. I used wsdl2java to generate my java code,
compiled, and executed
it and am getting a 'connection refused: connect' exception. Does
anyone know why
and could it be something on my side that I've done wrong? The error
message is
below. Thanks for your help.
Jan
C:\axistest>java -classpath
c:\axistest;c:\j2sdk1.4.0\lib\tools.jar;c:\axistest\
axis.jar;c:\axistest\axis-ant.jar;c:\axistest\commons-discovery.jar;c:\a
xistest\
commons-logging.jar;c:\axistest\jaxrpc.jar;c:\axistest\log4j-1.2.4.jar;c
:\axiste
st\saaj.jar;c:\axistest\wsdl4j.jar;c:\JBuilderXFoundation\extras\jdom\li
b\xerces
.jar com.nextbus.listener.service.ListenerClient "newmsg"
Caught Exception
java.net.ConnectException: Connection refused: connect
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
java.net.ConnectException: Conn
ection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:129)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
57)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.nextbus.listener.service.ListenerSoapBindingStub.onMessage(Listen
erSoapBindingStub.java:148)
at
com.nextbus.listener.service.ListenerClient.testListener(ListenerClie
nt.java:47)
at
com.nextbus.listener.service.ListenerClient.main(ListenerClient.java:
53)
java.net.ConnectException: Connection refused: connect
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.nextbus.listener.service.ListenerSoapBindingStub.onMessage(Listen
erSoapBindingStub.java:148)
at
com.nextbus.listener.service.ListenerClient.testListener(ListenerClie
nt.java:47)
at
com.nextbus.listener.service.ListenerClient.main(ListenerClient.java:
53)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:129)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
57)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
... 12 more
Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited.
If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system.
