Doh!  Wasn't starting WSAD with the 1.4.2 JVM, seems a slight typo in the
command line doesn't get flagged and defualts to 1.3.1

All working now

Thanks

Jon 

-----Original Message-----
From: SlinnHawkins, Jon (ELS) [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2006 10:32
To: Maven Users List
Subject: Cobertura WSAD java.lang.NoSuchMethodError: java.lang.String: me
thod split(Ljava/lang/String;)[Ljava/lang/String; not found


Hi All, 

I'm using Cobertura to perform some coverage tests.

I am running Maven from inside WSAD 5.1.1 using the external tools mechanism
(I'm assuming the Eclipse plugin won't work with WSAD)

When from WSAD I get the following exception.

 
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 86 classes to
C:\DEVWOR~2\MAVENW~1\oaf\target\generated-classes\cobertura
Cobertura: Saved information on 84 classes.
Instrument time: 2073ms

[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date [INFO]
[surefire:test] [INFO] Setting reports dir:
C:\DEVWOR~2\MAVENW~1\oaf\target/surefire-reports
java.lang.NoSuchMethodError: java.lang.String: method
split(Ljava/lang/String;)[Ljava/lang/String; not found
        at
org.apache.maven.surefire.SurefireBooter.createForkingClassLoader(SurefireBo
oter.java:291)
        at
org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:680)
Exception in thread "main" 
[ERROR] There are test failures.


However, if I run this from the command line all works as expected.

I presume this is due to the JRE being used.  I have setup the WSAD
workspace to use 1.4.2 (in the .classpath file)

But still no luck, 

Am I missing something simple ?  Any ideas ?

Thanks

Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to