You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Patrick Lightbody (JIRA)" <ji...@codehaus.org> on 2006/05/03 17:43:40 UTC

[jira] Created: (MSUREFIRE-99) TestNG tests that cause commons-logging to load fail

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


[jira] Updated: (SUREFIRE-64) TestNG tests that cause commons-logging to load fail

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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

        

[jira] Closed: (MSUREFIRE-99) TestNG tests that cause commons-logging to load fail

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-99?page=all ]
     
Brett Porter closed MSUREFIRE-99:
---------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

a somewhat temporary fix is made by swapping the construction of the classloaders so the test classloader is before the surefire classloader.

> 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
>     Assignee: Brett Porter
>      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