MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sylvain.bonnemaison
Post subject: Ejb3Unit & Maven2  PostPosted: Jul 07, 2011 - 07:42 AM
Registered Member
Registered Member


Joined: Nov 10, 2009
Posts: 9

Hi,

I'm using ejb3unit. I setup the pom file with required entries which update in the ejb3 project all maven libraries dependencies.
When I'm running maven test, I get the following error:
"java.lang.NoClassDefFoundError: com.bm.testsuite.BaseEntityFixture"
This class is part of ejb3unit.jar listed in maven libraries.

It seems that test process don't take care of the maven dependencies. Why?

Thanks
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-joy
Post subject: RE: Ejb3Unit & Maven2  PostPosted: Jul 08, 2011 - 10:13 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

sylvain.bonnemaison,

In case you are seeing NoClassDefFoundError, it means that the jar file is not present in the classpath. I would need to see the complete issue logged in your .log file. Please provide below details -
1. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details. And copy and paste the same here
2. Clear your .log file located at [your workspace dir]/.metadata/.log, replicate the issue and copy and paste the issue logged in your .log here
3. Remove the "maven-resources-plugin" from the local repository on your machine and try building the project again. This would force maven related jars to be reloaded.

Let me know how this works for you

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits