-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
META-INF/MANIFEST.MF must include Dependencies: jdk.unsupported #808
Comments
Hi, ClassGraph already depends upon
If you need a different fix, it would be great if you could please figure out what exactly needs changing in ClassGraph, and please submit a PR. Thanks! |
From the stacktrace in that groups discussion:
This makes it look like |
Hi Luke, What do you mean as "repackage"? The The war application shouldn't care whether some library is using jdk.unsupported module. Ragarding the io.github.classgraph module export, the exception is in the I am not sure if providing /classgrath/src/module-info/nonapi/io/github/classgraph/utils/module-info.java is a right way. Kind regards, Dmitry |
OK, I'm adding all the dependencies that are specified in In the
Is the Specifically, the things I wanted to find in the documentation are:
|
I understand this is WIldFly specific:
Thinking again, maybe you are right and this shouldn't be in the classgraph's manifest ... |
I have no idea, can you test that please? Wildfly shouldn't need anything in the manifest if it is loading ClassGraph as a module, because those dependencies are in the module descriptor. You mention packages in your answer to question 1, then module names in your answer to question 2... I'll assume you meant module names in both cases.. Can you please link to the docs? |
Yes should be modules. Some documentation from IBM / RedHat: "Add a dependencies entry to the MANIFEST.MF file with a comma-separated list of dependency module names:"
I am afraid WildFly doesn't support java modules natively. For the moment I stick with putting Dependencies: into the WAR MANIFEST.MF. Kind regards, Dmitry |
OK, so I added all the other module dependencies too. Thanks! Fixed and released in 4.8.165. |
Hello,
Classgraph uses sun.misc.Unsafe which use is moved to jdk.unsupported module.
Latest WildFly builds (>=29) became quite strict in providing access to jdk.unsupported by default.
In my case I use eclipse/jnosql library which uses classgraph and without putting
Dependencies: jdk.unsupported
into the classgraph MANIFEST.MF deployment fails.Best,
Dmitry
https://groups.google.com/g/wildfly/c/V8zQOFwpym0
The text was updated successfully, but these errors were encountered: