[
http://jira.codehaus.org/browse/SUREFIRE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter updated SUREFIRE-64:
---------------------------------
Fix Version/s: 2.0 (2.2 plugin)
> TestNG tests that cause commons-logging to load fail
> ----------------------------------------------------
>
> Key: SUREFIRE-64
> URL: http://jira.codehaus.org/browse/SUREFIRE-64
> Project: Maven Surefire
> Issue Type: Bug
> Environment: (Using latest from SVN as of May 1)
> Reporter: Patrick Lightbody
> Assigned To: Brett Porter
> Fix For: 2.0 (2.2 plugin)
>
> Attachments: test.zip
>
>
> If a TestNG test uses commons-logging (either directly or a class that is
> tested does), this error is returned:
> ==========================
> [INFO] Surefire report directory:
> /Users/plightbo/autoriginate/hostedqa/test/target/surefire-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> [Utils] FAILED TO CREATE CLASS class com.acme.FooTest
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] java.lang.reflect.InvocationTargetException; nested exception is
> org.testng.TestNGException: java.lang.reflect.InvocationTargetException
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed.
> ==========================
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira