So I can also run this test correctly (without the commons-logging
source, just using the jar file) if I run it directly from the command
line, and not from within eclipse. Everything else works fine from
within Eclipse (using tons of things - including other parts of the
commons collection).
Can anyone think of any reason I'd be getting my problem only when
running from within Eclipse? I can be sure that I'm using the same
jvm in either case (made sure by fully qualifying the path to java.exe
when testing from the command line).
On 6/21/05, Jason Burrows <[EMAIL PROTECTED]> wrote:
> If I import the source directly into my project then I don't get this
> issue for my simple test (which makes it really hard to debug), but
> this isn't a reasonable solution for the real project I am working on.
>
> Does that information help at all? I can't really think of any good
> reason why this would be the case, unless there is some problem using
> the binaries with Java 5?
>
> Thanks
> Jason
>
>
> On 6/21/05, Jason Burrows <[EMAIL PROTECTED]> wrote:
> > > It would appear that the problem originates with ling 374 of
> > > LogFactoryImpl (release 1.0.4) which is this:
> > > logInterface = this.getClass().getClassLoader().loadClass
> > > (LOG_INTERFACE);
> > >
> > > As "this" cannot be null, and neither can this.getClass(), I would guess
> > > that getClassLoader is returning null.
> > >
> > > But that should only ever happen in JVM1.1, or in embedded systems where
> > > everything is being loaded via the bootclassloader.
> > >
> > > You aren't developing an embedded system are you?
> > >
> >
> > No - not an embedded system. Just running with JDK 1.5.0 with nothing
> > special or interesting being done to it. In fact, if I add a test to
> > check that out:
> >
> > if ( this.getClass().getClassLoader() == null){...} else {...}
> >
> > I can see that getClassLoader is not returning null (for my test class
> > anyway).
> >
> > Thanks
> > Jason
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]