On Tue, 12 Sep 2000, Rafal Krzewski wrote:
> > I believe the problem is in BaseInitableBroker.java:223 wher
> > it goes
> > 
> >             try
> >             {
> >                 initable = (Initable)Class.forName(className).newInstance();
> >             }
> > 
> > The Class.forName is failing as it checks context
> > classloader and is not finding appropriate classes.
> 
> So? What's wrong with context loader? it has classes/ and all jars in lib/ in
> it's classpath...

nope they are seperate classloaders. Or at least they
*should* be according to spec :P. They have to be seperate
because WEB-INF/classes is reloadable (and thus has to be
disposable) while WEB-INF/lib is meant to be static. So the
disposable CL has a parent CL that is responsible for
WEB_INF/lib

>  
> > This is prolly because your classes are in WEB-INF/lib and
> > the turbine classes are in WEB-INF/classes or vice versa. It
> > always leaves me pulling out hair when that sort of thing
> > happens. Easieest solution is to unjar everything into
> > WEB-INF/classes - thou you may want to package it up
> > propperly when you release it as putting heaps in
> > WEB-INF/classes can cause odd behaviour.
> 
> I do have my classes (including custom services) in webapp/WEB-INF/classes and all
> the jars form the distribution including turbine-2.0.jar in webapp/WEB-INF/lib and
> everything is working just fine. I don't know how uncompressing jar influences 
> debugging (haven't done that yet) but I thaught that as far as the debuger can find
> the *source* files, it doesn't matter where the classes are loaded from.

But it can matter to the run time :P. CL issues always
irritate me and it usually takes me ages to track them down
- one of the reasons I use WEB-INF/lib for more of my stuff
if I can help it.

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |
*--------------------------------------------------*



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to