tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aldrin Leal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENEJB-1121) Classloader issue when using OpenEJB for Junit testing with Maven2 and Cobertura
Date Tue, 26 Apr 2011 22:03:03 GMT

    [ https://issues.apache.org/jira/browse/OPENEJB-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025466#comment-13025466
] 

Aldrin Leal commented on OPENEJB-1121:
--------------------------------------

Actually, the same happens when you declare static loggers with slf4j. 

Should we consider turning this validator/tempclassloader a property/feature of OpenEJB?

> Classloader issue when using OpenEJB for Junit testing with Maven2 and Cobertura
> --------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1121
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1121
>             Project: OpenEJB
>          Issue Type: Improvement
>          Components: container system
>    Affects Versions: 3.1.2
>            Reporter: Pär Wenåker
>         Attachments: TempClassLoader.java.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message