You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Greening (JIRA)" <ji...@codehaus.org> on 2006/05/02 15:41:41 UTC

[jira] Commented: (SUREFIRE-38) Surefire Maven2 Plugin fails to run EJB3 Embeddable Container (but mvn eclipse:eclipse succeeds)

    [ http://jira.codehaus.org/browse/SUREFIRE-38?page=comments#action_64560 ] 

Dan Greening commented on SUREFIRE-38:
--------------------------------------

I think there must have been some other improvement to Surefire or JBoss Embeddable, because I just tried recompiling my EJB3 component (now under JBoss EJB3 Embeddable version Alpha6 and -- without any changes -- it now passes all the tests.

Please note, I still must use my personal copy of the EJB plugin, though I provided a patch a month ago in MEJB-6 which we all agree is good.  

CAN MEJB-6 PLEASE BE RESOLVED?  It is marked as a "trivial" bug, but it isn't.  EJB3s cannot be built properly with the official EJB plugin, however the patch I provided in MEJB-6 allows this to be done, and also retains the proper checking for EJB 2.1 (the EJB version is a pom-supplied parameter).

Pretty, pretty please?

> Surefire Maven2 Plugin fails to run EJB3 Embeddable Container (but mvn eclipse:eclipse succeeds)
> ------------------------------------------------------------------------------------------------
>
>          Key: SUREFIRE-38
>          URL: http://jira.codehaus.org/browse/SUREFIRE-38
>      Project: surefire
>         Type: Bug

>     Versions: 1.5.2
>  Environment: maven 2.0.3
>     Reporter: Dan Greening
>     Assignee: Brett Porter
>     Priority: Critical
>  Attachments: jboss-ejb3-embeddable-test-with-junit.tar.gz
>
>
> JBoss's EJB3 embeddable container, which is very handy for unit testing EJB's without using an application server, will not work under surefire in Maven2.  It works fine under Maven1.  Furthermore, it ALSO works using the Maven2 eclipse-plugin generated .project/.classpath in Eclipse.
> Here's a complete set of instruction to reproduce it.
> This is a test showing that surefire does not properly handle the JBoss EJB3
> embeddable container.
> The instructions are a bit complex, because you have to download a package of
> JARs from JBoss.  (They make the test file too big to attach in JIRA.)
> To confirm,
> 1. cd /tmp
> 2. Surf to http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063
> 3. Download jboss-EJB-3.0_Embeddable_ALPHA_5.zip.  Put it in /tmp.  This is
>    the latest EJB3 embeddable system.
> 4. unzip jboss-EJB-3.0_Embeddable_ALPHA_5.zip
> 5. Download jboss-ejb3-embeddable-test-with-junit.tar.gz (it is an attachment
>    to this JIRA ticket).
> 6. tar xvfz jboss-ejb3-embeddable-test-with-junit.tar.gz
> 7. cd jboss-ejb3-embeddable-test-with-junit
> 8. cp -pR ../jboss-EJB-3.0_Embeddable_ALPHA_5/lib lib
> 9. ./deploy-jars.perl
> 10. type "mvn test".
> 11. Note that the test fails.
> 12. Type "mvn eclipse:eclipse"
> 13. Import the jboss-ejb3-embeddable-test-with-junit directory into Eclipse as an "existing project".
> 14. Set M2_REPO build variable to your .m2/repository folder.
> 15. Run the EmbeddedEjb3TestCase as a JUnit test in Eclipse.  It works.

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