This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change your

My INITIAL_CONTEXT_FACTORY is "org.jnp.interfaces.NamingContextFactory"
My PROVIDER_URL is "jsp://localhost:1099" to jnp://localhost:1099
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic