1 Reply Latest reply on Feb 10, 2009 8:46 AM by Andrew Lindley

    Classloading possible?

    Andrew Lindley Newbie

      To briefly outline the problem: I've got an application packaged as .ear, properly deployed and within one of the POJOs I'm trying to do the following:
      Use a ClassLoader to load a .class file from my file-system.

      ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
      URLClassLoader classLoader = new URLClassLoader(
      new URL[] {fClazz.toURL()},oldLoader);

      I've already
      Although the File Object fClazz exists and is accessible by the appserver, I get