Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39591

Unable to find Role-Based Strategy under Configure Global Security

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Even after installing the plugin, unable to find the Role-Based Strategy option under Jenkins --> Manage Jenkins --> Configure Global Security --> Authorization

      I am using Jenkins' own db for the Security realm with allows users to sign up set to false.

        Attachments

          Activity

          Hide
          jenkinscons Sud Arav added a comment -

          Thanks Oleg. After installing the Matrix-Auth plugin, I am able to see the Matrix-based security as well as Project-based matrix authorisation strategy.
          But I am still not finding the option of "Role-Based Strategy" under Authorization because the Role-Strategy plugin is not able to get initialised as it is not able to find some jar files that should ideally be there in the core? . I have provided below the Jenkins Startup logs for your reference. Can you please suggest?
          It would be really helpful for me if the Role-Based Strategy works for me.

          Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz scout
          Failed to scout com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:656)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:465)
          at hudson.ExtensionList.load(ExtensionList.java:349)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
          at hudson.ExtensionList.getComponents(ExtensionList.java:167)
          at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017)
          at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
          at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Unknown Source)
          at java.lang.Class.getField0(Unknown Source)
          at java.lang.Class.getField(Unknown Source)
          at net.java.sezpoz.IndexItem.element(IndexItem.java:138)
          ... 13 more
          Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          ... 30 more

          Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz _find
          Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:257)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.lang.Class.newInstance(Unknown Source)
          at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471)
          at hudson.ExtensionList.load(ExtensionList.java:349)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
          at hudson.ExtensionList.getComponents(ExtensionList.java:167)
          at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017)
          at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
          at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Unknown Source)
          at java.lang.Class.getField0(Unknown Source)
          at java.lang.Class.getField(Unknown Source)
          at net.java.sezpoz.IndexItem.element(IndexItem.java:138)
          ... 23 more
          Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          ... 40 more

          Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz _find
          Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:275)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.lang.Class.newInstance(Unknown Source)
          at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471)
          at hudson.ExtensionList.load(ExtensionList.java:349)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
          at hudson.ExtensionList.getComponents(ExtensionList.java:167)
          at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017)
          at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
          at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Unknown Source)
          at java.lang.Class.getField0(Unknown Source)
          at java.lang.Class.getField(Unknown Source)
          at net.java.sezpoz.IndexItem.element(IndexItem.java:138)
          ... 23 more
          Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          ... 40 more

          Nov 18, 2016 4:47:37 PM WARNING hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
          Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:499)
          at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
          at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230)
          at com.google.inject.spi.Elements.getElements(Elements.java:103)
          at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
          at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
          at com.google.inject.Guice.createInjector(Guice.java:96)
          at com.google.inject.Guice.createInjector(Guice.java:73)
          at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:280)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.lang.Class.newInstance(Unknown Source)
          at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471)
          at hudson.ExtensionList.load(ExtensionList.java:349)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
          at hudson.ExtensionList.getComponents(ExtensionList.java:167)
          at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017)
          at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
          at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Unknown Source)
          at java.lang.Class.getField0(Unknown Source)
          at java.lang.Class.getField(Unknown Source)
          at net.java.sezpoz.IndexItem.element(IndexItem.java:138)
          ... 29 more
          Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          ... 46 more

          Nov 18, 2016 4:47:38 PM WARNING hudson.ExtensionFinder$Sezpoz _find
          Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609)
          at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471)
          at hudson.ExtensionList.load(ExtensionList.java:349)
          at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
          at hudson.ExtensionList.getComponents(ExtensionList.java:167)
          at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017)
          at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
          at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Unknown Source)
          at java.lang.Class.getField0(Unknown Source)
          at java.lang.Class.getField(Unknown Source)
          at net.java.sezpoz.IndexItem.element(IndexItem.java:138)
          ... 14 more
          Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
          at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
          ... 31 more

          Show
          jenkinscons Sud Arav added a comment - Thanks Oleg. After installing the Matrix-Auth plugin, I am able to see the Matrix-based security as well as Project-based matrix authorisation strategy. But I am still not finding the option of "Role-Based Strategy" under Authorization because the Role-Strategy plugin is not able to get initialised as it is not able to find some jar files that should ideally be there in the core? . I have provided below the Jenkins Startup logs for your reference. Can you please suggest? It would be really helpful for me if the Role-Based Strategy works for me. Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz scout Failed to scout com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:656) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:465) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017) at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104) at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:138) ... 13 more Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) ... 30 more Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz _find Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:257) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.java.sezpoz.IndexItem.instance(IndexItem.java:181) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017) at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104) at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:138) ... 23 more Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) ... 40 more Nov 18, 2016 4:47:36 PM WARNING hudson.ExtensionFinder$Sezpoz _find Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:275) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.java.sezpoz.IndexItem.instance(IndexItem.java:181) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017) at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104) at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:138) ... 23 more Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) ... 40 more Nov 18, 2016 4:47:37 PM WARNING hudson.ExtensionFinder$GuiceFinder$SezpozModule configure Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.configure(ExtensionFinder.java:499) at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:230) at com.google.inject.spi.Elements.getElements(Elements.java:103) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104) at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:280) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.java.sezpoz.IndexItem.instance(IndexItem.java:181) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:634) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017) at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104) at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:138) ... 29 more Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) ... 46 more Nov 18, 2016 4:47:38 PM WARNING hudson.ExtensionFinder$Sezpoz _find Failed to load com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:620) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:609) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:471) at hudson.ExtensionList.load(ExtensionList.java:349) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287) at hudson.ExtensionList.getComponents(ExtensionList.java:167) at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1017) at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:80) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104) at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: hudson/security/GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:138) ... 14 more Caused by: java.lang.ClassNotFoundException: hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) ... 31 more
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Have you tried restarting after the plugin installation?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Have you tried restarting after the plugin installation?
          Hide
          jenkinscons Sud Arav added a comment -

          Yes, the logs posted above are after restarting Jenkins ...

          Show
          jenkinscons Sud Arav added a comment - Yes, the logs posted above are after restarting Jenkins ...
          Hide
          whitehotentropy John Swonson added a comment -

          I'm also having these issues with Jenkins 2.32.1. I have the Matrix-Auth plugin installed. It doesn't appear after multiple restarts.

          However I can manually navigate it by pasting <Jenkins_URL>/role-strategy/ into a web browser. I have not tested if this works however.

          Show
          whitehotentropy John Swonson added a comment - I'm also having these issues with Jenkins 2.32.1. I have the Matrix-Auth plugin installed. It doesn't appear after multiple restarts. However I can manually navigate it by pasting <Jenkins_URL>/role-strategy/ into a web browser. I have not tested if this works however.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          This issue happens due to the dependency on Matrix Auth Plugin, which has been somehow uninstalled/disabled on the reported instances. Maybe there was a glitch in the detached plugin handling. Starting from 2.4.0 the plugin depends on the newer core and declare an explicit dependency, hence it should not happen anymore (or you will see administrative warnings).

          Show
          oleg_nenashev Oleg Nenashev added a comment - This issue happens due to the dependency on Matrix Auth Plugin, which has been somehow uninstalled/disabled on the reported instances. Maybe there was a glitch in the detached plugin handling. Starting from 2.4.0 the plugin depends on the newer core and declare an explicit dependency, hence it should not happen anymore (or you will see administrative warnings).

            People

            Assignee:
            oleg_nenashev Oleg Nenashev
            Reporter:
            jenkinscons Sud Arav
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: