[Webtest] ClassNotFoundException when using scriptStep

Trent Ohannessian webtest@lists.canoo.com
Thu, 25 May 2006 11:48:59 -0500


------=_Part_93763_29626925.1148575739838
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello again,

I'm trying to use scriptStep to execute some JavaScript and I'm getting the
following error:

[scriptStep]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
scriptStep "submit the form" (3/4)
[scriptStep] ERROR (org.apache.bsf.BSFManager) - Exception :
[scriptStep] java.lang.ClassNotFoundException:
org.apache.bsf.engines.javascript.JavaScriptEngine
[scriptStep]    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
... blah blah blah ...
[scriptStep]    at org.apache.tools.ant.launch.Launcher.main(Launcher.java
:67)
[scriptStep]  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: R_1217.
[scriptStep]  INFO (com.canoo.webtest.steps.Step) - Exception thrown from
this class: com.canoo.webtest.engine.StepExecutionException
[scriptStep]  INFO (com.canoo.webtest.steps.Step) - Message was: Error
invoking script: java.lang.ClassNotFoundException:
org.apache.bsf.engines.javascript.JavaScriptEngine
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully
created.

I looked in my classpath and the bsf-20060503.jar is in the lib dir under
Canoo Web Test.  The rest of the jar files are obviously being picked up
because the test even runs.  One would think that if the classpath was outta
whack it wouldn't even run the first two steps in this test (the scriptStep
being the third step).

Any ideas?

Thanks!
Trent

------=_Part_93763_29626925.1148575739838
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello again,<br><br>I'm trying to use scriptStep to execute some JavaScript and I'm getting the following error:<br><br>[scriptStep]&nbsp; INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt; Start Step: scriptStep &quot;submit the form&quot; (3/4)
<br>[scriptStep] ERROR (org.apache.bsf.BSFManager) - Exception :<br>[scriptStep] java.lang.ClassNotFoundException: org.apache.bsf.engines.javascript.JavaScriptEngine<br>[scriptStep]&nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java
:199)<br>... blah blah blah ...<br>[scriptStep]&nbsp;&nbsp;&nbsp; at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)<br>[scriptStep]&nbsp; INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1217.<br>[scriptStep]&nbsp; INFO (
com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException<br>[scriptStep]&nbsp; INFO (com.canoo.webtest.steps.Step) - Message was: Error invoking script: java.lang.ClassNotFoundException
: org.apache.bsf.engines.javascript.JavaScriptEngine<br>&nbsp;INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.<br><br>I looked in my classpath and the bsf-20060503.jar is in the lib dir under Canoo Web Test.&nbsp; The rest of the jar files are obviously being picked up because the test even runs.&nbsp; One would think that if the classpath was outta whack it wouldn't even run the first two steps in this test (the scriptStep being the third step).
<br><br>Any ideas?<br><br>Thanks!<br>Trent<br>

------=_Part_93763_29626925.1148575739838--