cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Clark <co...@clark.ws>
Subject Re: Help me to find Compatable JDBC jar for Apache Cassandra 2.0.4
Date Wed, 22 Jan 2014 17:52:40 GMT
Is the jar on the path?  Is cassandra home set correctly?

Looks like cassandra cant find the jar-verify existence by searching.

--
Colin
+1 320 221 9531



On Jan 22, 2014, at 11:50 AM, Chiranjeevi Ravilla <rccassandra14@gmail.com>
wrote:

Hi  All,

I am using Apache Cassandra 2.0.4  version with cassandra-jdbc-1.2.5.jar.I
am trying to run sample java program. aim getting below error. Please
correct me weather i am using right Jdbc driver or suggest me  supported
jdbc driver.


log4j:WARN No appenders could be found for logger
(org.apache.cassandra.cql.jdbc.CassandraDriver).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/cassandra/cql/jdbc/AbstractJdbcType
at
org.apache.cassandra.cql.jdbc.CassandraConnection.<init>(CassandraConnection.java:146)
at
org.apache.cassandra.cql.jdbc.CassandraDriver.connect(CassandraDriver.java:92)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:233)
at CassandraTest.main(CassandraTest.java:12)
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.cql.jdbc.AbstractJdbcType
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)


Thanks in Advance..

--Chiru

Mime
View raw message