-
Notifications
You must be signed in to change notification settings - Fork 48
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
ElasticsearchLogsRetriever: ClassCastException: class org.glassfish.json.JsonProviderImpl cannot be cast to class jakarta.json.spi.JsonProvider #322
Comments
Jenkins Groovy console script ArrayList classesToLocate =[
"jakarta.json.spi.JsonProvider",
"javax.json.spi.JsonProvider",
"org.glassfish.json.JsonProviderImpl"]
for (String classToLocate: classesToLocate) {
try {
println(classToLocate + ": " + Class.forName(classToLocate).getProtectionDomain().getCodeSource().getLocation().getPath())
} catch (ClassNotFoundException e) {
println(classToLocate + ": " + e)
}
} |
When I remove the dependency
|
In the SAML plugin, I have faced a similar issue that I resolved here https://github.com/jenkinsci/saml-plugin/blob/main/src/main/java/org/jenkinsci/plugins/saml/OpenSAMLWrapper.java#L58-L77 |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Latest
Reproduction steps
Expected Results
PAge renders retrieving logs from Elasticsearch
Actual Results
Anything else?
No response
The text was updated successfully, but these errors were encountered: