Hi, In fact I hadn't set the cactus.contextURL properties ! I also set <jboss3x> config to sf and ANT doesn't stop my server anymore.
Thx for ur help. --- Vincent Massol <[EMAIL PROTECTED]> a �crit : > > > > -----Original Message----- > > From: J.L. [mailto:[EMAIL PROTECTED] > > Sent: 01 December 2003 18:29 > > To: Cactus Users List > > Subject: RE: Cactus and Ant > > > > In fact, in Tomcat QuickStart it is said : > > > > "There are 2 ways of packaging Cactus so that you > can > > execute Cactus tests on your application: > > > > * By putting all Cactus jars in your WEB-INF/lib > > directory, as described in the Classpath Tutorial, > > > > * By putting the Cactus jars in your container > > classpath so that Cactus will load them using the > > container Context class loader. This tutorial will > > describe this strategy as it is the less intrusive > one > > and provides reuse of Cactus jars across several > > webapps." > > Yes. The documentation is not clear enough. The > second solution is nice > when "playing" the first time with Cactus. However, > it's not an > industrial strength solution. Solution 1 should be > preferred for > automating the execution of tests. > > > > > I wanted to use the second strategy because it > seems > > easier, since it allows me not to include the libs > in > > each .war. But if I can't, I'll cactify my .war :) > > > > But if I have several .war for several tests, I'll > > also include several times the same libs. Maybe, > > might I have just one .war for all my tests. > > Do you have disk space problems? :-) > > Honestly, I don't see any problem with including the > cactus libs to all > the application you're testing with Cactus. > > > > > I test using cactified war and it worked well. > > > > I see from your tests that the container was *not* > started before you > ran the <cactus> task, which is why it has started > it and stopped it > thereafter. > > > I attached my Ant log. I looked at it and it seems > a > > bit strange in as much as it says : > > "... > > [cactus] Executing > > 'D:\j2sdk1.4.2_01\jre\bin\java.exe' with > arguments: > > [cactus] > > > '-Dcactus.contextURL=http://localhost:8080/testAnt-cactified' > > [cactus] > > '-Dprogram.name=D:\jboss-3.2.2\bin\run.bat' > > [cactus] > > > '-Djboss.server.home.dir=D:\jboss-3.2.2\server\default' > > [cactus] > > > '-Djboss.server.home.url=file:/D:/jboss-3.2.2/server/default/' > > ..." > > > > Whereas I use the jboss-3.2.2\server\sf\ > > configuration. Does cactus task call always > default > > configuration ? > > Have you told the <jboss3x> element to use a > different configuration? > > Thanks > -Vincent > > > > > Thx again for your help. > > > > --- Vincent Massol <[EMAIL PROTECTED]> a �crit > : > > > > > > > > -----Original Message----- > > > > From: J.L. [mailto:[EMAIL PROTECTED] > > > > Sent: 01 December 2003 15:22 > > > > To: Cactus Users List > > > > Subject: RE: Cactus and Ant > > > > > > > > Thx for ur really fast answer, but I still > have > > > two > > > > problems ! > > > > > > > > Ant always stops the server at the end of the > > > test. > > > > > > I've just checked the source code and the code > seems > > > correct. > > > > > > public void shutDownContainer() throws > > > IllegalStateException > > > { > > > [...] > > > // Don't shut down a container that has > not > > > been started by us > > > if (this.alreadyRunning) > > > { > > > return; > > > } > > > [...] > > > > > > However, it might be a bug. To verify this, > could > > > you please run in > > > debug mode (ant -debug) and show us the console > > > output? > > > > > > > Cactus task need a cactified .war ! How can I > use > > > a > > > > normal .war ? Require lib(s) are already > included > > > in > > > > the lib directory of my server. > > > > > > This is no a supported use case for <cactus>. > Why > > > don�t you want to > > > include the libs in your war? I really believe > it'll > > > be simpler for you > > > if you follow the typical scenario of > <cactifywar>, > > > <cactus>. > > > > > > Is there something you don't like there? > > > > > > Thanks > > > -Vincent > > > > > > > > > > > --- Vincent Massol <[EMAIL PROTECTED]> a > �crit > > > : > > > > > Hi JL, > > > > > > > > > > The <cactus> task checks if the server is > > > already > > > > > started. If so, it > > > > > doesn't start it and doesn't stop it. > > > > > > > > > > Thanks > > > > > -Vincent > > > > > > > > > > > -----Original Message----- > > > > > > From: J.L. [mailto:[EMAIL PROTECTED] > > > > > > Sent: 01 December 2003 12:51 > > > > > > To: [EMAIL PROTECTED] > > > > > > Subject: Cactus and Ant > > > > > > > > > > > > Hi, > > > > > > > > > > > > I'm new to Ant and Cactus and I just'd > like to > > > > > know > > > > > > how I can launch my Cactus test on an > already > > > > > started > > > > > > server with an Ant script. I read the doc > : > > > > > > http://www.ressources- > > > > > > > > > > > > > > > > > > > > > java.net/cactus/integration/ant/howto_ant_cactus.html > > > > > > But this example only shows how to launch > a > > > > > specified > > > > > > server for the tests. I also read other > docs > > > on > > > > > the > === message truncated === ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
