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

sonarqube 6.7.3 (LTS) and 7.1 - Fail to load plugin Asqatasun #2

Open
dzc34 opened this Issue Apr 29, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@dzc34
Copy link
Member

dzc34 commented Apr 29, 2018

see also: https://forum.asqatasun.org/t/sonarqube-plugin-for-asqatasun/459/4

Observed behaviour

2018.04.29 15:13:06 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2018.04.29 15:13:07 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Fail to load plugin Asqatasun [asqatasun]
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:88)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:582)
	at org.sonar.server.platform.Platform.start(Platform.java:211)
	at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:185)
	at org.sonar.server.platform.Platform.access$500(Platform.java:46)
	at org.sonar.server.platform.Platform$1.lambda$doRun$0(Platform.java:119)
	at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
	at org.sonar.server.platform.Platform$1.doRun(Platform.java:119)
	at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/batch/AbstractSourceImporter
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at org.sonar.classloader.ClassRealm.loadClassFromSelf(ClassRealm.java:125)
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:37)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	at org.sonar.plugins.asqatasun.AsqatasunPlugin.getExtensions(AsqatasunPlugin.java:63)
	at org.sonar.api.SonarPlugin.define(SonarPlugin.java:51)
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:78)
	... 9 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.sonar.api.batch.AbstractSourceImporter
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	... 25 common frames omitted

Your configuration

Docker / sonarqube:6.7.3

FROM sonarqube:6.7.3

# #### usage ######################################################
#
#   --- Building this docker image
#   docker build -t asqa_sonarqube_6.7.3 .
#
#   --- Launch a container
#   docker run -d --name asqa_sonar -p 9000:9000 -p 9092:9092 asqa_sonarqube_6.7.3
#
#   --- Playing with this docker image
#   docker exec -ti asqa_sonar /bin/bash
#   docker logs -f  asqa_sonar
#
#
#  https://hub.docker.com/r/library/sonarqube/
#  https://github.com/SonarSource/docker-sonarqube/blob/master/6.7.3/Dockerfile
###################################################################



# environment variables
ENV PLUGIN_VERSION="0.2.1-SNAPSHOT"

# Add contrast-finder .war
ADD sonar-asqatasun-${PLUGIN_VERSION}.jar  /opt/sonarqube/extensions/plugins
RUN chown -R sonarqube:sonarqube /opt/sonarqube/extensions/plugins

    # in "sonarqube:6.7.3" DockerFile
    #     ENTRYPOINT ["./bin/run.sh"]
    

@dzc34 dzc34 added the bug label Apr 29, 2018

@dzc34 dzc34 changed the title sonarqube 6.7.3 - Fail to load plugin Asqatasun sonarqube 6.7.3 (LTS) - Fail to load plugin Asqatasun Apr 29, 2018

@dzc34 dzc34 changed the title sonarqube 6.7.3 (LTS) - Fail to load plugin Asqatasun sonarqube 6.7.3 (LTS) and 7.1 - Fail to load plugin Asqatasun May 1, 2018

@dzc34 dzc34 added the help wanted label May 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment