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

NoClassDefFoundError of application classes during test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Blocker Blocker
    • jenkins-test-harness
    • None

      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)
       

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

              Created:
              Updated:
              Resolved: