doh! not only did i not mention which version i'm using, i also
mispoke... mondays...
so, i'm using the latest tomcat 4.0 out of cvs (co'd this morning).
also, it's in the servlet init method, *not* it's service method where
the thread is created.
when i get some time, i'm going to try and recreate this in a small
example that i can post.
-kevin.
kevin seguin wrote:
>
> i have a servlet that creates a thread in it's service method. this
> thread basically does a bunch of initialization stuff.
>
> when i add a load-on-startup element for this servlet in web.xml, it
> reports a NoClassDefFoundError on a class in the same package as the
> servlet.
>
> i have not seen this problem with any other load-on-startup servlets.
> the only difference is that this servlet kicks off a new thread.
>
> ideas? is this a bug, or just bad programming on my part (well, not
> really my part, but that's another story...)?
>
> i started to look through the startup/loader/class loader, but quickly
> got overwhelmed :)
>
> -kevin.