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

--- Comment #2 from keesvandie...@gmail.com ---
Hi, thank for your quick reaction.

I have a pointer there: grpc-netty-shaded is a 'fat jar' which means that it
has included (code of) many other jars. The JAR file itself is located here: 
 https://search.maven.org/artifact/io.grpc/grpc-netty-shaded/1.39.0/jar it is 8
MB.

When I configure the StandardJarScanFilter like so, my problem is gone:

    StandardJarScanFilter standardJarScanFilter = new StandardJarScanFilter();
    standardJarScanFilter.setTldSkip("*grpc*.jar");
    standardJarScanFilter.setPluggabilitySkip("*grpc*.jar");
    return standardJarScanFilter;


FYI what I tried to achieve, is to have web-fragments from Maven dependencies
of tomcat-embedded added to my own in-module web.xml while using Embedded
Tomcat. This doesn't work, as the code assumes (correctly) that only webapp
(WEB-INF/lib) jars should be scanned for fragments (assumed by
StandardJarScanner).

I assume GRPC is also manipulating class-loaders, and that is the cause this
issue pops up.

I think you can close the issue, as it is probably caused by some external
class-loaders doing magic with fat-jars. If you still want Tomcat to support
this use-case, I can create reproduction project but I assume it is not Tomcats
fault, so we can close issue.

Thank for your time.

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

Reply via email to