1 Reply Latest reply on Aug 4, 2010 4:44 AM by Thibault Delor

    Migration from JBoss 5.0.0.CR2 to jboss-5.1.0.GA

    Thibault Delor Newbie

      Hello,

      I've just migrated from JBoss 5.0.0.CR2 to jboss-5.1.0.GA and i get an error at runtime when i try to lookup a jndi name on my swing client. This is my error :


      {quote}

       

      Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost 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 server localhost:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1604)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at Test.testTopic(Test.java:72)
      at Test.main(Test.java:20)
      Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1575)
      ... 5 more
      Caused by: java.lang.ClassNotFoundException: org.jnp.server.NamingServer_Stub (no security manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
      at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
      at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
      at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:259)
      ... 6 more

       

       

      {quote}

       

       

      I spend my day looking for a solution but i have no idea! Any idea?