3 Replies Latest reply on Aug 15, 2005 11:23 AM by H.-C.Gürsoy

    Local EJB Lookup Error

    J.D. Corbin Newbie

      Hello,

      I am attempting to lookup via JNDI a local EJB reference from within the same JVM. I am configuring my environment the standard way and am positive the context properties are configured properly. When I execute the following on the context I get an error:

      Object objRef = initial.lookup("com.ejb.myEjb");

      I get a CommunicationException with the following root cause:

      ClassNotFoundException: org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI class loader disabled)

      Now I've done some research and found references to this issue but not really sure what I need to resolve it. Again, I am looking up a local EJB and the client code is in the same JVM that is attempting to perform the lookup.

      Any assistance would be greatly appreciated by the community.

      J.D.

        • 1. Re: Local EJB Lookup Error
          J.D. Corbin Newbie

          I wanted to follow up with more information....

          The test case I am running is inside a main function. Does this mean it is truly running in its own JVM? If so, that would explain my errors. I still would appreciate some feedback.

          J.D.

          • 2. Re: Local EJB Lookup Error
            Darran Lofthouse Master

             

            "jcorbin4607" wrote:

            The test case I am running is inside a main function. Does this mean it is truly running in its own JVM?


            It depends on how the main method is being called.

            Also how is the InitialContext obtained?

            • 3. Re: Local EJB Lookup Error
              H.-C.Gürsoy Newbie

              Hi,

              i don't know if your problem is actual, but here the reason why you get with error message:

              The message is not due to security reasons but a simple classpath problem. The missing library is in this case the "jboss.jar" in [server-config]/lib. After this, you will get maybe an exception missing other librarys.

              To overcome this, i put all librarys in the [server-config]/lib and all in the client directory into my classpath.

              Hope this helps!