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

NoClassDefFoundError of application classes during test

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: jenkins-test-harness
    • Labels:
      None
    • Environment:
    • Similar Issues:

      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

          Activity

          Hide
          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.

          Show
          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.

            People

            • Assignee:
              olivergondza Oliver Gondža
              Reporter:
              teohaik Theodore Chaikalis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: