Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#622 sqlite-jdbc driver not found

open
nobody
general (369)
5
2012-01-08
2012-01-08
Anonymous
No

SoapUI doesn't work with sqlite-jdbc.

I have added sqlite-jdbc library to recommended directory: soapUI-4.0.1/bin/ext/sqlitejdbc-v056.jar

On startup I get a log about adding sqlite-jdbc library to extension classpath.

My MockService Start script looks like this:

import groovy.sql.Sql
import org.sqlite.JDBC

def sql = Sql.newInstance("jdbc:sqlite:/path_to_db/", "org.sqlite.JDBC")

When I start MockService I get the following error:
java.sql.SQLException: No suitable driver found for jdbc:sqlite:/path_to_db

The same script works fine in groovyConsole.

Discussion

  • Ok, it's not a bug.
    You need to register the library with GroovyUtils.registerJdbcDriver("org.sqlite.JDBC").
    Excuse me.