7 Replies Latest reply on Mar 13, 2013 11:25 AM by r035198x

    CommunicationException: Connection refused when we connect from Standalone

    SureshKreddy
      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