0 Replies Latest reply on Jul 30, 2003 9:59 AM by Pierre Monestie

    javassist with seesion bean

    Pierre Monestie Newbie

      Hi,
      I'm having problem getting javassist working from within a session bean where before my application worked on the command line. Seems like the jboss classloader mechanism confuses javassist.
      I do
      ClassPool pool = ClassPool.getDefault();
      ClassLoader cl= Thread.currentThread().getContextClassLoader().getParent();
      pool.insertClassPath(new LoaderClassPath(cl));

      When I try to request a class from classpool that was deployed in my ejb application I get a NoClassDefFoundError from ClassPool.

      What is the correct way of getting javassist to work correctly from a session/entity bean loaded through the jboss class loding mechanism?
      Thanks in advance...