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

NoClassDefFoundError of application classes during test

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Incomplete
    • jenkins-test-harness
    • None

    Description

      A JUnit test runs perfect on my local PC but in Jenkins throws NoClassDefFound exception for classes that are packed in the application and definitely exist in the classpath! 

      Each time throws exception for different a class

       

       

      java.lang.NoClassDefFoundError: com/company/ssp/shared/enums/AmountTypeGlobalFlgEnum
      {{ at java.net.URLClassLoader.findClass(URLClassLoader.java:381)}}
      {{ at java.lang.ClassLoader.loadClass(ClassLoader.java:424)}}
      {{ at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)}}
      {{ at java.lang.ClassLoader.loadClass(ClassLoader.java:357)}}
      {{ at systemInitialization.demo.bh.importers.BhSetupDataImporter.createAmountTypes(BhSetupDataImporter.java:4069)}}
      {{ at systemInitialization.demo.bh.importers.}}BhSetupDataImporter.importSetupData(BhSetupDataImporter.java:111)
      {{ at dataset.BenefitsSetup.importBenefitsSetupData(BenefitsSetup.java:90)}}
      {{ at dataset.ImportAllRevenueAnd}}BhTestData.saveRevenueBhTestData(ImportAllRevenueAndBhTestData.java:170)
       

      Attachments

        Issue Links

          Activity

            This is really a topic for https://groups.google.com/forum/#!forum/jenkinsci-dev. Also, make sure to attach the code and more details on what are you doing so someone can assist you.

            olivergondza Oliver Gondža added a comment - This is really a topic for https://groups.google.com/forum/#!forum/jenkinsci-dev . Also, make sure to attach the code and more details on what are you doing so someone can assist you.
            jglick Jesse Glick added a comment -

            Generally some mistake in your plugin. See docs on jenkins.io.

            jglick Jesse Glick added a comment - Generally some mistake in your plugin. See docs on jenkins.io.

            People

              Unassigned Unassigned
              teohaik Theodore Chaikalis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: