Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic