[jira] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=252110#action_252110 ] Danilo Recchia commented on MECLIPSE-132: - Hi! Ive the same problem, but I solved that, rebuilding the index of the local repository! Changing the build order dont make any effect for me! Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=198006#action_198006 ] MS commented on MECLIPSE-132: - @Benjamin You are wrong, with m2eclipse we can reslove this problem with Update project configuration. Without this plugin we cant using JUnit in maven! Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=182954#action_182954 ] Christophe commented on MECLIPSE-132: - Still no luck for me. Running on STS 2.1 / Eclipse 3.4, I still get a classnotfound when running src/test/java/com/xxx/ActionTest.java which uses src/main/java/com/xxx/Action.java class. I tried to enble Marven Dependencies Management, update project configuration, still no luck. I disabled Dependencies Management, try again, no luck. Tried to put marven dependencies before JRE System Library. No luck again. I don't understand the problem. I have an other project that I receive from a training class, which work, but nothing seems to be different. I analyzed all parameters of the project, no huge difference Does anyone as another idea? Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=182956#action_182956 ] Benjamin Bentmann commented on MECLIPSE-132: It seems you guys are reporting the issue at the wrong location. This JIRA project MECLIPSE is about the maven-eclipse-plugin, i.e. the thing that one invokes on the CLI like {{mvn eclipse:eclipse}}. However, you seem to have problems with M2Eclipse, this has its issue tracker at https://issues.sonatype.org/browse/MNGECLIPSE. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=158157#action_158157 ] Jeff Arbaugh commented on MECLIPSE-132: --- Thanks Diego, This was a life saver. Because of your post, it only took me a couple seconds to solve. Jeff Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=152395#action_152395 ] Cameron Rich commented on MECLIPSE-132: --- See http://blog.xemantic.com/2008/06/maven-integration-for-eclipse-and.html?widgetType=BlogArchivewidgetId=BlogArchive1action=toggledir=closetoggle=YEARLY-119914200toggleopen=MONTHLY-122022000 Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path (.classpath), M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=146286#action_146286 ] Anshuman commented on MECLIPSE-132: --- I encountered the same problem. After some head banging, I changed the Eclipse classes folder to target\classes and did a Maven - Update project configuration. It seems to work after this. Although, if you do a mvn clean, you must do a compile again to get this working. Not sure about this, but perhaps Eclipse was compiling classes into 'bin' and was trying to find it in target\classes, causing the problem. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path, M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=144890#action_144890 ] Antony Stubbs commented on MECLIPSE-132: ok, problems back and the work around didn't work this time. I also have an issue with opening files with getResourceAsStream in the other problematic project and think it may be related... Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path, M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=144885#action_144885 ] Antony Stubbs commented on MECLIPSE-132: Wow - I was about to stress out when this started happening to me - found this issue as number one google hit for eclipse maven class not found and thankfully, the work around of: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. works! How on earth did you figure out the work around??? I actually changed to order in the _project my junits depended on_, not the project which contained my tests! I didn't try it the other way around. woah that's weird. ok, tried to try it the other way around, and after putting maven dependencies to _last_ again, the problem didn't reoccur! even after a clean! hmmm... Perhaps it's an eclipse bug? I'm on 3.4. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Core : Dependencies resolution and build path, M2Eclipse support Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115970 ] David J. M. Karlsen commented on MECLIPSE-132: -- I do not thing this is a bug. It's a issue with eclipse not noticing that mvn has rebuilt it all (and the old state/references in eclipse are not valid). Pressing refresh on all the involved project solves the problem (e.g. eclipse rebuilds them). (Running eclipse europa on jdk 1.6) Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: Dependencies resolution and build path Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107244 ] daniele commented on MECLIPSE-132: -- only one thing worked for me: running mvn clean test from shell before (one time only) and then tests can run in eclipse normally Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104957 ] james obrien commented on MECLIPSE-132: --- Dude, can someone please fix this. It's killing me. I can't junit my projects. My productivity is down the drain. Thanks, --jim Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104962 ] james obrien commented on MECLIPSE-132: --- I was able to fix by running update source folders on all related projects. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104705 ] Stijn De Mulder commented on MECLIPSE-132: -- I've had the same issue. I checked the eclipse problems view for that project and apparently there was a duplicate library on the build path. After that i removed all the classpath entries that started with M2_REPO and now it works fine. All the neccesary dependencies were already on the build path (under maven 2 dependencies) so why are there extra build path entries? Anyway that solved the problem for me. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_79345 ] Przemyslaw Jaskierski commented on MECLIPSE-132: This bug is a killer. When trying to run JUnit test using Eclipse's JUnit launcher I've discovered that none of jars (beside Junit jar) from 'Maven dependencies' is in the classpath of JUnit test - producing java.lang.NoClassDefFoundError for every one of my spring-driven tests. This practically renders Eclipse-Maven integration useless for a person using TDD :(:(:(. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_77492 ] Kevin Ross commented on MECLIPSE-132: - I can't add much value to what has already been said, but this issue is absolutely killing me. I'll be happy to pitch in and try anything to help diagnose it. The suggested workaround doesn't work for me. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_76030 ] Brian Keyser commented on MECLIPSE-132: --- Our environment is susceptible to this enviroment as well using Eclipse 3.2 and the Maven2 Eclipse Plugin 0.0.9. I have been able to create a small test case the mirrors our environment. We separate our projects into both a source and a test project. We do this because we weave different aspects in our production and test environments. However, this configuration does expose the problem. The two projects included in the following attachment are a source (maven-sample) project and a test (maven-sample-test) project. If the JUnit dependency is removed from the maven-sample project, the NoClassDefFoundError appears when attempting to run the test cases. If the JUnit dependency is present in the maven-sample project, then the test cases can be run. However, this trick does not work for our configuration. I was also able to get Diego's suggestion to work if I added a Maven2 Dependencies above the JRE System Library in the Classpath - Bootstrap Entries of the target I was trying to run. However, this is less than ideal if you wish to choose a single test case to execute. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_76034 ] Brian Keyser commented on MECLIPSE-132: --- Our project structure is organized into a hierarchy of projects. I have found that the complete set of libraries needs to be specified for each of the individual projects. In other words, if Project A needs libraries aa, ab, ac and Project B needs ba, bb, bc, you would need to specify aa, ab, ac, ba, bb, bc for both Project A and Project B. Looks like the plugin might be having trouble determining library dependencies. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve Attachments: maven-sample.zip This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_74892 ] Kenney Westerhof commented on MECLIPSE-132: --- Cannot reproduce. Require a sample project attachment that reproduces this problem. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_73258 ] Jimisola Laursen commented on MECLIPSE-132: --- Eugene or other person in the Maven 2.x Eclipse Plugin team, are you not experiencing this problem? I see it quite often and it's causing a lot of head-ache. I would gladly provide more information if I know what to look for. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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] Commented: (MECLIPSE-132) Class not found when run/debug JUnit tests
[ http://jira.codehaus.org/browse/MECLIPSE-132?page=comments#action_71583 ] Jimisola Laursen commented on MECLIPSE-132: --- The proposed workaround doesn't work for me. Hence, it seems to be something else causing the problem. Sadly, I haven't been able to gain much more information. However, I followed the instructions in the mailing list thread mentioned in the description and came to the conclusion that there is no significant difference between the command line when the JUnit tests runs normally and when NoClassDefFoundError are thrown. The once chance is the port and testName filename. Quite annoying bug since there isn't a known workaround. I'll be glad to investigate further if I get some instructions. Class not found when run/debug JUnit tests Key: MECLIPSE-132 URL: http://jira.codehaus.org/browse/MECLIPSE-132 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: dependency resolution Environment: gentoo linux 2006, kernel 2.6, sun-jdk-1.5.0.06, maven 2.0.4, eclipse sdk 3.2, myeclipse 5 m2 Reporter: Diego Ballve This is for the behavior described in http://www.nabble.com/Keep-getting-%22Class-not-found%22-when-running-debugging-JUnit-tests-tf1851758.html#a5442440 You get Class not found when running/debuging JUnit tests. For me it happened when I was importing another project and its dependencies (both m2 projects). Clean compile works fine, problem is with run. The workaround to get it working is: In the project containing your tests, edit Java Build Path | Order and Export: Make sure M2 Dependencies appears BEFORE JRE System Library. Thanks, Diego -- 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