ThankQ marie123, i'm getting the following error....

javax.naming.CommunicationException: Could not obtain connection to any of 
these urls: 192.116.25.23: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 192.116.25.23:1099 
[Root exception is javax.naming.ServiceUnavailableException: Failed to connect 
to server 192.116.25.23:1099  [Root exception is java.net.ConnectException: 
Connection refused: connect]]]
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.v2.eclinic.ConcernedDeptDoctor.(ConcernedDeptDoctor.java:103)
        at com.v2.eclinic.ConcernedDeptDoctor.main(ConcernedDeptDoctor.java:179)
Caused by: javax.naming.CommunicationException: Failed to connect to 
server192.116.25.23:1099 [Root exception is 
javax.naming.ServiceUnavailableException: Failed to connect to server 
192.116.25.23:1099  [Root exception is java.net.ConnectException: Connection 
refused: connect]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
        ... 5 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to 
server 192.116.25.23:1099 [Root exception is java.net.ConnectException: 
Connection refused: connect]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
        ... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at java.net.Socket.(Socket.java:365)
        at java.net.Socket.(Socket.java:265)
        at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
        at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)


.........................................

i'm getting the above error when i tried to configure jndi in my application 
like below...

env.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory"); 
env.put(Context.URL_PKG_PREFIXES, 
"=org.jboss.naming:org.jnp.interfaces"); 
env.put(Context.PROVIDER_URL, "jnp://192.116.25.23"); 


So plz tell me how 2 solve this problem.... in simple how to access the server 
which is running in a remote machine in my application by configuring the jndi 
configuration like above................... or any other way is appriciated







View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149365#4149365

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149365
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to