You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2022/04/22 13:13:27 UTC

[Bug 66025] WebappClassLoaderBase.getResources() needs partial replacements

https://bz.apache.org/bugzilla/show_bug.cgi?id=66025

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
No, you are not supposed to access any of these internal APIs like this in the
first place.

This is exactly the problem we were facing: a call on the classloader (a
conveniently always available resource) happened to give access to internals.
So it had to be removed without warning when it became possible to use it with
remote scripting (in some specific cases involving Spring).

Maybe use a (Catalina) listener, populate Servlet context attributes with what
you need ?

Anyway, you should discuss it on the use list.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org