2 Replies Latest reply on Jan 31, 2011 1:20 PM by James Gershater

    NoSuchObjectException trying to access remote JBoss instance

    James Gershater Newbie

      We are porting an application from JBoss 3.2 to 5.1. Now having a problem establishing the initial JNDI context from a remote comptuer. When doing this from the same computer as the JBoss instance we have no problem. The properties we are using to create the InitialContext object are:

       

      {java.naming.provider.url=jnp://192.168.8.201:34000, java.naming.factory.initial=org.jboss.iiop.naming.ORBInitialContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

       

      On the local computer we use these properties to create the Initial Context:

       

      {java.naming.provider.url=jnp://localhost:34000, java.naming.factory.initial=org.jboss.iiop.naming.ORBInitialContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

       

      The jndi.properties file (on both the local box and the remote one) look like this:

       

      java.naming.factory.initial=org.jboss.iiop.naming.ORBInitialContextFactory

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

       

      Any ideas?

       

      Thanks for the help...