Scott M Stark wrote:
> Any class loaded from the standard WEB-INF/classes or 
> WEB-INF/lib/*.jar
> is certain to be loaded by the servlet war class loader. At 
> what point are
> you trying to do the reflection, and how are you loading the 
> class? I would
> expect that using the thread context class loader should work:
> 
>     public void init() throws ServletException
>     {
>         ClassLoader loader = 
> Thread.currentThread().getContextClassLoader();
>         Class clazz = loader.loadClass("myClass");
>         ...
>     }

Using the thread's context ClassLoader worked fine. Thanks for the help.

Robert.

-- 
                 "Software is too expensive to build cheaply"
  Robert Watkins           Software Engineer           QSI Payments Inc.
  [EMAIL PROTECTED]                 [EMAIL PROTECTED]
 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to