> Moving things from Tomcat's internal classes (any version) into your
> /WEB-INF/lib is *not* going to work.
>
> What are you trying to accomplish that the standard class loading model
> does not support? Just saying "I want to use a classloader inside my
> servlet" does not help much in getting useful suggestions.
>
> > Thanks in advance
> > Jochen
>
> Craig McClanahan
I'm trying to allow my servlet to download classes from another server via
RMI and to use those classes. The problem now is that when I downloaded the
classes and I try to define the class via the ClassLoader the ClassLoader
tells me that it can't find the required interface classes (which are stored
in the jars inside the WEB-INF/lib directory). By looking through your
archive I found the following post:
http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00096.html
*snip*
>
> Am I just screwed or is there some cool trick that I am missing? Of course
> I could change the deployment scheme to put a copy of the dispatcher
> servlet into each apps WE-INF/classes, but this seems a bit clunky.
>
It's not clunky -- its required by virtue of the fact that classloaders know
how to delegate upwards but not downwards. For lots of security related
reasons, that is actually a Good Thing.
*snip*
Is this post wrong and is there another sollution?
And if not: which of all those classes is the "dispatcher servlet"?
Thx
Jochen