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

Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: com/ctc/wstx/stax/WstxInputFactory #60

Open
eshwarkarthikn opened this issue Aug 1, 2023 · 2 comments

Comments

@eshwarkarthikn
Copy link

eshwarkarthikn commented Aug 1, 2023

Hi,

We are getting the missing class exception after upgrading SonarQube version to 9.9 LTS. We have also tried the workaround provided in the github page but we still see the same issue. Could you please help us providing the fix for this?

Logs:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: com/ctc/wstx/stax/WstxInputFactory
14:28:47 [ERROR] -----------------------------------------------------
14:28:47 [ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:3.9.1.2184
14:28:47 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
14:28:47 [ERROR] urls[0] = file:/root/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/3.9.1.2184/sonar-maven-plugin-3.9.1.2184.jar
14:28:47 [ERROR] urls[1] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
14:28:47 [ERROR] urls[2] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
14:28:47 [ERROR] urls[3] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar
14:28:47 [ERROR] urls[4] = file:/root/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.16.2.588/sonar-scanner-api-2.16.2.588.jar
14:28:47 [ERROR] urls[5] = file:/root/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
14:28:47 [ERROR] Number of foreign imports: 1
14:28:47 [ERROR]
14:28:47 [ERROR] -----------------------------------------------------
14:28:47 [ERROR] : com.ctc.wstx.stax.WstxInputFactory
14:28:47 [ERROR] -> [Help 1]
14:28:47 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: com/ctc/wstx/stax/WstxInputFactory
14:28:47 -----------------------------------------------------
14:28:47 realm = plugin>org.codehaus.mojo:sonar-maven-plugin:3.9.1.2184
14:28:47 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
14:28:47 urls[0] = file:/root/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/3.9.1.2184/sonar-maven-plugin-3.9.1.2184.jar
14:28:47 urls[1] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
14:28:47 urls[2] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
14:28:47 urls[3] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.2.1/plexus-utils-3.2.1.jar
14:28:47 urls[4] = file:/root/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.16.2.588/sonar-scanner-api-2.16.2.588.jar
14:28:47 urls[5] = file:/root/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
14:28:47 Number of foreign imports: 1
14:28:47
14:28:47 -----------------------------------------------------
14:28:47
14:28:47 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
14:28:47 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
14:28:47 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
14:28:47 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
14:28:47 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
14:28:47 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
14:28:47 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
14:28:47 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
14:28:47 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
14:28:47 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
14:28:47 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
14:28:47 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
14:28:47 at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
14:28:47 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
14:28:47 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
14:28:47 at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
14:28:47 at java.lang.reflect.Method.invoke (Method.java:566)
14:28:47 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
14:28:47 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
14:28:47 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
14:28:47 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
14:28:47 Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: com/ctc/wstx/stax/WstxInputFactory
14:28:47 -----------------------------------------------------
@ehartmann @Godin @dgageot @julienlancelot

@julienlancelot
Copy link

Hi,
Please report this issue on the SonarQube community channel here.
Thanks!

@josesa-xx
Copy link

This is a duplicate of #52

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