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

CLIF plugin does not load with java.lang.NoClassDefFoundError for class org/apache/commons/fileupload/FileItemFactory

      Trying to install plug-in clif-performance-testing fails. Logs report the following stack trace:

      2025-01-10 16:24:20.734+0000 [id=255] WARNING h.ExtensionFinder$GuiceFinder$SezpozModule#configure: Failed to load org.ow2.clif.jenkins.ImportZipAction
      java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory
      at java.base/java.net.URLClassLoader.findClass(Unknown Source)
      at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)
      at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      Caused: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
      [...]

          [JENKINS-75110] CLIF plugin does not load with java.lang.NoClassDefFoundError for class org/apache/commons/fileupload/FileItemFactory

          Bruno Dillenseger added a comment - - edited

          Actually this issue seems to be bound to the upgrade to [Apache commons upload 2|
          https://commons.apache.org/proper/commons-fileupload/migration.html] enforced by Jenkins as of version 2.462.1

          So the best solution is to upgrade Apache commons upload to version 2.

          Bruno Dillenseger added a comment - - edited Actually this issue seems to be bound to the upgrade to [Apache commons upload 2| https://commons.apache.org/proper/commons-fileupload/migration.html ] enforced by Jenkins as of version 2.462.1 So the best solution is to upgrade Apache commons upload to version 2.

          This issue will be fixed by JENKINS-75120

          Bruno Dillenseger added a comment - This issue will be fixed by JENKINS-75120

            dillense Bruno Dillenseger
            dillense Bruno Dillenseger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: