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

Error with the plugin using 1.0-SNAPSHOT.jar #4

Open
GoMDTerps opened this issue Jun 14, 2016 · 2 comments
Open

Error with the plugin using 1.0-SNAPSHOT.jar #4

GoMDTerps opened this issue Jun 14, 2016 · 2 comments

Comments

@GoMDTerps
Copy link

Seeing this in the sonar.log
2016.06.14 16:33:50 ERROR web[rails] Error from external users provider: exception Java::JavaLang::UnsatisfiedLinkError: Unable to load library 'Advapi32': Native library (linux-x86-64/libAdvapi32.so) not found in resource path ([file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/sonar-activedirectory-plugin-1.0-SNAPSHOT.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/active-directory-1.0.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/ado20-1.0.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/com4j-2.1.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/commons-lang-2.6.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/guava-18.0.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/jcl-over-slf4j-1.7.12.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/jna-4.1.0.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/jna-platform-4.1.0.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/slf4j-api-1.7.12.jar, file:/opt/sonar/sonarqube-5.6/data/web/deploy/plugins/activedirectory/META-INF/lib/waffle-jna-1.8.0.jar])
2016.06.14 16:34:06 ERROR web[rails] Error from external users provider: exception Java::JavaLang::NoClassDefFoundError: Could not initialize class com.sun.jna.platform.win32.Advapi32

@IGx89
Copy link

IGx89 commented Jun 14, 2016

Those look like Linux paths -- are you running Sonarqube under Linux? This plugin only supports Windows I believe, which if so would explain the error about not finding a win32 class. The plugin docs don't explicitly say Windows is required -- they should -- but under # 3 it says Sonarqube must be running as a "NT service" which would rule out Linux.

If you aren't running under Linux then apologies, please ignore this comment :)

@GoMDTerps
Copy link
Author

Thanks for the response. I am using Linux as you astutely pointed out. So if this is windows only, are SonarQube users who put this on a Linux box not able to use AD anymore? Because the LDAP plugin shows in the logs that it is working, but the user accounts no longer pull. I suspect that Linux systems are screwed at the moment. :(

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

2 participants