Note that you are actually loading the JARs twice which means that you
might have two versions of the same classses loaded, not only of the
resources. Is this intentional? I still don't know what you want to
achieve with your class loader and module layer.
Am 02.01.2021 um 21:06 schrieb Thiago
Yes, the parent loader locates two resources and it is used in the
defineModulesWithOneLoader.
So the behavior is the following:
module-a.jar -> META-INF/web-fragment.xml
module-b.jar -> META-INF/web-fragment.xml
Creating a URLClassloader with these two jars and calling the getResources,
it retur
On 02/01/2021 12:59, Thiago Henrique Hupner wrote:
I guess a little context can make more things clear:
The servlet spec requires that all jars from WEB-INF/lib
be available to the same classloader.
The resource, in particular, is "META-INF/web-fragment.xml"
Each jar can contain its own. So, usin
As an aside, creating a FileSystem is not an onerous task.
https://stackoverflow.com/questions/22966176/creating-a-custom-filesystem-implementation-in-java
Cheers,
— Jim
📱
> On Jan 2, 2021, at 8:59 AM, Thiago Henrique Hupner wrote:
>
> I guess a little context can make more things clear:
>
I guess a little context can make more things clear:
The servlet spec requires that all jars from WEB-INF/lib
be available to the same classloader.
The resource, in particular, is "META-INF/web-fragment.xml"
Each jar can contain its own. So, using getResources make sense
in order of parsing each. H