*Issue*: I plan to use the Active Choices plugin. It has Scriptler as its 
dependency which in turn requires GIT Server. Upon installing GIT Server 
plugin jenkins fails to start with the following exception in the startup 
logs.

May 06, 2016 1:45:29 AM hudson.ExtensionFinder$Sezpoz _find
WARNING: Failed to load 
org.jenkinsci.plugins.scriptler.git.GitScriptlerRepository
java.lang.InstantiationException: java.lang.NoClassDefFoundError: 
org/jenkinsci/plugins/gitserver/FileBackedHttpGitRepository
at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:629)
at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:618)
at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:257)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:643)
at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:618)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.iterator(ExtensionList.java:156)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.iterator(ExtensionList.java:156)
at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1173)
at 
hudson.plugins.disk_usage.DiskUsageProperty.transitionAuth(DiskUsageProperty.java:444)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: 
org/jenkinsci/plugins/gitserver/FileBackedHttpGitRepository
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
at 
hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
at 
jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1120)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 34 more
Caused by: java.lang.ClassNotFoundException: 
org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 50 more

May 06, 2016 1:45:29 AM hudson.ExtensionFinder$Sezpoz _find
WARNING: Failed to load 
org.jenkinsci.plugins.scriptler.git.GitScriptlerRepositorySSHAccess
java.lang.InstantiationException: java.lang.NoClassDefFoundError: 
org/jenkinsci/plugins/gitserver/RepositoryResolver
at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:629)
at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:618)
at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:257)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:643)
at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:618)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.iterator(ExtensionList.java:156)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.iterator(ExtensionList.java:156)
at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1173)
at 
hudson.plugins.disk_usage.DiskUsageProperty.transitionAuth(DiskUsageProperty.java:444)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: 
org/jenkinsci/plugins/gitserver/RepositoryResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
at 
hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
at 
jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1120)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 34 more
Caused by: java.lang.ClassNotFoundException: 
org.jenkinsci.plugins.gitserver.RepositoryResolver
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 50 more


I had to remove the git-server plugin and its folder from the plugins 
location in order to restore jenkins. I have tried installing the '
git-userContent-plugin', that also throws the same exception. I am listing 
below the jenkins setup we have currently.

*Setup Info*:

   - *Jenkins version: 1.619*
   - *Pre-installed GIT plugins: Git client plugin (v1.19.4), Git plugin 
   (2.4.2)*
   - *OS: RHEL 6.6*
   - *Default GIT bundled with the OS:*
   
*# /usr/bin/git --version*

*git version 1.7.1*

   - *The same jenkins server also hosts our GIT Server, from GitLab.*
   

*# /opt/gitlab/embedded/bin/git --version*

*git version 2.4.3*

   - *Jenkins service account is configured to use the GitLab version of 
   GIT, as that version is required by the GIT client plugins to work.*
   

I am suspecting the multiple GIT installations is probably what is causing 
the issue, I will try to reproduce this setup in a test environment. Has 
anyone faced a similar issue? Request the group's assistance in helping me 
resolve this issue. 

I tried installing Active Choices with Scriptler, GIT Server and all other 
dependencies in a jenkins 2.0 test setup, it works flawlessly. If GitLab 
turns out to be a conflicting issue, I would request the systems team to 
move GitLab move to its own new server or a different server, but I will 
need to prove that. I believe it is a best practice anyway to have build 
server and version control servers on separate servers. We are primarily on 
SVN, but have recently started using Git for some new projects.

Thanks in advance!

- Vivek

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/aaa3f9b8-08e5-4f8f-9784-fe02268ff230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to