https://issues.apache.org/bugzilla/show_bug.cgi?id=50459

--- Comment #6 from Sylvain Laurent <sylvain.laur...@gmail.com> 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() (StandardContext.java rev 1044747 line
4863)

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to