-
Notifications
You must be signed in to change notification settings - Fork 23
NoClassDefFoundError after upgrading to SonarQube 9 #55
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
base: master
Are you sure you want to change the base?
Conversation
sonar-plugin-api no longer provides the necessary XML libraries, resulting in java.lang.NoClassDefFoundError: com/ctc/wstx/stax/WstxInputFactory
Hi thank you for your update, I will test it soon to see if we can merger it. Sorry for the delay ! |
Dockerfile
Outdated
COPY target/sonar-clover-plugin.jar /opt/sonarqube/extensions/plugins/ | ||
ADD https://github.com/Inform-Software/sonar-groovy/releases/download/1.8/sonar-groovy-plugin-1.8.jar /opt/sonarqube/extensions/plugins/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that we can use an external lib. maybe should it be included in our own jar 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why I added the sonar-groovy-plugin, but I found something I believed was caused by the missing registration of the grvy language code.
I've tried to recreate the problem, but I can't, so it's not needed after all.
I'll remove it and amend the PR.
We have recently upgraded sonar to version 9.9.1 and started seeing this problem. |
sonar-plugin-api no longer provides the necessary XML libraries, resulting in
java.lang.NoClassDefFoundError: com/ctc/wstx/stax/WstxInputFactory
We have this code running in production, and so far no complaints.
As you will see, this PR also adresses the issue regarding the groovy grvy language code. It was simply a matter of activating the sonar-groovy plugin in the test sonarqube.