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
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
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.
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
Dan,
This is what I used:
public void setUp() throws Exception {
EJB3StandaloneBootstrap.boot(null);
deployer = new EJB3StandaloneDeployer();
deployer.getDeployDirs().add(makeURLForDir(target/test-classes));
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
Hello All,
i am trying the same and what i get?
---
Battery: example1.EJB3ContainerTest
---
Tests run: 1, Failures: 0, Errors: 1, Time
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 -
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
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
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
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
12 matches
Mail list logo