Fabio, Packaging your EJB inside the war is not good. You need a valid ejb-jar module with a valid deployment descriptor (namely ejb-jar.xml). Cactus simply put your classes inside the WAR + resources but not the deployment descriptor.
I would suggest to write a custom goal in the maven.xml of your project that uses the cactus ant task. I am pretty sure Vincent has more details about this. If I have a solution in the meantime I will come back to you. Regards, Stephane -----Original Message----- From: Fabio Uechi [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:19 AM To: Maven Users List Subject: Re: using cactus with external dependencies Hi all, I'm facing a similar problem. I have a set of cactus tests for my ejb module as well. I've included it in my war module, is this the right place to put it? Before changing to maven I was cactifying the war and then packing a new ear with it. With this "cactifyed ear" in hand I was able to run the cactus task passing this ear file as parameter. I wanted to do the same using maven but still didn't succeed. St�phane have you found a workaround for it? Vincent? Any help/hint is very welcome! Thanks F�bio Stephane Nicoll writes: > Hello Vincent, > > Thank you but I already tried that. The dependencies are ejb module (We are > testing ejbs, session beans, etc). Putting them in the WAR won't deploy them, > we need an ear for this. Besides, we just noticed that cactus will put the > classes of the project under the WEB-INF/classes directory > > This is not good because we loose the deployment description (ejb-jar.xml, > jboss.xml, etc). > > Well as far as I can see, there is no real support for EJB testing inside > cactus. Am I correct? > > Thank you, > > St�phane > > -----Original Message----- > From: Vincent Massol [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 18, 2003 5:04 PM > To: 'Maven Users List' > Subject: RE: using cactus with external dependencies > > > Hi Stephane, > > Yes, it is possible. Simply make sure your other modules are included in > your war by tagging them with war.bundle (see the war plugin doc). > > -Vincent > >> -----Original Message----- >> From: Stephane Nicoll [mailto:[EMAIL PROTECTED] >> Sent: 18 December 2003 16:57 >> To: Maven user list (E-mail) >> Subject: using cactus with external dependencies >> >> Hello list, >> >> We use cactus inside a JBoss container to test our modules. All our >> modules >> depends on some other ejb-jar modules. My question is: >> >> I have module A depending on module B,C,D (I have the ejb-jars in my >> repository). Is it possible somehow to deploy B,C,D while running > cactus >> tests? >> >> Thanks a lot, >> >> S. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ----------------------------------------------------------------------------- --- Get your free 15 Mb POP3 email @alexandria.cc Click here -> http://www.alexandria.cc/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
