Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1121

Classloader issue when using OpenEJB for Junit testing with Maven2 and Cobertura

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • container system
    • None

    Description

      Using Maven2 (Surefire), OpenEJB and Cobertura in Junit tests.

      If multiple instances of OpenEJB are created during a testrun ( closing OpenEJB with context.close() ), multiple shutdown hooks are registered by Cobertura. When the jvm exits all the shutdown hooks are executed and there is congestion on the report file (cobertura.ser) often resulting in incomplete coverage reports.
      The OpenEJB TempClassLoader should not load Cobertura classes, but should delegate to the parent classloader.

      Attachments

        1. TempClassLoader.java.patch
          1.0 kB
          Pär Wenåker

        Activity

          People

            Unassigned Unassigned
            parwen Pär Wenåker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: