[Webtest] Adding jar files to WebTest classpath

Rich Toulouse Rich Toulouse" <Rich.Toulouse@Attachmate.com
Thu, 24 May 2007 16:18:36 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C79E59.DAF59BEE
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C79E59.DAF59BEE"


------_=_NextPart_002_01C79E59.DAF59BEE
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi there
I'm trying to test an applet and I keep getting a
ClassNotFoundException.  I am wondering how I add the jar containing the
applet to the classpath when I run WebTest.  I'm assuming that this is a
classpath issue.  I've been searching the docs and email archive, but
haven't found anything.  Is there a way to set this in the build script
or an external properties file?
=20
Here's the logging that I see:
=20
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
appletRunner (2/3)
[appletRunner]  INFO
(com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget
by applet showDocument
[appletRunner]  INFO
(com.canoo.webtest.extension.applet.AppletRunnerStep) - Executing
'C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe' with arguments:
[appletRunner]
'-Dlog4j.configuration=3Dfile:/C:/WebTest/bin/../lib/log4j.properties'
[appletRunner] '-Dlog4j.defaultInitOverride=3Dfalse'
[appletRunner]
'-Djava.protocol.handler.pkgs=3Dcom.canoo.webtest.extension.applet.runner=
'
[appletRunner] '-classpath'
[appletRunner]
'C:\WebTest\bin\..\lib\commons-logging-1.1.jar;C:\WebTest\bin\..\lib\com
mons-httpclient-3.0.1.jar;C:\WebTest\bin\..\lib\log4j-1.2.14.jar;C:\WebT
est\bin\..\lib\ant-1.6.5.jar;C:\WebTest\bin\..\lib\htmlunit-1.11.jar;C:\
WebTest\bin\..\lib\commons-codec-1.3.jar;C:\WebTest\bin\..\lib\jemmy-200
40604.jar;C:\WebTest\bin\..\lib\webtest.jar'
[appletRunner] 'com.canoo.webtest.extension.applet.runner.AppletRunner'
[appletRunner]
'C:\DOCUME~1\RichT\LOCALS~1\Temp\AppletPlugin63522.arguments'
=20
[appletRunner] The ' characters around the executable and arguments are
[appletRunner] not part of the command.
=20
[appletRunner] Using org.netbeans.jemmy.drivers.DefaultDriverInstaller
driver installer
[appletRunner]  INFO
(com.canoo.webtest.extension.applet.AbstractAppletTag) -=20
https://rich.attachmate.com/rweb/ex/Launcher.jar
[appletRunner] ERROR
(com.canoo.webtest.extension.applet.runner.AppletRunner) -
com/wrq/rweb/Launcher
[appletRunner] java.lang.ClassNotFoundException: com/wrq/rweb/Launcher
[appletRunner]  at java.lang.Class.forName0(Native Method)
[appletRunner]  at java.lang.Class.forName(Class.java:247)
[appletRunner]  at
com.canoo.webtest.extension.applet.runner.AppletRunner.createObject(Appl
etRunner.java:145)
[appletRunner]  at
com.canoo.webtest.extension.applet.runner.AppletRunner.newApplet(AppletR
unner.java:137)
[appletRunner]  at
com.canoo.webtest.extension.applet.runner.AppletRunner.run(AppletRunner.
java:81)
[appletRunner]  at
com.canoo.webtest.extension.applet.runner.AppletRunner.main(AppletRunner
.java:62)
[appletRunner]  INFO
(com.canoo.webtest.extension.applet.AppletRunnerStep) - runApplet:
exitValue was: -3
[appletRunner] ERROR
(com.canoo.webtest.extension.applet.AppletRunnerStep) - Test
com.wrq.applet.test.AppletTest failed. Exit value: -3
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Running with:
Canoo Webtest: R_1562.
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepExecutionException
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Message was: Test
com.wrq.applet.test.AppletTest failed. Exit value: -3
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Running with:
Canoo Webtest: R_1562.
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepExecutionException
[appletRunner]  INFO (com.canoo.webtest.steps.Step) - Message was: Test
com.wrq.applet.test.AppletTest failed. Exit value: -3
 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest:
R_1562.
 INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepExecutionException
 INFO (com.canoo.webtest.steps.Step) - Message was: Test
com.wrq.applet.test.AppletTest failed. Exit value: -3
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
"myTest" (C:\WebTest\rweb\rweb.xml:6: )

Thanks!
=20
Rich
=20

Rich Toulouse | Software Dev Eng in Test=20

  <http://www.attachmatewrq.com/>=20

1500 Dexter Ave N | Seattle, WA 98109 USA
206.217.7872 phone=20
rich.toulouse@attachmate.com
www.attachmate.com <http://www.attachmate.com/> =20

=20

------_=_NextPart_002_01C79E59.DAF59BEE
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16441" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial size=3D2>Hi=20
there</FONT></SPAN></DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial size=3D2>I'm =
trying to test=20
an applet and I keep getting a ClassNotFoundException.&nbsp; I am =
wondering how=20
I add the jar containing the applet to the classpath when I run =
WebTest.&nbsp;=20
I'm assuming that this is a classpath issue.&nbsp; I've been searching =
the docs=20
and email archive, but haven't found anything.&nbsp; Is there a way to =
set this=20
in the build script or an external properties file?</FONT></SPAN></DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial size=3D2>Here's =
the logging=20
that I see:</FONT></SPAN></DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial =
size=3D2>[appletRunner]&nbsp;=20
INFO (com.canoo.webtest.steps.Step) - &gt;&gt;&gt;&gt; Start Step: =
appletRunner=20
(2/3)<BR>[appletRunner]&nbsp; INFO=20
(com.canoo.webtest.steps.request.AbstractTargetAction) - -&gt; =
gotoTarget by=20
applet showDocument<BR>[appletRunner]&nbsp; INFO=20
(com.canoo.webtest.extension.applet.AppletRunnerStep) - Executing =
'C:\Program=20
Files\Java\jdk1.6.0_01\jre\bin\java.exe' with =
arguments:<BR>[appletRunner]=20
'-Dlog4j.configuration=3Dfile:/C:/WebTest/bin/../lib/log4j.properties'<BR=
>[appletRunner]=20
'-Dlog4j.defaultInitOverride=3Dfalse'<BR>[appletRunner]=20
'-Djava.protocol.handler.pkgs=3Dcom.canoo.webtest.extension.applet.runner=
'<BR>[appletRunner]=20
'-classpath'<BR>[appletRunner]=20
'C:\WebTest\bin\..\lib\commons-logging-1.1.jar;C:\WebTest\bin\..\lib\comm=
ons-httpclient-3.0.1.jar;C:\WebTest\bin\..\lib\log4j-1.2.14.jar;C:\WebTes=
t\bin\..\lib\ant-1.6.5.jar;C:\WebTest\bin\..\lib\htmlunit-1.11.jar;C:\Web=
Test\bin\..\lib\commons-codec-1.3.jar;C:\WebTest\bin\..\lib\jemmy-2004060=
4.jar;C:\WebTest\bin\..\lib\webtest.jar'<BR>[appletRunner]=20
'com.canoo.webtest.extension.applet.runner.AppletRunner'<BR>[appletRunner=
]=20
'C:\DOCUME~1\RichT\LOCALS~1\Temp\AppletPlugin63522.arguments'</FONT></SPA=
N></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial =
size=3D2>[appletRunner] The '=20
characters around the executable and arguments are<BR>[appletRunner] not =
part of=20
the command.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial =
size=3D2>[appletRunner] Using=20
org.netbeans.jemmy.drivers.DefaultDriverInstaller driver=20
installer<BR>[appletRunner]&nbsp; INFO=20
(com.canoo.webtest.extension.applet.AbstractAppletTag) - <A=20
href=3D"https://rich.attachmate.com/rweb/ex/Launcher.jar">https://rich.at=
tachmate.com/rweb/ex/Launcher.jar</A><BR>[appletRunner]=20
ERROR (com.canoo.webtest.extension.applet.runner.AppletRunner) -=20
com/wrq/rweb/Launcher<BR>[appletRunner] =
java.lang.ClassNotFoundException:=20
com/wrq/rweb/Launcher<BR>[appletRunner]&nbsp; at =
java.lang.Class.forName0(Native=20
Method)<BR>[appletRunner]&nbsp; at=20
java.lang.Class.forName(Class.java:247)<BR>[appletRunner]&nbsp; at=20
com.canoo.webtest.extension.applet.runner.AppletRunner.createObject(Apple=
tRunner.java:145)<BR>[appletRunner]&nbsp;=20
at=20
com.canoo.webtest.extension.applet.runner.AppletRunner.newApplet(AppletRu=
nner.java:137)<BR>[appletRunner]&nbsp;=20
at=20
com.canoo.webtest.extension.applet.runner.AppletRunner.run(AppletRunner.j=
ava:81)<BR>[appletRunner]&nbsp;=20
at=20
com.canoo.webtest.extension.applet.runner.AppletRunner.main(AppletRunner.=
java:62)<BR>[appletRunner]&nbsp;=20
INFO (com.canoo.webtest.extension.applet.AppletRunnerStep) - runApplet:=20
exitValue was: -3<BR>[appletRunner] ERROR=20
(com.canoo.webtest.extension.applet.AppletRunnerStep) - Test=20
com.wrq.applet.test.AppletTest failed. Exit value: =
-3<BR>[appletRunner]&nbsp;=20
INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest:=20
R_1562.<BR>[appletRunner]&nbsp; INFO (com.canoo.webtest.steps.Step) - =
Exception=20
thrown from this class:=20
com.canoo.webtest.engine.StepExecutionException<BR>[appletRunner]&nbsp; =
INFO=20
(com.canoo.webtest.steps.Step) - Message was: Test=20
com.wrq.applet.test.AppletTest failed. Exit value: =
-3<BR>[appletRunner]&nbsp;=20
INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest:=20
R_1562.<BR>[appletRunner]&nbsp; INFO (com.canoo.webtest.steps.Step) - =
Exception=20
thrown from this class:=20
com.canoo.webtest.engine.StepExecutionException<BR>[appletRunner]&nbsp; =
INFO=20
(com.canoo.webtest.steps.Step) - Message was: Test=20
com.wrq.applet.test.AppletTest failed. Exit value: -3<BR>&nbsp;INFO=20
(com.canoo.webtest.steps.Step) - Running with: Canoo Webtest:=20
R_1562.<BR>&nbsp;INFO (com.canoo.webtest.steps.Step) - Exception thrown =
from=20
this class: =
com.canoo.webtest.engine.StepExecutionException<BR>&nbsp;INFO=20
(com.canoo.webtest.steps.Step) - Message was: Test=20
com.wrq.applet.test.AppletTest failed. Exit value: -3<BR>&nbsp;INFO=20
(com.canoo.webtest.ant.WebtestTask) - Finished executing webtest =
"myTest"=20
(C:\WebTest\rweb\rweb.xml:6: )<BR></FONT></SPAN></DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial=20
size=3D2>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D701523622-24052007><FONT face=3DArial=20
size=3D2>Rich</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<P align=3Dleft><B style=3D"mso-bidi-font-weight: normal"><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #003399; FONT-FAMILY: Verdana">Rich=20
Toulouse&nbsp;</SPAN></B><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: Verdana">| =
</SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #003399; FONT-FAMILY: Verdana">Software =
Dev Eng in=20
Test</SPAN>&nbsp;</P>
<P><SPAN=20
style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Verdana; mso-bidi-font-size: =
10.0pt"><A=20
href=3D"http://www.attachmatewrq.com/"><IMG id=3D_x0000_i1025 =
height=3D21=20
src=3D"http://www.attachmate.com/images/email_sig_logo.gif" width=3D148 =
border=3D0=20
u7:shapes=3D"_x0000_i1025"></A></SPAN></P>
<P><SPAN style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana">1500=20
Dexter Ave N</SPAN> <SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #003399; FONT-FAMILY: Verdana">| =
</SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"><?XML:NAMESPACE=20
PREFIX =3D ST1 /><ST1:CITY w:st=3D"on">Seattle</ST1:CITY>, <ST1:STATE=20
w:st=3D"on">WA</ST1:STATE> <ST1:POSTALCODE =
w:st=3D"on">98109</ST1:POSTALCODE>=20
<ST1:COUNTRY-REGION w:st=3D"on">USA</SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"><BR></ST1:COUNTRY-REGION>206.217.7872=20
phone </SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"><BR>rich.toulouse@attachmate.com</SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"><BR></SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #003399; FONT-FAMILY: Verdana"><A=20
href=3D"http://www.attachmate.com/"><SPAN=20
style=3D"COLOR: #003399; TEXT-DECORATION: none; text-underline: =
none">www.attachmate.com</SPAN></A><?XML:NAMESPACE=20
PREFIX =3D O /><O:P></O:P></SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: Verdana"> =
</SPAN><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"><ST1:COUNTRY-REGION=20
w:st=3D"on"></ST1:COUNTRY-REGION></SPAN></P>
<P><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: #999999; FONT-FAMILY: =
Verdana"></SPAN></P>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_002_01C79E59.DAF59BEE--

------_=_NextPart_001_01C79E59.DAF59BEE
Content-Type: image/gif;
	name="email_sig_logo.gif"
Content-Transfer-Encoding: base64
Content-Description: email_sig_logo.gif
Content-Location: http://www.attachmate.com/images/email_sig_logo.gif

R0lGODlhlAAVANUAAAAnk5aq1djY2Fl4uwMxmFBQUEdotMjU6eXl5TRarJeXl7a2tmuGwjQ0Ndnh
8HmSyNLb7QAZjHd3d7TD4YmJiqK02fz9/vH0+qOjo8fHyOPp9BtDoYGZzGNjYxISEr3K5e3x+HGM
xiMjIyNKpMHN5qy83vj6/A87neru9ZCl0ixTqfX4+158vfr8/ff4+PLy8qe427jG4zxfr52v12aC
wN/m8rC/305vt0BerwAhkIqg0EFjsWJ/vy1MpgAAAP///yH5BAAAAAAALAAAAACUABUAAAb/wJ9Q
KFgoJJ1OIdmRYDKIoXRKrVqv2Kx2y+12Mx2Rb0wu+zwNCsrLbmMhE5LJTa9LMR6z3twQtFswDzMr
UgcPHA52VSw5GxqKbCApDxNuGXlkHkiYHgUNY0o+BXNeKzsRPWtDKRE5NpBTAxEnj7BcDicRLG0u
BWUiCxgKCwUFEgUUBR4KCmMLbCsGEQkXUjM5BDG2Q4yO21sOGxEMbQKYPg0IGGMKAgK+HhgSIpgd
VgeTIRwVNULROSMmHCBB4kAIAAR0DCRB6IcFEilC6KtQa8iFCRxCCEokpNsKFDMehAjAEQVBEyAq
aKwAQsgBHQw42GghxcQEHRI5lGj5I1yO/xsDP/T7sQLjxFogISwgIwJBhjMSkil4IcEHsA5kGriY
UuMGgQhgW53QYaGFAYQE0qpdC+BEIgcGvoZtFGDIBBUA5p54UG0AwBTiWgHYUAlGWw4JwOYAkMCQ
3MU3apFIkDcsgBGvwqElAIDDjxiU525IYQHCgAoUyCj40aABBgr1UCwQ0WHBpzN+hoBIsFjFgAEG
TgAA8Ors2uNqN9RAoSICAN/AhWf7AYPzZQMyOOdgYYIFQoQJDIzgPAJEie/Pgw8/g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