« Return to Thread: [jira] Created: (MEVENIDE-620) Test fail with extra commons-logging

[jira] Commented: (MEVENIDE-620) Test fail with extra commons-logging

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


    [ http://jira.codehaus.org/browse/MEVENIDE-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130220#action_130220 ]

Milos Kleint commented on MEVENIDE-620:
---------------------------------------

a few ideas.

1. if your tests are forked, then it's most probably not caused by netbeans integration but by maven itself. I assume you are using 3.0.x of mevenide. A possible workaround would be to use the command-line maven for execution within the IDE. (settable from project properties dialog and tools/options dialog). Since 3.0.x uses an old (2.0.4 like) maven embedder, it could cause it. Alternaively you can try installing 3.1-SNAPSHOT daily builds from http://deadlock.netbeans.org/hudson/job/mevenide. That one includes current 2.1-SNAPSHOT of maven embedder.
2. since some projects work and some fail, you might be using different version of surefire plugin. There were classloader related changes between 2.3 and 2.4. Please make sure you are using the latest of 2.4.x (and not 2.4 as that one has a bug that is visible in embedded environment)
3. some of the dependencies you are using might actually include the commons-logging classes even though it doesn't declare it. I've seen it before that a jar contains all it's dependencies  as well.

In any case I will really need a sample setup project to be able to debug and tell if the problem related to  the netbeans integration or not..

> Test fail with extra commons-logging
> ------------------------------------
>
>                 Key: MEVENIDE-620
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-620
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.0
>         Environment: netbean 6.0.1 6.1dev kubuntu linux
>            Reporter: Nick Stuart
>            Assignee: Milos Kleint
>             Fix For: NB_3.1
>
>         Attachments: build.out, build.out
>
>
> I have a maven project setup that, outside of the ide, runs and completes tests just fine. If I try to run the tests from with in Netbeans I get an error:
> ------------------------------------------------------------------------
> null; nested exception is java.lang.ExceptionInInitializerError: null
> Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
> ------------------------------------------------------------------------
> For more information, run Maven with the -e switch
> ------------------------------------------------------------------------
> Total time: 3 seconds
> Finished at: Tue Apr 08 09:23:27 EDT 2008
> Final Memory: 91M/185M
> ------------------------------------------------------------------------
> The pom files are not changed between when I open it in NB and when I run it on the command line, but it still fails. I've checked my dependencies, and I only have 1 reference of commons-logging 1.0.4 in the list, so I don't know where the extra one is coming from.
> I do have some projects that test fine through NB, so really not sure whats going on here.

--
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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: [jira] Created: (MEVENIDE-620) Test fail with extra commons-logging