[Webtest] UnknownHostException problem after WebTest install

Peter Cruickshank webtest@lists.canoo.com
Mon, 29 Sep 2003 15:03:39 +0100


Hi guys

I've installed Webtest on my Mandrake 9.1 system, and have just hit the same 
problem reported by Wei Chena few days ago - output at the end of this 
message

Here's some more information and thoughts, which might be helpful...

I have installed webtest into /usr/local/webtest

PATH=/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/
mytest/bin:/usr/local/apache-ant-1.5.4/bin 
JAVA_HOME=/usr/java/j2sdk1.4.2_01
ANT_HOME=/usr/local/apache-ant-1.5.4
(Note - CLASSPATH is not set... could this be the problem?)

I am running Apache 2 (and the httpd daemon is running) - web root is
/var/www/html - ie webtest is outside the webroot...

I have been successfully run the Java demo scripts, so Java seems to be OK, 
it's been a while since I played with java, so I may have missed some vital 
step.

Are any changed needed to the Apache conf? - for instance, does Ant require 
jakarta to be installed? I've not used Ant before, so I'm not sure how to 
make sure that it's working...

Loads of questions I know - but I'm keen to get the hang of webtest so that I 
can be sure that the web code I'm writing actually works!

Thanks in advance for any help or ideas

Cheers

Peter

----------  

[peter@main samples]$  ant -buildfile installTest.xml
Buildfile: installTest.xml

checkANT:

mayPrintANTError:

checkWebTest:

BUILD FAILED
file:/usr/local/webtest/doc/samples/installTest.xml:9: Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught: java.net.UnknownHostException:
usrcom.canoo.webtest.engine.StepExecutionException: Unexpected exception
caught: java.net.UnknownHostException: usr
         at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:307)
         at
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:182)
         at
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:228)
         at
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:41)
         at com.canoo.webtest.steps.Step.execute(Step.java:69)
         at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
         at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.jav
a:72) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
         at org.apache.tools.ant.Task.perform(Task.java:341)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
         at org.apache.tools.ant.Main.runBuild(Main.java:609)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)


Total time: 8 seconds