On 05/04/2016 19:48, Mark Thomas wrote: > On 04/04/2016 18:01, Francesco Bassi wrote: >> Hello everybody. >> >> Tomcat 9 has a different behaviour than Tomcat 8, during the management of >> MessageHandler.onMessage: >> >> - in Tomcat 8: >> Thread.currentThread().getContextClassLoader() returns an instance of >> org.apache.catalina.loader.WebappClassLoader >> >> - in Tomcat 9 >> Thread.currentThread().getContextClassLoader() returns an instance of >> java.net.URLClassLoader >> (which doesn't resolve the WEB-INF/lib/* classes) >> >> It seems to be related to the switch to ParallelWebappClassLoader. >> Is it a bug or and intended behaviour? > > It looks like a bug. I need to dig deeper to figure out the root cause.
The root cause was the connector refactoring. This has been fixed in 9.0.x for 9.0.0.M5 onwards and 8.5.x for 8.5.1 onwards. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org