This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Version: 1.36 and prior versions

      This is a famous bug that is bugging me for a long time now:
      java.lang.NoClassDefFoundError: hudson/Main (wrong name: Main)

      I noticed in the mailing list that more people have this "mistery error".
      I think it's because of the scattered jar's in the hudson.war.
      All web app dependent jar's should be located in the WEB-INF/lib dir.

      I had this same error again just now .. and tried about everyting, downloading new version, cleaning tomcat, removing hudson dir, etc...
      I then removed the hudson/winstone.jar and everything works fine, even when restaring...

      So my conclusion is that the jar's shouldn't be there in the hudson dir but only in the WEB-INF/lib dir, and that for some reason this winstone jar is picked up...

      I deployed many app's and never had this error, but on the other hand, also never had jar's scattered around in a web app like in hudson dir.

      Hope this helps,
      Ed

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            edbras
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: