[ https://issues.apache.org/jira/browse/RAMPART-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188400#comment-13188400 ]
Amila Jayasekara commented on RAMPART-353: ------------------------------------------ Hi Karthika, It seems your server is not properly started (which is running on port 8443). OR may be it is running on some other port. Please check your server configurations. I will resolve this issue as this is not an issue in Rampart code. Thanks AmilaJ > Connection refused when trying to run the Client code and remote host closed > connection during ssl handshake > ------------------------------------------------------------------------------------------------------------- > > Key: RAMPART-353 > URL: https://issues.apache.org/jira/browse/RAMPART-353 > Project: Rampart > Issue Type: Bug > Components: rampart-core, rampart-integration, rampart-policy, > rampart-tests, rampart-trust > Affects Versions: 1.5.2 > Environment: Windows7 > Reporter: karthika sravanthi > Priority: Blocker > Labels: axis2, client, connection, host, rampart, refuse, > test-fail > Fix For: 1.5.2 > > Attachments: SecureServiceCGClient.java > > Original Estimate: 24h > Remaining Estimate: 24h > > log4j:WARN No appenders could be found for logger > (org.apache.axis2.deployment.F > ileSystemConfigurator). > log4j:WARN Please initialize the log4j system properly. > Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: > conne > ct > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav > a:203) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa > geWithCommons(CommonsHTTPTransportSender.java:400) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com > monsHTTPTransportSender.java:225) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO > peration.java:402) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out > InAxisOperation.java:229) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java: > 165) > at > tutorial.rampart.client.SecureServiceStub.add(SecureServiceStub.java: > 191) > at > tutorial.rampart.client.SecureServiceCGClient.main(SecureServiceCGCli > ent.java:34) > Caused by: java.net.ConnectException: Connection refused: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(Unknown Source) > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > at java.net.PlainSocketImpl.connect(Unknown Source) > at java.net.SocksSocketImpl.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.commons.httpclient.protocol.ReflectionSocketFactory.create > Socket(ReflectionSocketFactory.java:140) > at > org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat > eSocket(SSLProtocolSocketFactory.java:130) > at > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java > :707) > at > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http > ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt > pMethodDirector.java:387) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe > thodDirector.java:171) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav > a:397) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav > a:346) > at > org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst > ractHTTPSender.java:557) > at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav > a:199) > ... 9 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org