Hi Udara,

On Wed, Aug 7, 2013 at 3:26 PM, Udara Rathnayake <[email protected]> wrote:

> Hi,
>
> I configured BAM- Cassandra feature with Enterprise-store and was able to
> convert the sample kpi-definition application into a jaggery app without
> any issues.
>
> When i try to run another jaggery app with the following simple script to
> connect with cassandra,
>
> *var db = new
> Database("jdbc:cassandra://localhost:9160/EVENT_KS?version=2.0.0","admin","admin",{"driverClassName":"org.apache.cassandra.cql.jdbc.CassandraDriver"});
> *
>
> found this error,
> *Error connecting to the database :
> jdbc:cassandra://localhost:9160/EVENT_KS?version=2.0.0
> java.lang.ClassNotFoundException:
> org.apache.cassandra.cql.jdbc.CassandraDriver*
>
> to overcome this error i have downloaded[1] and added under the
> repository/components/lib.
> after that I got the following,
>
> *java.lang.NoClassDefFoundError:
> org/apache/cassandra/cql/jdbc/AbstractJdbcType*
>
> Then I merged provided apache-cassandra_1.1.3.wso2v3.jar with downloaded
> cassandra-jdbc-1.2.5.jar and created a new jar(attached). This works fine !
>
> Is there any wso2-versioned jar which i can use in this scenario ?
>

sorry for the late reply.. yes. we have cassandra-jdbc jar as orbit bundle
[1].. This is compatible with the Cassandra server versions 1.1.0 or
higher.. For the older Cassandra versions we need to use
cassandra-jdbc-1.0.5 version.

[1]. 
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/dependencies/orbit/cassandra-jdbc/1.1.1.wso2v1/


Regards,
Dinusha.

>
> [1].
> http://code.google.com/a/apache-extras.org/p/cassandra-jdbc/downloads/detail?name=cassandra-jdbc-1.2.5.jar&can=2&q=
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog    : http://udarakr.blogspot.com
>
>


-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to