ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Scherbakov <alexey.scherbak...@gmail.com>
Subject Re: schema import example ClassNotFoundException: org.apache.ignite.schema.H2DataSourceFactory
Date Thu, 23 Jun 2016 14:57:30 GMT

I was not able to reproduce your problem using simple code like:
public static void main(String[] args) throws ClassNotFoundException,
SQLException {

    // Register JDBC driver.

    Connection conn =

    PreparedStatement stmt = conn.prepareStatement("select firstName,
lastName from Person");

    //stmt.setInt(1, 30);

    ResultSet rs = stmt.executeQuery();

    while (rs.next()) {
        String firstName = rs.getString("firstName");

I suppose you somehow created dependency in your code to the schema-import
Working with jdbc driver requires only basic dependencies to be in

2016-06-19 14:18 GMT+03:00 xoraxax <pushvv@gmail.com>:

> In order to reproduce it you can run the schema-import example.
> Then, let's say, you can download JasperServer and add IgniteJdbcDatasource
> to the context.xml.
> In web UI you add jndi DataSource and test connection. It starts the ignite
> node and throws the exception unless I manually copy ignite-examples.jar to
> the tomcat lib folder.
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/schema-import-example-ClassNotFoundException-org-apache-ignite-schema-H2DataSourceFactory-tp5629p5741.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Best regards,
Alexei Scherbakov

View raw message