tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <>
Subject Re: Classloader weirdities
Date Tue, 04 Sep 2001 07:09:34 GMT
> Remy Maucherat wrote:
> > What is not working with the latest sources ?
> It is quite bizarre really. I am using the EmbeddedManager MBean, and
> when I call "start" nothing happens. No listener is started. As a
> side-effect I can't test much of anything. Going back to T4b7 makes it
> work again.

If it really does nothing now and it was ok in b7, maybe it's also a
regression caused by a new feature Craig introduced (the new CATALINA_BASE
property). I had trouble with that and my service stuff.

I'll look into it.

> > The message is quite vague, could I get more details ?
> I will commit what I have now to JBoss CVS so you can try it out for
> yourself.


> > > Any ideas? Could this possible be related to this thread that I found
> > > the archives:
> > >
> >
> > When reloading a context, the old classloader is dumped, and a new one
> > created. Catalina doesn't internally keep any references on objects
> > instantiated by the old CL, but it's up to you to do the same.
> Well, I assumed that that was the case, but that is not what is
> happening. The old stuff is retained.

Well, we do nothing more than unreferencing the old CL, clearing /
recreating the servlet context, and destroy / unload / load / init all
servlets and filters. So it's fully possible to have objects instatiated
from the old CL if you keep the references.

> So, I will commit what I have now into the "contrib" JBoss CVS module
> (/catalina subdirectory). Get it from there. Any help would be
> appreciated.



View raw message