Yes, tests that use the cache will require these System props.

On Mon, Jul 1, 2013 at 7:48 PM, Pulasthi Supun <[email protected]> wrote:

> Hi Azeez,
>
> I got this error when running registry core tests, so will have to add the
> two lines in the tests right?
>
> Regards,
> Pulasthi
>
>
> On Mon, Jul 1, 2013 at 7:34 PM, Afkham Azeez <[email protected]> wrote:
>
>> Hold on. The System properties are only for tests. In the Carbon runtime,
>> these providers are obtained as OSGi services.
>>
>> In CarbonCoreActivator you will find the following entries;
>> context.registerService(AnnotationProvider.class, new
>> AnnotationProviderImpl(), null);
>>         context.registerService(CachingProvider.class, new
>> CachingProviderImpl(), null);
>>
>> Perhaps, the CachingServiceComponent set methods are not getting called.
>> Can you check?
>>
>>
>> On Mon, Jul 1, 2013 at 7:23 PM, Sameera Jayasoma <[email protected]>wrote:
>>
>>> Hi Azeez,
>>>
>>> Pulasthi got the following error while he was running the tests after
>>> the Caching changes.
>>>
>>> *Caused by: java.lang.IllegalStateException: No CachingProviders found
>>> in classpath.*
>>> *
>>> *
>>> After some digging we found out that the following system properties
>>> have been set in the caching test cases.
>>>
>>> System.getProperties().put("caching.provider.impl", new
>>> CachingProviderImpl());
>>> System.getProperties().put("annotation.provider.impl", new
>>> AnnotationProviderImpl());
>>>
>>> Where should we initialize these properties in the code base?
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> --
>>> Sameera Jayasoma,
>>> Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: [email protected]
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>**
>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> --
> Pulasthi Supun
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: [email protected]
> Mobile: +94 (71) 9258281
> Blog : http://pulasthisupun.blogspot.com/
> Git hub profile: https://github.com/pulasthi
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to