Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-500

puzzling NoClassDefFoundError instead of meaningfull stacktrace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.7.2
    • classloading
    • None
    • maven 2.0.9 , linux/ubuntu, jdk-sun-1.5.0_13

    Description

      We are using maven-2.0.9 for some project using spring/hibernate.

      When I made an incorrect change to the spring configuration (or actually I removed a hbm.xml file that was still referenced in the spring config), maven/surefire failed with an NoClassDefFoundError on one of our abstract test classes (where the spring config was loaded). Running in debug mode (-X) or increasing log4j levels did not reveal more info as to the cause of the problem.

      After some time I switched back to maven-2.0.7, maven/surefire also failed but with a meaningfull stacktrace that pointed immediately to the cause of the problem.

      So I fixed the problem, switched again to maven-2.0.9, with a succesfull build as result.

      Attachments

        1. surefireTest.zip
          3 kB
          James Hood

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              jromme jromme
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: