Re: Solr vs JDBC driver

2016-05-31 Thread Joel Bernstein
You mentioned that you had to use Class.foreName() for other drivers as well. Possibly there is something in your setup that is suppressing the driver auto loading. Joel Bernstein http://joelsolr.blogspot.com/ On Tue, May 31, 2016 at 8:30 AM, Vachon, Jean-Sébastien < jvac...@cebglobal.com> wrote:

Re: Solr vs JDBC driver

2016-05-31 Thread Vachon , Jean-Sébastien
I am using Java 8 (JDK 1.8.091) and it’s an application layer on top of Solr 6 using SolrJ. Here is the section of my pom.xml org.apache.solr solr-solrj 6.0.0 I had to manually load the driver (“org.apache.solr.client.solrj.io.sql.DriverImpl") to

Re: Solr vs JDBC driver

2016-05-28 Thread Joel Bernstein
The driver is included in /META-INF/services/java.sql.Driver. So if you're using JDBC 4.0, the driver should be autoloaded. What version of java are you running? Joel Bernstein http://joelsolr.blogspot.com/ On Fri, May 27, 2016 at 8:16 PM, Vachon, Jean-Sébastien < jvac...@cebglobal.com> wrote:

Re: Solr vs JDBC driver

2016-05-27 Thread Vachon , Jean-Sébastien
Never mindŠ I had to load the class just like any database driver: Class.forName("org.apache.solr.client.solrj.io.sql.DriverImpl").newInstance (); On 2016-05-27, 2:59 PM, "Vachon, Jean-Sébastien" wrote: >Hi All, > > > >I am trying to use Solr¹s JDBC driver in Java and I¹m stuck with the >fo

Solr vs JDBC driver

2016-05-27 Thread Vachon , Jean-Sébastien
Hi All, I am trying to use Solr’s JDBC driver in Java and I’m stuck with the following error message: 14:52:37,802 ERROR [consoleLogger] java.sql.SQLException: No suitable driver found for jdbc:solr://10.28.213.133:2181/solr?collection=Current My pom.xml contains: org.apache.solr solr-sol