You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Francesco Bassi <fv...@gmail.com> on 2016/04/04 19:01:55 UTC
Tomcat 9.0.0M4 (and trunk) issue with Websockets (bug?)
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?
Thanks,
--fb
Re: Tomcat 9.0.0M4 (and trunk) issue with Websockets (bug?)
Posted by Mark Thomas <ma...@apache.org>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 9.0.0M4 (and trunk) issue with Websockets (bug?)
Posted by Mark Thomas <ma...@apache.org>.
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.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org