0 Replies Latest reply on Feb 11, 2003 8:49 AM by Fabiano C. de Oliveira

    MEJB  exception

    Fabiano C. de Oliveira Newbie

      I'm trying to run a JSR-77 example.:

      ...
      Context initial = new InitialContext();

      String str = "ejb/mgmt/MEJB";

      Object objref = initial.lookup(str);
      ManagementHome home =
      (ManagementHome)PortableRemoteObject.narrow(objref,
      ManagementHome.class);
      Management mejb = home.create();

      ObjectName searchpattern = new ObjectName("*:j2eeType=StatelessSessionBean,*");
      Set managed_object_set = mejb.queryNames(searchpattern, null);
      ...

      but I get the following exception.:
      ...
      javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: org.jboss.management.mejb.MEJB (no security manager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
      ...

      Does anyone knows why ?

      Thanks.