[Webtest] Installation problems

Scot Hale webtest@lists.canoo.com
Mon, 12 May 2003 20:52:34 -0700


Lisa,

I am using it on Linux RedHat 9.0 with success.  I have found that it is
easier to just use the jars that come with the distribution.  It is sort of
an on going mystery what the versions and distributions of the canoo webtest
libaries are.  So when in doubt (or when you get a parsing error such as the
one you are showing), use the ones that come with the distribution.

cheers,
Scot Hale
----- Original Message ----- 
From: <lisa.crispin@att.net>
To: <webtest@lists.canoo.com>
Sent: Monday, May 12, 2003 4:31 PM
Subject: [Webtest] Installation problems


> 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
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>