Hi,

On Tue, Apr 7, 2020 at 9:01 AM Jackson Ong <83cl...@gmail.com> wrote:

> We have an webapp running fine on Tomcat 8.5.50 and below and we used a
> custom WebappClassLoader to load jars (common path for jars), but it failed
> to load on Tomcat 8.5.51 and above. Upon checking, we noticed that
>

Which versions of "above" you have tried ?
Because there was a regression with SCI recently that have been fixed in
8.5.53 (I think. Better check the changelogs).
8.5.54 is being tested at the moment and if no issues are found it will be
released in the next few days.

Martin


> javax.servlet.ServletContainerInitializer that we defined in the jar is not
> being loaded.
>
> From org.apache.catalina.startup.WebappServiceLoader source code of Tomcat
> 8.5.51, the classLoader was changed from servletContext.getClassloader()
> (Tomcat 8.5.50 line 97) to context.getParentClassLoader() (Tomcat 8.5.51
> line 144)
>
> However placing the jar at WEB-INF/lib it was able to load
> javax.servlet.ServletContainerInitializer. The problem is when the jar is
> outside of WEB-INF/lib or common path (/opt/client/libraries/test.jar).
>
> Thanks
>

Reply via email to