[Webtest] Problems using webtest on SUSE

Sascha Wirfler Sascha Wirfler <sascha.wirfler@interactivedata.com>
Fri, 20 Apr 2007 15:08:21 +0200


Hi Marc,

i started it again, using -debug as you recommended, but there is 
nothing like com.sun ... (output see below)

But upgrading to the latest build is the next thing i'll try.

Thanks so far,
Sascha


--------------------------
BUILD FAILED
/home/candrei/aaa_JOB_PROJEKTE/webtests/MDG_Laris_tests/localConfig.xml:37: 
The following error occurred while executing this line:
/home/candrei/aaa_JOB_PROJEKTE/webtests/MDG_Laris_tests/modules/taskdef.xml:22: 
taskdef A class needed by class com.canoo.webtest.extension.StoreDigest 
cannot be found: com/canoo/webtest/steps/locator/TableNotFound
        at 
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at 
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:142)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: 
/home/candrei/aaa_JOB_PROJEKTE/webtests/MDG_Laris_tests/modules/taskdef.xml:22: 
taskdef A class needed by class com.canoo.webtest.extension.StoreDigest 
cannot be found: com/canoo/webtest/steps/locator/TableNotFound
        at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:487)
        at 
org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:304)
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:223)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)
        at 
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:140)
        ... 9 more
Caused by: java.lang.NoClassDefFoundError: 
com/canoo/webtest/steps/locator/TableNotFound
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
        ... 16 more
--- Nested Exception ---
/home/candrei/aaa_JOB_PROJEKTE/webtests/MDG_Laris_tests/modules/taskdef.xml:22: 
taskdef A class needed by class com.canoo.webtest.extension.StoreDigest 
cannot be found: com/canoo/webtest/steps/locator/TableNotFound
        at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:487)
        at 
org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:304)
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:223)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)
        at 
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:140)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NoClassDefFoundError: 
com/canoo/webtest/steps/locator/TableNotFound
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
        ... 16 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: 
com/canoo/webtest/steps/locator/TableNotFound
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
        at 
org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:304)
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:223)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:131)
        at 
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:140)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at 
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
        at org.apache.tools.ant.Main.runBuild(Main.java:653)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
------------------


Marc Guillemot schrieb:
> strange as both classes are in the same jar file.
> 
> Or maybe an idea: which JDK do you use? The one from Sun. If I correctly
> remember some sun specific classes have been used for a long time, that
> are only available in Sun JDK.
> If you start your build with -debug, perhaps will you see that the class
> causing problem is not TableNotFound but some com.sun....
> 
> In all cases, I recommend to upgrade to the latest build.
> 
> Marc.
> 
> Sascha Wirfler wrote:
>> Hi there,
>>
>> yesterday i experienced a strange problem running webtest on a SUSE system:
>>
>>
>> BUILD FAILED
>> /home/xxx/yyy/webtests/zzz/localConfig.xml:37: The following error
>> occurred while executing this line:
>> /home/xxx/yyy/webtests/zzz/modules/taskdef.xml:22: taskdef A class
>> needed by class com.canoo.webtest.extension.StoreDigest cannot be found:
>> com/canoo/webtest/steps/locator/TableNotFound
>>
>>
>> Error occured on both SUSE 10.2 and 10.0. (Java 1.5.0).
>>
>> The used webtest package (R_1365) runs on Windows, Ubuntu and Fedora
>> without any problems (= exactly the same files).
>>
>>
>> Any ideas?
>>
>> Thanks in advance,
>> Sascha
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest


-- 
Sascha Wirfler | Professional Services
Interactive Data Managed Solutions AG
---------------------------------------------------------------
Sandweg 94 | 60316 Frankfurt am Main | Germany
Tel: +49 (0)69 50 50 30 192 | Fax: +49 (0)69 50 50 30 505
sascha.wirfler@interactivedata.com | www.interactivedata-ms.com
---------------------------------------------------------------
Amtsgericht Frankfurt am Main | HRB 49611
Vorstand: Stephan Wolf (Vorsitzender), Carsten Dirks
Aufsichtsratvorsitzender: Mark Hepsworth