External ejb client fails to connect to JBoss EAP JNDI
Issue
- Upgrading from JBoss 4.0.x to JBoss EAP 4.3
- Updated the EJB to version 3 from version 2.1.
-
My web app is up and running OK (able to connect to EJB local interface), but I have a remote java client component that is not able to connect through the remote EJB interface.
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 192.168.1.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 192.168.1.1 :1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.1.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562) ... Caused by: javax.naming.CommunicationException: Failed to connect to server 192.168.1.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.1.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533) ... 16 more Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server 192.168.1.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248) ... 17 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source)
Environment
- JBoss Application Platform (EAP)
- 4.3.X
- 5.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.