5 Replies Latest reply on Aug 22, 2001 8:23 PM by marc fleury

    ClassNotFoundException

    Aakash Chopra Newbie

      Hi all, I am attempting to call the following code when I get a CNFE:

      Object tempObj = Beans.instantiate (null,actionDelegateName);
      servletActionDelegate = (ServletActionDelegate)Beans.getInstanceOf(tempObj,ServletActionDelegate.class);

      The actual class exists in the appropriate package in the WEB-INF/classes directory (within a war file) but for some reason it still cannot be found....

      I've tried to include the class packaged in a jar in the jboss/lib/ext directory also - still, it cannot be found.

      Here is part of the stacktrace:

      [EmbeddedTomcatSX] java.lang.ClassNotFoundException: x.xx.xxx.actiondelegates.ProfileManagerServletActionDelegate
      [EmbeddedTomcatSX] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      [EmbeddedTomcatSX] at java.security.AccessController.doPrivileged(Native Method)
      [EmbeddedTomcatSX] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      [EmbeddedTomcatSX] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      [EmbeddedTomcatSX] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
      [EmbeddedTomcatSX] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      [EmbeddedTomcatSX] at java.beans.Beans.instantiate(Beans.java:190)
      [EmbeddedTomcatSX] at java.beans.Beans.instantiate(Beans.java:51)

      Thanks in advance for any advice!

      Buzz