facebook

Ejb3Unit & Maven2

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #318017 Reply

    Sylvain Bonnemaison
    Participant

    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

    #318040 Reply

    support-joy
    Member

    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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Ejb3Unit & Maven2

You must be logged in to post in the forum log in