Search code examples
javajdbccassandraofbiz

Cached loader got a known bad class error: Cassandra database and Apache OFBiz


I'm trying to get the OFBiz demo project off the ground with a Cassandra database. After quite some struggle i found this short guide on how to integrate those.

Following that, and using this Cassandra jdbc driver (cassandrajdbc1.1.jar) I get a bunch of exceptions thrown.

When running the project using ant load-demo start I get a lot of: org.ofbiz.entity.GenericEntityException: Cached loader got a known bad class name: org.apache.cassandra.jdbc.EmbeddedDriver

What could the issue be? Am I using the wrong jdbc driver or is it an OFBiz thing?

My entityengine.xml contents can be found here.


Solution

  • The error Cached loader got a known bad class name is thrown by OFBiz when the JDBC driver could not be found in the classpath.

    In order to make sure that OFBiz finds the JDBC driver please copy the jar into the folder:

    framework/entity/lib/jdbc/