3 Replies Latest reply on Apr 9, 2002 6:58 AM by Rajendra Lande

    Please help !!!!!!!!

    Puneet Narang Newbie


      Hi,
      I am getting following exception while i try to lookup for a session bean from client program

      javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: com.zenesis.hub.testSLHome (no security manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:521)
      at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:637)
      at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:309)
      at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:241)
      at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1459)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1422)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at com.test.jboss.testClient.main(testClient.java:29)


      MY client code looks like this

      Properties props = new Properties();
      props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      props.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      props.put("java.naming.provider.url","localhost");
      InitialContext iniCtx = new InitialContext(props);
      Object tmp = iniCtx.lookup("testSL");

      please help

      thanks