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 ?