tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENEJB-1121) Classloader issue when using OpenEJB for Junit testing with Maven2 and Cobertura
Date Thu, 12 May 2011 23:50:47 GMT

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

David Blevins commented on OPENEJB-1121:
----------------------------------------

Good suggestion Aldrin.  We could definitely have a property of packages to skip.  There's
some convenient 'filter' logic in xbean-finder we could use if we upgrade to xbean-finder-3.8-SNAPSHOT
that would make implementing this pretty easy.  Specifically the 'packages' method of this
class:

  http://svn.apache.org/repos/asf/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/filter/Filters.java

Not fancy, but we use xbean-finder anyway and could save some time.

I'll commit this patch and if someone has time to work in a property and supply a new patch,
that would be excellent!

> 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