This discussion is archived
7 Replies Latest reply: Mar 13, 2013 4:25 AM by r035198x RSS

CommunicationException: Connection refused when we connect from Standalone

SureshKreddy Newbie
Currently Being Moderated
Hi friends,

I am using JDevloper 10.1.3.3.0 as my IDE. I tried to connect EJB(2.1) using a standalone java class, but i am getting the below exception.

javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
     at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:296)
     at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
     at javax.naming.InitialContext.lookup(InitialContext.java:351)

Where as if i connect it from jspx page, its not giving any problem and its calling ejb methods and returning o/p.

Can anyone guide me, in resolving this?

Regards,
Suresh K

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points