• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s3-plugin
    • Jenkins 1.598, S3 plugin 0.7, oracle jdk 7. Ubuntu 14.04 fresh install.

      updated Jenkins server but kept Jenkins $HOME from old server. Updated installed plugins including S3 plugin, S3 plugin started throwing errors:

      java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory
      java.lang.NoClassDefFoundError: org/apache/http/protocol/HttpContext

      I had to drop the httpclient-4.4 and httpcore-4.4 jars from another plugin into the S3 plugin to make it work

          [JENKINS-26903] S3 plugin missing http jars

          Ross Golder added a comment -

          I also had to copy the jars from the lib folder of httpclient-4.4 and httpcore-4.4 to the S3 plugin (/var/lib/jenkins/plugins/s3/WEB-INF/lib/) and restart Jenkins for this to work.

          Ross Golder added a comment - I also had to copy the jars from the lib folder of httpclient-4.4 and httpcore-4.4 to the S3 plugin (/var/lib/jenkins/plugins/s3/WEB-INF/lib/) and restart Jenkins for this to work.

          Ross Golder added a comment -

          I've sponsored this issue with a few mBTC. Let's get this fixed quickly before any more devops tears are shed

          Ross Golder added a comment - I've sponsored this issue with a few mBTC. Let's get this fixed quickly before any more devops tears are shed

          Charles Chan added a comment -

          Charles Chan added a comment - Submitted PR: https://github.com/jenkinsci/s3-plugin/pull/54 If anyone want to give it a try: https://jenkins.ci.cloudbees.com/job/plugins/job/s3-plugin/org.jenkins-ci.plugins$s3/94/

          Charles Chan added a comment -

          Anyone try the plugin? Did it resolve the problem?

          Charles Chan added a comment - Anyone try the plugin? Did it resolve the problem?

          Ross Golder added a comment -

          How do I install it to test it? Seems like the latest release is still from December...

          https://wiki.jenkins-ci.org/display/JENKINS/S3+Plugin

          Ross Golder added a comment - How do I install it to test it? Seems like the latest release is still from December... https://wiki.jenkins-ci.org/display/JENKINS/S3+Plugin

          Ross Golder added a comment -

          Sorry, just seen your link to 'give it a try' above, but can't seem to figure out how.

          FWIW, the patch looks fine.

          Ross Golder added a comment - Sorry, just seen your link to 'give it a try' above, but can't seem to figure out how. FWIW, the patch looks fine.

          Charles Chan added a comment -

          Hello Ross,

          You can install a plugin manually this way:
          1. From the above link, download the .hpi file
          2. Manage Jenkins > Manage Plugins > Advanced > Upload

          See:
          http://antagonisticpleiotropy.blogspot.ca/2014/02/installing-jenkins-plugins-in-servers.html

          (Note: If you have the official S3 plugin installed, you should uninstall it first.)

          If everything checks out, I can send a message to Jenkins developers group to see if someone can publish a new official release.

          Charles Chan added a comment - Hello Ross, You can install a plugin manually this way: 1. From the above link, download the .hpi file 2. Manage Jenkins > Manage Plugins > Advanced > Upload See: http://antagonisticpleiotropy.blogspot.ca/2014/02/installing-jenkins-plugins-in-servers.html (Note: If you have the official S3 plugin installed, you should uninstall it first.) If everything checks out, I can send a message to Jenkins developers group to see if someone can publish a new official release.

          Ross Golder added a comment -

          Yep, installed and working fine. Thanks.

          Ross Golder added a comment - Yep, installed and working fine. Thanks.

          Code changed in jenkins
          User: Charles Chan
          Path:
          pom.xml
          http://jenkins-ci.org/commit/s3-plugin/a30a4c0ca15f149ee71a83a120ad92bdca7ea216
          Log:
          JENKINS-26903 - Add missing httpclient-4.4 and httpcore-4.4 dependencies to resolve java.lang.NoClassDefFoundError

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Charles Chan Path: pom.xml http://jenkins-ci.org/commit/s3-plugin/a30a4c0ca15f149ee71a83a120ad92bdca7ea216 Log: JENKINS-26903 - Add missing httpclient-4.4 and httpcore-4.4 dependencies to resolve java.lang.NoClassDefFoundError

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          pom.xml
          http://jenkins-ci.org/commit/s3-plugin/845f1bc7765a759956817027c820fc958dd7a08c
          Log:
          Merge pull request #54 from charleswhchan/JENKINS-26903

          JENKINS-26903 - Add missing httpclient-4.4 and httpcore-4.4 dependencies to resolve java.lang.NoClassDefFoundError

          Compare: https://github.com/jenkinsci/s3-plugin/compare/ab3afa1be121...845f1bc7765a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: pom.xml http://jenkins-ci.org/commit/s3-plugin/845f1bc7765a759956817027c820fc958dd7a08c Log: Merge pull request #54 from charleswhchan/ JENKINS-26903 JENKINS-26903 - Add missing httpclient-4.4 and httpcore-4.4 dependencies to resolve java.lang.NoClassDefFoundError Compare: https://github.com/jenkinsci/s3-plugin/compare/ab3afa1be121...845f1bc7765a

            ndeloof Nicolas De Loof
            korishev Morgan Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: