scalatest 1.0 not work for scala 2.8.0.Beta1

8 views
Skip to first unread message

Ford Guo

unread,
Jan 29, 2010, 9:16:39 AM1/29/10
to scalatest-users
HI,
I use the scalatest1.0.1-for 2.8.0 Beta1 RC8,and scala 2.8.0 Beta1,I
get the error:

org.apache.maven.surefire.booter.SurefireExecutionException: scala/
List; nested exception is java.lang.NoClassDefFoundError: scala/List
java.lang.NoClassDefFoundError: scala/List
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at org.testng.internal.TestNGClassFinder.<init>
(TestNGClassFinder.java:54)
at org.testng.TestRunner.initMethods(TestRunner.java:289)
at org.testng.TestRunner.init(TestRunner.java:235)
at org.testng.TestRunner.init(TestRunner.java:197)
at org.testng.TestRunner.<init>(TestRunner.java:141)
at org.testng.SuiteRunner
$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:488)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:250)
at org.testng.SuiteRunner.run(SuiteRunner.java:204)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:912)
at org.testng.TestNG.runSuitesLocally(TestNG.java:876)
at org.testng.TestNG.run(TestNG.java:784)
at org.apache.maven.surefire.testng.TestNGExecutor.run
(TestNGExecutor.java:62)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute
(TestNGDirectoryTestSuite.java:141)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main
(SurefireBooter.java:1009)
Caused by: java.lang.ClassNotFoundException: scala.List
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass
(IsolatedClassLoader.java:103)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
398)
... 24 more

Is there any idea?

Ford Guo

unread,
Jan 29, 2010, 11:30:16 AM1/29/10
to scalatest-users
It's ok now,maybe my maven dependencies are conflicting.

Ford Guo


--
You received this message because you are subscribed to the Google
Groups "scalatest-users" group.
To post to this group, send email to scalate...@googlegroups.com
To unsubscribe from this group, send email to
scalatest-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest

Josh Cough

unread,
Jan 29, 2010, 11:33:14 AM1/29/10
to scalate...@googlegroups.com
i can try to put out a snapshot today, against beta1, if that helps.

Bill Venners

unread,
Jan 29, 2010, 12:12:53 PM1/29/10
to scalate...@googlegroups.com
Hi Ford,

Just to verify my understanding: you were able to get that ScalaTest snapshot release to work by tweaking your Maven config? 

Thanks.

Bill
----
Bill Venners
Artima, Inc.

Ford Guo

unread,
Jan 30, 2010, 2:52:07 AM1/30/10
to scalate...@googlegroups.com
HI,Bill
   Maybe,But I clean all my relative projects and rerun them again,they all ok now.
  Thanks for all responses.
  and It's better have a scalatest for Scala 2.8.0.Beta1 :)

Ford Guo
Reply all
Reply to author
Forward
0 new messages