Harald, we use the scala-library.jar file in our production OSGi
environment.  Works fine there.

On Mon, Aug 8, 2011 at 12:11 PM, Harald Wellmann <[email protected]> wrote:
> Are you sure the scala-library.jar is an OSGi bundle? Or did you use
> wrapBundle() to turn it into a bundle on the fly?
>
> Best regards,
> Harald
>
> Am 08.08.2011 18:31, schrieb Samuel Cox:
>>
>> 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.
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to