wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Eclipse 3 with Jboss3.2.3 using Lomboz 3.0  -> CommunicationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Eclipse 3 with Jboss3.2.3 using Lomboz 3.0  -> CommunicationException" Watch "Eclipse 3 with Jboss3.2.3 using Lomboz 3.0  -> CommunicationException" New topic
Author

Eclipse 3 with Jboss3.2.3 using Lomboz 3.0 -> CommunicationException

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
I have the Environment ie Eclipse 3 with Jboss3.2.3 using Lomboz 3.0 plugin. I deployed the stateless session bean successfully.
But When I test the deployed stateless session bean using the client program, I got the following exception:

***************************************************************************************************************
18:32:29,326 WARN [NamingContext] Failed to connect to jsp:1099

javax.naming.CommunicationException: Failed to connect to server jsp:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server jsp:1099 [Root exception is java.net.UnknownHostException: jsp: jsp]]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)

at javax.naming.InitialContext.lookup(Unknown Source)

at com.testing.client.TestClient.getHome(TestClient.java:26)

at com.testing.client.TestClient.testBean(TestClient.java:46)

at com.testing.client.TestClient.main(TestClient.java:65)

Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server jsp:1099 [Root exception is java.net.UnknownHostException: jsp: jsp]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:190)

... 7 more

Caused by: java.net.UnknownHostException: jsp: jsp

at java.net.InetAddress.getAllByName0(Unknown Source)

at java.net.InetAddress.getAllByName0(Unknown Source)

at java.net.InetAddress.getAllByName(Unknown Source)

at java.net.InetAddress.getByName(Unknown Source)

at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:61)

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:186)

... 7 more

javax.naming.CommunicationException: Failed to connect to server 0.0.0.0:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 0.0.0.0:1100 [Root exception is java.net.ConnectException: Connection refused: connect]]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)

at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1107)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)

at javax.naming.InitialContext.lookup(Unknown Source)

at com.testing.client.TestClient.getHome(TestClient.java:26)

at com.testing.client.TestClient.testBean(TestClient.java:46)

at com.testing.client.TestClient.main(TestClient.java:65)

Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server 0.0.0.0:1100 [Root exception is java.net.ConnectException: Connection refused: connect]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:190)

... 8 more

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.Socket.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.<init>(Unknown Source)

at java.net.Socket.<init>(Unknown Source)

at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)

at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:186)

... 8 more

************************************************************************************************************************************************************************************************8
My INITIAL_CONTEXT_FACTORY is "org.jnp.interfaces.NamingContextFactory"
My PROVIDER_URL is "jsp://localhost:1099"
******************************************************************************************************************************************************************8

How can I resolve the error ?
Anurag Mishra
Ranch Hand

Joined: Sep 27, 2001
Posts: 133
Change your

My INITIAL_CONTEXT_FACTORY is "org.jnp.interfaces.NamingContextFactory"
My PROVIDER_URL is "jsp://localhost:1099" to jnp://localhost:1099
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse 3 with Jboss3.2.3 using Lomboz 3.0 -> CommunicationException
 
Similar Threads
problem running example in mikalai notes
how to check whether server is running or not
JBoss initialcontext problem
please help ..... error while running program using eclipse
SocketTimeoutException when doing JNDI lookup