TestNG tests that cause commons-logging to load fail
----------------------------------------------------

         Key: MSUREFIRE-99
         URL: http://jira.codehaus.org/browse/MSUREFIRE-99
     Project: Maven 2.x Surefire Plugin
        Type: Bug

 Environment: (Using latest from SVN as of May 1)
    Reporter: Patrick Lightbody
     Fix For: 2.2
 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

Reply via email to