Hi,
I was not able to reproduce your problem using simple code like:
public static void main(String[] args) throws ClassNotFoundException,
SQLException {
// Register JDBC driver.
Class.forName("org.apache.ignite.IgniteJdbcDriver");
Connection conn =
DriverManager.getConnection("jdbc:ignite:cfg://cache=PersonCache@config/ignite-jdbc.xml");
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");
System.out.println(firstName);
}
}
I suppose you somehow created dependency in your code to the schema-import
demo.
Working with jdbc driver requires only basic dependencies to be in
classpath.
2016-06-19 14:18 GMT+03:00 xoraxax <[email protected]>:
> 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