Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-04-02 Thread Marco Mistroni
Hello, not sure if anyone is still watchingn this thread, but i managed to run my tests by bootstrapping jboss microcontainer... i have used jboss-embeddable-alpha5 classes for my EJBs.. using maven2 surefire plugin if anyone is interested, i can send him/her my code regards marco On

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-04-02 Thread Subhash Chandran
I am very much interested in the code. Can u send it accross to me, or better still, put it in some HTTP accessible location from where we can get it. Regards, Subhash. On 4/2/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, not sure if anyone is still watchingn this thread, but i managed

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-28 Thread Dan Greening
I appreciate that many people tried to help out with suggestions, but none of them seemed to work. I have created a test case that shows how the JUnit test fails under Surefire (with Maven 2.0.3), and succeeds in Eclipse using Maven 2.0.3's eclipse:eclipse, both using the same pom.xml.

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-28 Thread Dan Greening
For what it's worth, I changed the configuration a bit, just in case Surefire's alteration of the java.class.path was relevant. This code provides explicit paths to the EJB3 deployer, for the configuration files and for the location of the EJBs. Change

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-28 Thread Chris Richardson
Dan, This is what I used: public void setUp() throws Exception { EJB3StandaloneBootstrap.boot(null); deployer = new EJB3StandaloneDeployer(); deployer.getDeployDirs().add(makeURLForDir(target/test-classes));

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-20 Thread Pete
Chris or Dan, Just wondered if you could share your POM and testing approach with me , I'm looking to test JBoss EJB3 EJBs using surefire or testNG, so I am wondering what the options are, and how this emedded EJB3 container works / fits in ? Pete On 19/03/06, Chris Richardson [EMAIL

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-20 Thread Marco Mistroni
Hello All, i am trying the same and what i get? --- Battery: example1.EJB3ContainerTest --- Tests run: 1, Failures: 0, Errors: 1, Time

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-20 Thread Chris Richardson
Pete You can download the source code for my book, which includes the POMs etc, from: http://www.manning.com/crichardson The embedded EJB 3 container looks like a good way to easily test EJB3 session beans- avoids having to fire up the fullblown server. Chris -- Enterprise POJO consulting -

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-20 Thread Carlos Sanchez
You can try to set childDelegationtrue/childDelegation in the surefire plugin configuration On 3/21/06, Chris Richardson [EMAIL PROTECTED] wrote: Pete You can download the source code for my book, which includes the POMs etc, from: http://www.manning.com/crichardson The embedded EJB 3

DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-19 Thread Dan Greening
I am pulling my hair out. If you have gotten maven2 surefire plugin (or anything else) to initiate a JBoss EJB3 embeddable container, I am desperate for your POM. I am trying very hard to get the JBoss EJB3 embeddable container to operate under the surefire-plugin, under the test phase. I

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-19 Thread Jacek Laskowski
2006/3/19, Dan Greening [EMAIL PROTECTED]: I am pulling my hair out. Before you lose all your hair, could you share what exception/error message you're getting? I haven't used JBoss and M2, but I don't think it really matters. Jacek -- Jacek Laskowski http://www.laskowski.org.pl

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-19 Thread Chris Richardson
Dan, I also had a problem using maven2 to run the EJB3/JBoss microcontainer tests for the example from my book. It got this error: Caused by: java.net.MalformedURLException: no protocol: and at java.net.URL.lt;initgt;(URL.java:567) at java.net.URL.lt;initgt;(URL.java:464) at