Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.net.ConnectException: Connection refused

843834Nov 29 2002 — edited Dec 13 2002
Hi,

I have deployed a webservice on Weblogic7 .I have written a sample client to access this webservice .I am able to access the service from the local box,without any problem.

When i try to access the service with the client from a remote machine i am gettting the following error message.

If anyone could suggest a solution to this problem ,it would be of great help to me..

Thanx in advance ..

java.net.ConnectException: Connection refused: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:412)
at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:390)
at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
ding.java:246)
at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:34)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
at weblogic.jws.proxies.SessionManagementServiceSoap_Stub.login(SessionM
anagementServiceSoap_Stub.java:129)
at weblogic.jws.proxies.SessionManagementServiceSoap_Stub.login(SessionM
anagementServiceSoap_Stub.java:155)
at FOClient.main(FOClient.java:77)
javax.xml.rpc.JAXRPCException: Failed to send request:java.net.ConnectException:
Connection refused: no further information
at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:37)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
at weblogic.jws.proxies.SessionManagementServiceSoap_Stub.login(SessionM
anagementServiceSoap_Stub.java:129)
at weblogic.jws.proxies.SessionManagementServiceSoap_Stub.login(SessionM
anagementServiceSoap_Stub.java:155)
at FOClient.main(FOClient.java:77)
Exception in handler's handleRequest().

Comments

843834
Hi,
If you did not get the solution already, try this :-
set ENDPOINT_ADDRESS_PROPERTY of the _stub object(of of the generated class by xrpcc) to the other m/c where you are running the server.
843834
Hi ALL, I have similar problem..

Brief of previous problem :

I was trying to make work my didgital certificate, I am getting following error

Error is as below:
========================================
default context init failed: java.io.IOException: unsupported PKCS12 bag type 1.2.840.113549.1.12.10.1.1
IO exception thrown in byteStream.writeto
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).....
....
....
=========================================

so I tried to check if my ketool does support PKCS12 format or not as like this :
==========================================
C:\>Keytool -list -storetype pkcs12 -keystore c:/cm.p12
Enter keystore password: junk

Keystore type: pkcs12
Keystore provider: IBMJCE

Your keystore contains 3 entries:

verisign class 3 public primary certification authority, Wed Dec 31 19:00:00 EST 1969, trustedCertEntry,
Certificate fingerprint (MD5): 10:FC:63:5D:F6:26:3E:0D:F3:25:BE:5F:79:CD:67:67
crisismanagementprod, Wed Dec 31 19:00:00 EST 1969, keyEntry,
Certificate fingerprint (MD5): 67:0D:EF:ED:D6:68:FD:F2:2A:E4:88:65:5B:F8:CA:6C
verisign class 3 ca individual subscriber-persona not validated, Wed Dec 31 19:00:00 EST 1969, trustedCertEntry,
Certificate fingerprint (MD5): 18:87:5C:CB:F8:20:5D:24:4A:BF:19:C7:13:0E:FD:B4

==========================================
This means my keytool is supporting pkcs12 format....

I don't understand...why it is giving me that error...
sombody please respond quickly...


I am using JDK1.4.0_01, If you need any more information for analysining this problem, you can contact me @ 518 612 6868 or else give your#, I will call u..my mail id is shridharjoshi@yahoo.com



-Shri
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 10 2003
Added on Nov 29 2002
2 comments
661 views