The cause of that NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: scala.ScalaObject not found by pax-exam-probe [6]
On Mon, Aug 8, 2011 at 11:29 AM, Samuel Cox <[email protected]> wrote: > Hi, > > I am trying to test an OSGi service that exposes code that is easily > consumable from Scala. Consequently, I want to write my unit tests in > Scala. > > When I run them, I get the following: > > ------------------------------------------------------------------------------- > Test set: itests.ServiceTest > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.181 > sec <<< FAILURE! > testServiceInfo(itests.ServiceTest) Time elapsed: 1.162 sec <<< ERROR! > java.lang.NoClassDefFoundError: scala/ScalaObject > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) > > > I am loading scala-library.jar via the @Configuration/options > mechanism, but I'm guessing this Scala dependency needs to be loaded > earlier. > > Any ideas on how to accomplish this? I'm looking into the > tinybundles-modify-the-probe thing now. > _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
