[Webtest] Use Ant version 1.6.2 with Webtest build 649
Koorosh Vakhshoori
webtest@lists.canoo.com
Wed, 12 Jan 2005 17:05:30 -0800
Hi all,
Recently I got the latest Webtest, build# 649. I found out after some
hard work that I need to also upgrade my ANT to version 1.6.2. It seems
sometime between Webtest build 598 and 649 the version of xercesImpl.jar
was upgraded to xercesImpl-2.6.2.jar. I was getting the following error:
[testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this
class: java.lang.NoSuchMethodError
[testSpec] ERROR (com.canoo.webtest.steps.Step) - Cannot handle unexpected
exception in step InvokePage at file:../modules/login.xml:5: with
(save="loginPage", stepId="goto login page", url="Login", stepType="invoke")
[testSpec] java.lang.NoSuchMethodError:
org.apache.xerces.xni.Augmentations.removeAllItems()V
It turns out that buried in ANT installation there is a version of the same
xercesImpl.jar file, and ANT uses that and not the one shipped with
WebTest. Rather than spending additional time trying to figure out how to
make ANT to use the one from WebTest, I just upgraded my ANT version.
Hope this note, saves others from spending unneeded debugging time.
Take care,
Koorosh