tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50459] StandardContext.bindThread() and unbindThread() are not symmetrical and not limited to current thread
Date Mon, 13 Dec 2010 22:42:45 GMT

--- Comment #6 from Sylvain Laurent <> 2010-12-13 17:42:40
EST ---
Actually the TCCL is properly bound in DirContextURLStreamHandler#clBindings
when the application is started : DirContextURLStreamHandler.bind(ClassLoader,
DirContext) is called from WebappLoader.startInternal() which itself is called
during StandardContext.startInternal() ( rev 1044747 line

Before my fix, it was "pure luck" that the TCCL was still bound after
StandardContext.startInternal() : it only worked because the TCCL was reverted
_after_ calling DirContextURLStreamHandler.unbind() so that the latter tried to
remove a classloader that had not been bound previously, thus leaving the
webapp classloader properly bound.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message