2 Replies Latest reply on Jul 23, 2003 3:07 AM by Bernd Zeitler

    Remote EJB Clients - NoClassDefFound Exception

    sriramkanala Newbie

      I am trying to lookup an EJB from a remote client. I'm getting NoClassDefFound exception when I try to run the client.

      The code I'm using is given below:

      Properties p = new Properties();

      p.put(Context.PROVIDER_URL, "http://:8080/invoker/JNDIFactory");

      Context ctx = new javax.naming.InitialContext(p);

      I'm getting the exception after this line.

      Pl. suggest a solution to this.

      Should I modify jndi.properties file in jboss server to use HTTP for RMI calls.

      1. If I do that, then how will the local clients access the EJBs?

      2. Still I wanted to try it out, so I placed the following in jndi.properties file:
      java.naming.provider.url=http://[external machine address]:[port]/invoker/JNDIFactory

      in jndi.properties. But this caused many exceptions when jboss is started.
      Is there anything else that I need to do?