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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: crowd-plugin
    • Labels:
      None
    • Environment:
      jenkins from version 1.502
      crowd 1.3-SNAPSHOT
    • Similar Issues:

      Description

      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).

        Attachments

          Activity

          rzanner rzanner created issue -
          rzanner rzanner made changes -
          Field Original Value New Value
          Description 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).

          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).

          rmorgenstein Ruth Morgenstein made changes -
          Assignee rmangi [ rmangi ] Ruth Morgenstein [ rmorgenstein ]
          rmorgenstein Ruth Morgenstein made changes -
          Assignee Ruth Morgenstein [ rmorgenstein ] rmangi [ rmangi ]
          tapiomtr tapiomtr made changes -
          Attachment jenkins1.log [ 23696 ]
          danielbeck Daniel Beck made changes -
          Component/s core [ 15593 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 148122 ] JNJira + In-Review [ 177096 ]

            People

            Assignee:
            rmangi rmangi
            Reporter:
            rzanner rzanner
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated: