1 Reply Latest reply on Sep 25, 2001 8:05 PM by Jamal Jackson

    accessing Interest bean from example

    ryhwei Newbie

      My JAVA application is using the following code:

      Object ref = ctx.lookup("invokers/interest/Interest");

      to access the example Interest bean.
      What should I do to avoid the following exception:

      javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub (no security manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadClass (LoaderHandler.java:318) at sun.rmi.server.LoaderHandler.loadClass

        • 1. Re: accessing Interest bean from example
          Jamal Jackson Newbie

          without having tried your example, here is a general suggestion. Usually when I encounter a ClassNotFoundException a look for the class in directories and jar files. I happened to find the class you are looking for not in a jar file but in the src tree under org/jboss/ejb/plu.......... . If you have checked to make sure that you have included all the necessary jar files from the lib and lib/ext directory to run your example, I would put the src tree in my class path. It SHOULD WORK, but you never know.