Vincent, Thank you for your reply.
Yes, I have checked the example build file in the cactus distribution. I'm pretty sure the testURL is correct. I can manually start jRun and use a browser to connect to the "testURL". As I said I actually did this in Ant by using "parallel","sequential","java" and "junit" tags to start jRun, run the tests, and stop JRun. The "runservertests" skips "startTaget" and goes directly to run tests, and thus EOFException is caught because JRun is not started. I'll send the build.xml and ant console output to you. Please check your email. Thanks. Li -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 12:25 PM To: 'Cactus Users List' Subject: RE: Cannot use "runservertest" in an Ant build.xml to start JRun 3.1 Li, Have you had a look at the example build files in the sample/build directory of the cactus distribution. They may help you. Are you sure the testURL is valid (can you manually start JRun and use a browser to connect to http://localhost/myapp ? Can you send us your build.xml file and the ant console output ? Thanks -Vincent P.S.: testTarget="tests" but the target you define below is "test" > -----Original Message----- > From: Zhang, Li [mailto:[EMAIL PROTECTED]] > Sent: 30 January 2002 17:46 > To: 'Cactus Users List' > Subject: Cannot use "runservertest" in an Ant build.xml to start JRun 3.1 > > Have anyone experienced problem to start the application server with > "runservertests" cactus ant task? > > I first define the task useing "taskdef" and map "runservertests" to > org.apache.cactus.ant.RunServerTestsTask; then I define a task which calls > the "runservertests" as follows: > > <target name="tests_jrun"> > <runservertests testURL="http://localhost/myapp" > startTarget="start_jrun" > stopTarget="stop_jrun" testTarget="tests"/> > </target> > > <target name="start_jrun"> > ... > </target> > <target name="stop_jrun"> > ... > </target> > <target name="test"> > ... > </target> > > It looks like Ant ignores the "startTarget" attribute of the cactus ant > customized task because jRun is never started. If I remove > "startTarget="start_jrun" then Ant does invoke the "stop_jrun" target. But > if I run "ant start_jrun", this time jRun will start as expected (which > means there's no problem with my "start_jrun" target). > > Any ideas? > > I'm using Ant 1.4 + cactus 1.2 + JRun 3.1 on Windows 2000. > > BTW: If I use "parallel","sequential","junit","java" tasks in the > "tests_jrun" target, I have no problem to start JRun, run tests, and stop > JRun. > > Thanks. > > Li > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
