3 Replies Latest reply on Feb 12, 2015 3:02 AM by valsaraj viswanathan

    Issue with remote access

    valsaraj viswanathan Master

      Hi,

       

      I am getting the following error when I access from outside appserver:

      caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: jnp://localhost:1099,jnp://localhost:2099 and discovery failed with erro

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

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

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

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

             at org.tolven.client.TolvenClient.beginTransaction(TolvenClient.java:215)

             ... 13 more

      aused by: javax.naming.CommunicationException: Failed to connect to server localhost:2099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect

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

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

             ... 17 more

      aused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:2099 [Root exception is java.net.ConnectException: Connection refused: connect]

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

             ... 18 more

      aused by: java.net.ConnectException: Connection refused: connect

             at java.net.DualStackPlainSocketImpl.connect0(Native Method)

       

      Here is the jndi.properties file:

      java.naming.factory.initial=org.jboss.naming.NamingContextFactory

      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      java.naming.provider.url=jnp://localhost:1099,jnp://localhost:2099

       

      This was working with JBoss-4.2.2.GA and facing this error in WildFly-8.2.0. Should I change any property?

       

      Thanks!