2 Replies Latest reply on Jul 23, 2002 9:58 PM by shink

    Error in servlet page:java.lang.NoClassDefFoundError: javax/

    shink Newbie

      Hi all:

      I user Jboss-2.4.3
      win2000 pro
      tomcat 4.1
      The demo ejb deployed ok.
      The source code in servlet init() below:

      System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      System.setProperty("java.naming.provider.url", "localhost:1099");
      InitialContext jndiContext = new InitialContext();
      System.out.println (jndiContext);
      Object ref = jndiContext.lookup("demo/Demo");

      I got the InitialContext,but then error happend with web page diaply"java.lang.NoClassDefFoundError: javax/ejb/EJBHome".

      I had success to excute this servlet befor in another computer.What's wrong happened here?
      Thanks a lot.