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
<dependency> <groupId>org.apache.solr</groupId> <artifactId>solr-solrj</artifactId> <version>6.0.0</version> </dependency> I had to manually load the driver (“org.apache.solr.client.solrj.io.sql.DriverImpl") to make it work (no big deal). My connection string is as follows: "jdbc:solr://10.28.213.133:2181?collection=Current1" Is there something wrong in my setup? Thanks On 2016-05-28, 9:42 AM, "Joel Bernstein" <joels...@gmail.com> wrote: >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 >https://urldefense.proofpoint.com/v2/url?u=http-3A__joelsolr.blogspot.com_ >&d=CwIFaQ&c=zzHkMf6HMoOvCB4yTPe0Gg&r=-x-rme77PLDQ3ZHnf9yvFvYlNUI3MVyqcKj3K >lyZF0A&m=pZojVpq10BZok4-rElqKq3mXwoUx8HsGwFK0hhWGqAE&s=IEvtNH443siONK2tXX4 >IPdFocT4Kc0JnwY-eqITAteg&e= > >On Fri, May 27, 2016 at 8:16 PM, Vachon, Jean-Sébastien < >jvac...@cebglobal.com> wrote: > >> Never mindŠ I had to load the class just like any database driver: >> >> >> >>Class.forName("org.apache.solr.client.solrj.io.sql.DriverImpl").newInstan >>ce >> (); >> >> >> >> >> On 2016-05-27, 2:59 PM, "Vachon, Jean-Sébastien" <jvac...@cebglobal.com> >> wrote: >> >> >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: >> > >> > >> > >> ><dependency> >> > >> > >> > >> ><groupId>org.apache.solr</groupId> >> > >> > >> > >> ><artifactId>solr-solrj</artifactId> >> > >> > >> > >> ><version>6.0.0</version> >> > >> > >> > >> ></dependency> >> > >> > >> > >> >I looked at different posts: >> > >> > >> > >> >Yonnik¹s: >> > >> >>https://urldefense.proofpoint.com/v2/url?u=http-3A__yonik.com_solr-2D6_&d >>= >> >>>CwIGaQ&c=zzHkMf6HMoOvCB4yTPe0Gg&r=oMPffnCI8igMuHU_-rBzYXM4_YN0UQILws5Lxi >>>Hl >> >>>0UMSHcx1HOXvooqVgod85DbS&m=DgBFXI6SnwLs-KZ4iYaH6oaILBnR6DSJHIloMLKIrp8&s >>>=- >> >bVufG7EPgmW-V_ya5J9YMQDMKwuR14YORhwW6IAU2o&e= >> > >> >Sematext: >> > >> >>https://urldefense.proofpoint.com/v2/url?u=https-3A__sematext.com_blog_20 >>1 >> >>>6_04_26_solr-2D6-2Das-2Djdbc-2Ddata-2Dsource_&d=CwIGaQ&c=zzHkMf6HMoOvCB4 >>>yT >> >>>Pe0Gg&r=oMPffnCI8igMuHU_-rBzYXM4_YN0UQILws5LxiHl0UMSHcx1HOXvooqVgod85DbS >>>&m >> >>>=DgBFXI6SnwLs-KZ4iYaH6oaILBnR6DSJHIloMLKIrp8&s=-KJ2iAt0odQ4BrkKaxc-TgJ0w >>>kL >> >l7vTOWmYbSmnpVYM&e= >> > >> > >> > >> >And I seem to meet all the requirements >> > >> > >> > >> >Any idea on what I¹m doing wrong? >> > >> > >> > >> >Thanks >> > >> > >> > >> > >> > >> > >> > >> >CEB Canada Inc. Registration No: 1781071. Registered office: 199 Bay >> >Street Commerce Court West, # 2800, Toronto, Ontario, Canada, M5L 1AP. >> > >> > >> > >> > >> > >> > >> > >> >This e-mail and/or its attachments are intended only for the use of the >> >addressee(s) and may contain confidential and legally privileged >> >information belonging to CEB and/or its subsidiaries, including SHL. If >> >you have received this e-mail in error, please notify the sender and >> >immediately, destroy all copies of this email and its attachments. The >> >publication, copying, in whole or in part, or use or dissemination in >>any >> >other way of this e-mail and attachments by anyone other than the >> >intended person(s) is prohibited. >> > >> > >> > >> > >> > >> >> >> >> CEB Canada Inc. Registration No: 1781071. Registered office: 199 Bay >> Street Commerce Court West, # 2800, Toronto, Ontario, Canada, M5L 1AP. >> >> This e-mail and/or its attachments are intended only for the use of the >> addressee(s) and may contain confidential and legally privileged >> information belonging to CEB and/or its subsidiaries, including SHL. If >>you >> have received this e-mail in error, please notify the sender and >> immediately, destroy all copies of this email and its attachments. The >> publication, copying, in whole or in part, or use or dissemination in >>any >> other way of this e-mail and attachments by anyone other than the >>intended >> person(s) is prohibited. >> >> CEB Canada Inc. Registration No: 1781071. Registered office: 199 Bay Street Commerce Court West, # 2800, Toronto, Ontario, Canada, M5L 1AP. This e-mail and/or its attachments are intended only for the use of the addressee(s) and may contain confidential and legally privileged information belonging to CEB and/or its subsidiaries, including SHL. If you have received this e-mail in error, please notify the sender and immediately, destroy all copies of this email and its attachments. The publication, copying, in whole or in part, or use or dissemination in any other way of this e-mail and attachments by anyone other than the intended person(s) is prohibited.