[Webtest] Installation problems

webtest@lists.canoo.com webtest@lists.canoo.com
Mon, 12 May 2003 23:31:59 +0000


I installed Canoo on Win2k and the test using installTest.xml runs fine, but I 
would prefer to use it on Linux.  However, when I try to run the ant -buildfile 
installTest.xml on Linux, I get the error below.  This is my classpath:

.:/usr/local/apache-ant-1.5.3-1/lib/ant.jar:/usr/local/apache-ant-1.5.3-
1/lib/optional.jar:/usr/local/httpunit-
1.5.3/lib/httpunit.jar:/usr/local/httpunit-
1.5.3/jars/nekohtml.jar:/usr/local/apache-ant-1.5.3-1/lib/xml-
apis.jar:/usr/local/apache-ant-1.5.3-1/lib/xercesImpl.jar:/usr/local/apache-ant-
1.5.3-1/lib

Here is the error, can someone help me out?  Thank you!  
BUILD FAILED
java.lang.NoSuchMethodError: org.apache.xerces.xni.Augmentations.clear()V
        at org.cyberneko.html.HTMLScanner.locationAugs(Unknown Source)
        at org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown Source)
        at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source)
        at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)
        at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at com.meterware.httpunit.parsing.NekoHTMLParser.parse
(NekoHTMLParser.java:41)
        at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244)
        at com.meterware.httpunit.WebResponse.getReceivedPage
(WebResponse.java:975)
        at com.meterware.httpunit.WebResponse.getDOM(WebResponse.java:427)
        at com.canoo.webtest.steps.verify.Verify.getAllElementsOfType
(Verify.java:54)
        at com.canoo.webtest.steps.verify.VerifyElementText.doExecute
(VerifyElementText.java:61)
        at com.canoo.webtest.steps.Step.execute(Step.java:56)
        at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
        at com.canoo.webtest.ant.TestSpecificationTask.execute
(TestSpecificationTask.java:55)
        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: 4 seconds