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

Packaging of spring-context-support causes crowd plugin to prevent Jenkins starting properly

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • crowd-plugin
    • None
    • jenkins from version 1.502
      crowd 1.3-SNAPSHOT

      As described here: http://jenkins.361315.n4.nabble.com/Getting-NoSuchClassDefFoundError-for-ehcache-td391329.html, the spring-context-support JAR that is now (from version 1.502 on) packaged into the jenkins.war is loaded instead of the one from crowd/WEB-INF/lib. So it does not find classes from the ehcache JAR packaged only in the crowd/WEB-INF/lib.

      (see attached jenkins.log for complete stack trace)

      Two possible solutions:

      1. remove the spring-context-support JAR from jenkins.war/WEB-INF/lib
      2. switch class loader lookup order to search "plugin/WEB-INF/lib" first (this way it would be possible for plugin developers to override JARs delivered with the jenkins core)

      This issue prevents me from using the newest jenkins versions (starting from 1.502).

          [JENKINS-17288] Packaging of spring-context-support causes crowd plugin to prevent Jenkins starting properly

          René Zanner created issue -
          René Zanner made changes -
          Description Original: As described here: http://jenkins.361315.n4.nabble.com/Getting-NoSuchClassDefFoundError-for-ehcache-td391329.html, the spring-context-support JAR that is now (from version 1.502 on) packaged into the jenkins.war is loaded instead of the one from crowd/WEB-INF/lib. So it does not find classes from the ehcache JAR packaged only in the crowd/WEB-INF/lib.

          (see attached jenkins.log for complete stack trace)

          Two possible solutions:

          # remove the spring-context-support JAR from jenkins.war/WEB-INF/lib
          # switch class loader lookup order to search "plugin/WEB-INF/-ib" first (this way it would be possible for plugin developers to override JARs delivered with the jenkins core)

          This issue prevents me from using the newest jenkins versions (starting from 1.502).

          New: As described here: http://jenkins.361315.n4.nabble.com/Getting-NoSuchClassDefFoundError-for-ehcache-td391329.html, the spring-context-support JAR that is now (from version 1.502 on) packaged into the jenkins.war is loaded instead of the one from crowd/WEB-INF/lib. So it does not find classes from the ehcache JAR packaged only in the crowd/WEB-INF/lib.

          (see attached jenkins.log for complete stack trace)

          Two possible solutions:

          # remove the spring-context-support JAR from jenkins.war/WEB-INF/lib
          # switch class loader lookup order to search "plugin/WEB-INF/lib" first (this way it would be possible for plugin developers to override JARs delivered with the jenkins core)

          This issue prevents me from using the newest jenkins versions (starting from 1.502).

          I first encountered this problem in an upgrade to 1.497.

          Ruth Morgenstein added a comment - I first encountered this problem in an upgrade to 1.497.
          Ruth Morgenstein made changes -
          Assignee Original: rmangi [ rmangi ] New: Ruth Morgenstein [ rmorgenstein ]
          Ruth Morgenstein made changes -
          Assignee Original: Ruth Morgenstein [ rmorgenstein ] New: rmangi [ rmangi ]
          tapiomtr made changes -
          Attachment New: jenkins1.log [ 23696 ]

          Shane Farrell added a comment -

          Has anyone got any Jenkins LTS version beyond 1.480.2 to work? 1.480.2 seems to be the last LTS version that works with the crowd plugin.

          Shane Farrell added a comment - Has anyone got any Jenkins LTS version beyond 1.480.2 to work? 1.480.2 seems to be the last LTS version that works with the crowd plugin.

          tapiomtr added a comment -

          I got latest LTS Jenkins to work with the latest crowd pluging, but I have to delete spring-context-support JAR as the possible solutions 1. says.

          tapiomtr added a comment - I got latest LTS Jenkins to work with the latest crowd pluging, but I have to delete spring-context-support JAR as the possible solutions 1. says.

          Marc Günther added a comment -

          So is this a problem with core or with the crowd plugin?

          I don't understand the nabble link above. It is from 2009, and it seems the problem was FIXED at that time. So why has it suddenly resurfaced? Can we apply the same "fix" again?

          Why was that jar file included again? Maybe related to this commit? (which is from 6 months ago):
          https://github.com/jenkinsci/jenkins/commit/e52c7efa997534e31526d1ba0ae80ea560619fc9

          Marc Günther added a comment - So is this a problem with core or with the crowd plugin? I don't understand the nabble link above. It is from 2009, and it seems the problem was FIXED at that time. So why has it suddenly resurfaced? Can we apply the same "fix" again? Why was that jar file included again? Maybe related to this commit? (which is from 6 months ago): https://github.com/jenkinsci/jenkins/commit/e52c7efa997534e31526d1ba0ae80ea560619fc9

          C2PA IT added a comment -

          Anyone know if this is going to be fixed by chance or if we just need to plan on implementing the workarounds in the future?

          C2PA IT added a comment - Anyone know if this is going to be fixed by chance or if we just need to plan on implementing the workarounds in the future?

            rmangi rmangi
            rzanner René Zanner
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: