Hi Rajeev,

<providers> tag is missing in your master-datasource.xml file.

can you add this and try out

        <providers>
<provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider>

<provider>org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader</provider>
</providers>

Regards,
Firzhan

On Fri, Sep 12, 2014 at 8:28 PM, Rajeev Sampath <[email protected]> wrote:

> Hi,
>
> I'm using the org.wso2.carbon.cassandra.datareader (4.3.0-SNAPSHOT) to
> expose a cassandra datasource through jndi.
> However the following exception occurs while loading:
>
> [2014-09-12 17:47:13,720] ERROR - {DataSourceRepository}  A data source
> reader cannot be found for the type 'CASSANDRA'
> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
> reader cannot be found for the type 'CASSANDRA'
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
> at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
> at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
> My datasource configuration is attached below.
> Any changes to be done to get this working? Is there a way to specify the
> data reader class in the config for the definition type 'CASSANDRA'?
>
>
>
> Thanks
> Rajeev
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to