Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

panine
Copy link

@panine panine commented Oct 20, 2021

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.

sonar-plugin-api no longer provides the necessary XML libraries, resulting in
java.lang.NoClassDefFoundError: com/ctc/wstx/stax/WstxInputFactory
@CLAassistant
Copy link

CLAassistant commented Oct 20, 2021

CLA assistant check
All committers have signed the CLA.

@Tony-Proum
Copy link
Member

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/
Copy link
Member

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 🤔

Copy link
Author

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.

@josesa-xx
Copy link

We have recently upgraded sonar to version 9.9.1 and started seeing this problem.

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

Successfully merging this pull request may close these issues.

4 participants