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 <same...@wso2.com> 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: same...@wso2.com > 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: **az...@wso2.com* <az...@wso2.com>* 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev