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

ClassNotFoundException: org.apache.commons.digester.Digester

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: tfs-plugin
    • Labels:
      None
    • Environment:
      Windows, Java 8
    • Similar Issues:

      Description

      After upgrade jenkins from 2.296 to 2.297. I receive on job start immediately (caused by tfs plugin):

       

      Finished getting version 'C10001'. Retrieved 0 resources.Finished getting version 'C10001'. Retrieved 0 resources.FATAL: org/apache/commons/digester/Digesterjava.lang.ClassNotFoundException: org.apache.commons.digester.Digester at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1394) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1349) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1095) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)Caused: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at hudson.plugins.tfs.TeamFoundationServerScm.createChangeLogParser(TeamFoundationServerScm.java:495) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:650) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:511) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:148) at hudson.model.Run.execute(Run.java:1912) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:76) at hudson.model.ResourceController.execute(ResourceController.java:100) at hudson.model.Executor.run(Executor.java:433)[Resharper Inspections] Skipping execution of recorder since overall result is 'FAILURE'
      

       

        Attachments

          Issue Links

            Activity

            Hide
            odklizec Pavel Kudrys added a comment - - edited

            Hi,

            It's because of this breaking change:
            https://www.jenkins.io/blog/2021/06/04/digester-removal/

            The thing is, that TFS plugin is deprecated and no longer distributed or supported. So there will be no "fix" for this and the only solution seems to be going back to 2.296.

            Show
            odklizec Pavel Kudrys added a comment - - edited Hi, It's because of this breaking change: https://www.jenkins.io/blog/2021/06/04/digester-removal/ The thing is, that TFS plugin is deprecated and no longer distributed or supported. So there will be no "fix" for this and the only solution seems to be going back to 2.296.
            Hide
            basil Basil Crow added a comment -

            Duplicates JENKINS-64241 (see also INFRA-2751). Pavel Kudrys is correct: the Team Foundation Server (TFS) plugin has issues with the Jenkins configuration form modernization, two known security issues, and no maintainer.

            If you have a TFS installation, you are encouraged to consider becoming a maintainer. There are many users that will be very grateful to have someone fix the security issues, modernize the configuration form use inside the plugin, and update the plugin to adapt to the Digester removal from Jenkins core.

            If you don't have a TFS installation, you should remove the plugin.

            You can also stay with an older version of Jenkins core if the TFS plugin is critical for your use case.

            Show
            basil Basil Crow added a comment - Duplicates JENKINS-64241 (see also INFRA-2751 ). Pavel Kudrys is correct: the Team Foundation Server (TFS) plugin has issues with the Jenkins configuration form modernization, two known security issues, and no maintainer. If you have a TFS installation, you are encouraged to consider becoming a maintainer. There are many users that will be very grateful to have someone fix the security issues, modernize the configuration form use inside the plugin, and update the plugin to adapt to the Digester removal from Jenkins core. If you don't have a TFS installation, you should remove the plugin. You can also stay with an older version of Jenkins core if the TFS plugin is critical for your use case.
            Hide
            glevy Gilad added a comment -

            Ronny Borchert,

            I faced the same issue and managed to fix and build it locally.

            You can find it here:
            https://github.com/glevy/tfs-plugin/commit/2680aafd952dddbf6725f1f91d6148cc21f7ff47

            I couldn't open a PR on the original repo as I don't have permissions.

            Show
            glevy Gilad added a comment - Ronny Borchert , I faced the same issue and managed to fix and build it locally. You can find it here: https://github.com/glevy/tfs-plugin/commit/2680aafd952dddbf6725f1f91d6148cc21f7ff47 I couldn't open a PR on the original repo as I don't have permissions.
            Hide
            ianw Ian Williams added a comment -

            Basil Crow, You marked this JIRA is "resolved. Duplicates JENKINS-64241

            This stacktrace related is to""

            FATAL: org/apache/commons/digester/Digesterjava.lang.ClassNotFoundException: org.apache.commons.digester.Digester at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1394

            While the other is:
            {{}}

            {{WARNING hudson.model.Job#doConfigSubmit: failed to parse }}
            Unknown macro: {"description"}
            net.sf.json.JSONException: JSONObject["hudson-triggers-SCMTrigger"] is not a JSONObject.
            at net.sf.json.JSONObject.getJSONObject(JSONObject.java:2006)

            Gilad also appears to have a change tied to this directly related to resolving the commons-digester2 issue.

            This does not seem to be duplicate at all. Why is it marked as such? Error?

            Show
            ianw Ian Williams added a comment - Basil Crow , You marked this JIRA is "resolved. Duplicates JENKINS-64241 This stacktrace related is to"" FATAL: org/apache/commons/digester/Digesterjava.lang.ClassNotFoundException: org.apache.commons.digester.Digester at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1394 While the other is: {{}} {{WARNING hudson.model.Job#doConfigSubmit: failed to parse }} Unknown macro: {"description"} net.sf.json.JSONException: JSONObject ["hudson-triggers-SCMTrigger"] is not a JSONObject. at net.sf.json.JSONObject.getJSONObject(JSONObject.java:2006) Gilad also appears to have a change tied to this directly related to resolving the commons-digester2 issue. This does not seem to be duplicate at all. Why is it marked as such? Error?

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              arbeita Ronny Borchert
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: