Github user rmannibucau commented on the issue:
https://github.com/apache/tomee/pull/176
well some thoughts:
1. most of the time we dont need this dynamism so maybe we can just rework
the distro and delete it
2. we already hack equals/hashcode in cxf container loader but it is not
super robust (this is why we have a flag to disable it) so maybe not the best
solution but current impl clearly breaks some apps
3. you can open java modules to get the URLClassPath, even of the system
classloader in j11 so maybe we just document how to open it and replace the
cast by some reflection?
---