[jira] Created: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
Eclipse launcher can't find classes in dependencies defined in test scope
-------------------------------------------------------------------------

                 Key: MNGECLIPSE-493
                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
             Project: Maven Integration for Eclipse
          Issue Type: Bug
          Components: Dependency Resolver
    Affects Versions: 0.9.0
         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
            Reporter: Matt Milliss
         Attachments: brokenLauncher.txt, originalLauncher.txt

Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.

Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128093 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Matt, we did changed the way runtime classpath is being built in 0.9 release for the case when running Eclipse junit launch configuration to make it the same as when launching mvn test. Can you please attach the test project that would allow us to reproduce your issue.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128095 ]

Matt Milliss commented on MNGECLIPSE-493:
-----------------------------------------

The problem is not for launching junit within eclipse it is for launching a java application via a classes main method. We're using this functionality to launch our fit tests and for starting jetty within eclipse. I'll try and build a test project to highlight the problem, what exactly do you need from me to be able to reproduce?

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128097 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Thanks Matt. Technically those are "provided" dependencies from the Maven point of view and I would wonder how the same test or jetty stuff would run from the command line Maven, because one of our objectives is to make Maven stuff work the same from within IDE and from the command line.

Anyways, it would help if you could create project that can be imported into Eclipse and then short step by step instructions what to run on that project. There are some additional tips on the wiki (nothing really fancy or really formal). See http://docs.codehaus.org/display/M2ECLIPSE/Reporting+Issues

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Milliss updated MNGECLIPSE-493:
------------------------------------

    Attachment: test-projects.zip

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128106 ]

Matt Milliss commented on MNGECLIPSE-493:
-----------------------------------------

Eugene, I've created 2 projects and attached them in a zip. If you install these projects in eclipse and select the menu Run->Open Run Dialog, you should see under the java application launchers a launcher called "Matts test web app launcher". If you run this the following error occurs:

Exception in thread "main" java.lang.NoClassDefFoundError: net/moneyswitch/jetty/RunJettyRun
Caused by: java.lang.ClassNotFoundException: net.moneyswitch.jetty.RunJettyRun
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

The class RunJettyRun is in one of my projects (a simple jar project) and my other project is a war project that has a test dependency on the first one. The launcher is running from my war project. If I change the dependency scope to compile, runtime or provided then things work fine, but with test scope I get the above error. I was previously using a very old version of the maven plugin, 0.0.10 and this setup work fine, but when I upgraded to 0.9.0 I find none of my launchers are working in eclipse. I'm not sure how I would run this from the mvn command line to compare the behaviour.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128107 ]

Matt Milliss commented on MNGECLIPSE-493:
-----------------------------------------

Sorry I just read your conventions for projects, I'll go and update my test projects accordingly.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Milliss updated MNGECLIPSE-493:
------------------------------------

    Attachment: test-projects(2).zip

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128109 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Thanks Matt. I'll take a look at this next ween before the release.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128799#action_128799 ]

Matt Milliss commented on MNGECLIPSE-493:
-----------------------------------------

Eugene, after thinking about your comments I think you are right about these dependencies being provided scope and the plugin seems to be building the classpath correctly. But I wonder what I can do to get my launchers working again.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128895#action_128895 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Matt, current logic is like this:

- we use compile or test scope dependencies based o n the launch configuration type (Junit vs. Java App)
- dependencies with provided scope are added to both Junit and Java App classpath
- Java App launched from the test folder will use test dependencies

That is the closest we could get to the Maven classpath resolution and under those rules, you should be able to use your test dependencies if you'll put your main class under test folder of Maven project.

Also, in the next build we will allow custom classpath entries in the launch configurations.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Kuleshov closed MNGECLIPSE-493.
--------------------------------------

    Resolution: Fixed

I've played with attached test project little more. Now, as I already mentioned in my previous comment, dependencies from the test scope won't be added to the Java App launch configuration (but they will be in JUnit launch config). To work around that you could change scope for MNGECLIPSE-493-jar project to "provided". Then it will be available in both test and Java app claspath.

Matt, if this is not sufficient for you, please feel free to reopen and share your thoughts on this. Thanks.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129000#action_129000 ]

Matt Milliss commented on MNGECLIPSE-493:
-----------------------------------------

Eugene, thanks for your time looking at this. I'm happy for you to close the issue. We are hesitant to change the scope from test to provided as we didn't want our test classes to be available to our production code, instead we've installed the FitRunner2 and RunJettyRun plugins which work well with the maven plugin and allow us to launch all the processes we were previously using app launchers for. This has fixed the problem for us.

Cheers
Matt

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129084#action_129084 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

That is exactly the purpose of provided scope. All provided dependencies are not transitive and they are not included with production (aka runtime) artifacts, because they expected to be provided by the infrastructure, such as JRE or application servers.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130822#action_130822 ]

Sasha Ovsankin commented on MNGECLIPSE-493:
-------------------------------------------

Eugene, I am having the same issue trying to start the Jetty server. I have Jetty in the test scope and the code using it is in the test folder. Yet, I am getting "Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/jetty/Handler".

I am using m2eclipse 0.9.2.20080413-2321 on the Mac.

Thanks,
-- Sasha

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130823#action_130823 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Sasha, can you run "Update Source folders" action on your project and then try again. If it would fail, please attach launch configuration file (Common tab, Shared file) and command line for Maven process [1] (don't post screenshot, just copy text from the Properties dialog). Thanks.

[1] http://docs.codehaus.org/display/M2ECLIPSE/Reporting+Issues#ReportingIssues-process

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130920#action_130920 ]

Sasha Ovsankin commented on MNGECLIPSE-493:
-------------------------------------------

Eugene, "Update Source Folders" seems to have done the trick. We are good for now. Thanks.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-493) Eclipse launcher can't find classes in dependencies defined in test scope

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130921#action_130921 ]

Eugene Kuleshov commented on MNGECLIPSE-493:
--------------------------------------------

Great. Just to clarify, we need an attribute in .classpath on "test" folder so we know that class is take from the test hierarchy and "Update Source Folders" sets it based on Maven project.

> Eclipse launcher can't find classes in dependencies defined in test scope
> -------------------------------------------------------------------------
>
>                 Key: MNGECLIPSE-493
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-493
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>          Components: Dependency Resolver
>    Affects Versions: 0.9.0
>         Environment: Eclipse 3.3.1.1, fedora core 6, java 1.6
>            Reporter: Matt Milliss
>         Attachments: brokenLauncher.txt, originalLauncher.txt, test-projects(2).zip, test-projects.zip
>
>
> Using an eclipse launcher (via the Run menu) to run fit tests by invoking the FileRunner class doesn't work anymore. The problem seems to be that any classes that are contained in dependencies with a test scope in the pom can no longer be found and a ClassNotFoundException is generated. The eclipse file for the runner is modified when 0.9.0 maven plugin is installed and the runner will no longer run. I've attached both working runner launch file and the modified, broken version. Below is the error generated when the launcher is run with the new configuration, the jetty class that cannot be found is defined as a test scoped dependency in one of the pom files.
> Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/thread/ThreadPool
> Caused by: java.lang.ClassNotFoundException: org.mortbay.thread.ThreadPool
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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