Upgrading to 1.580.2.1 throws NoClassDefFoundError: Lorg.eclipse.jgit.http.server.GitServlet

Article ID:203780664
1 minute readKnowledge base

Issue

  • Upgrading to 1.580.2.1 does not start.

  • Caused by: java.lang.NoClassDefFoundError: Lorg/eclipse/jgit/http/server/GitServlet;

Environment

  • CloudBees Jenkins Enterprise - 1.580.2.1

Resolution

As of 1.580.x.y, CloudBees Jenkins Enterprise is packaged with the Workflow Plugin (Pipeline Plugin). The Workflow Plugin (Pipeline Plugin) has a dependency on the following plugins:

  • git-client-plugin

  • git-plugin

Please make sure that these plugins are enabled by going to $JENKINS_HOME/plugins and making sure the *.hpi.disabled have been removed for the plugins listed above.

If they are not there, you can get them from the link below: https://jenkins-updates.cloudbees.com/download/plugins/.

If the plugins are installed and enabled, then delete the git plugins folder:

  • $JENKINS_HOME/plugins/git/*

  • $JENKINS_HOME/plugins/git-client/*

As the plugins could contain corrupt data from extracting the files.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.