I am sorry for not following the template of Bug report.
I found why this error will occur in WebSocketServletFactory#Loader
// This code will occur error
Class<? extends WebSocketServletFactory> wsClazz = (Class<? extends WebSocketServletFactory>) Class.forName(DEFAULT_IMPL,true,Thread.currentThread().getContextClassLoader());
// This code won't error
Class<? extends WebSocketServletFactory> wsClazz = (Class<? extends WebSocketServletFactory>) Class.forName(DEFAULT_IMPL);
These two differences are whether Thread.currentThread().getContextClassLoader() does not walk.
I am sorry for not following the template of Bug report.
I found why this error will occur in WebSocketServletFactory#Loader
These two differences are whether
Thread.currentThread().getContextClassLoader()does not walk.