Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLDSCanner is not loading system TLDs in Java 11.0.1 #2

Open
bpcrao opened this issue Mar 19, 2019 · 2 comments
Open

TLDSCanner is not loading system TLDs in Java 11.0.1 #2

bpcrao opened this issue Mar 19, 2019 · 2 comments

Comments

@bpcrao
Copy link

bpcrao commented Mar 19, 2019

The system tlds are skipped in few scenarios
the only option is the class loader has to be URLClassLoader which is not the case is Java 11 and hence fails

https://stackoverflow.com/questions/55031222/java-11-tldscanner-not-loading-system-tlds

@markt-asf markt-asf transferred this issue from jakartaee/pages Dec 23, 2020
@Thihup
Copy link

Thihup commented Dec 23, 2020

Piranha uses a custom classloader, so it doesn't work with it either

@arjantijms
Copy link
Contributor

I added the context attribute org.glassfish.wasp.useMultiJarScanAlgo which selects the more powerful scanner as of 566ac7d. I tested this with JDK 15 and the latest Piranha, and there it works now.

@bpcrao can you test if this also works for you know, if you're still interested in this after all this time.

Next to the more powerful scanner we could also provide an additional SPI for the scanning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants