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" <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_YN0UQILws5LxiHl
>0UMSHcx1HOXvooqVgod85DbS&m=DgBFXI6SnwLs-KZ4iYaH6oaILBnR6DSJHIloMLKIrp8&s=-
>bVufG7EPgmW-V_ya5J9YMQDMKwuR14YORhwW6IAU2o&e=
>
>Sematext:
>https://urldefense.proofpoint.com/v2/url?u=https-3A__sematext.com_blog_201
>6_04_26_solr-2D6-2Das-2Djdbc-2Ddata-2Dsource_&d=CwIGaQ&c=zzHkMf6HMoOvCB4yT
>Pe0Gg&r=oMPffnCI8igMuHU_-rBzYXM4_YN0UQILws5LxiHl0UMSHcx1HOXvooqVgod85DbS&m
>=DgBFXI6SnwLs-KZ4iYaH6oaILBnR6DSJHIloMLKIrp8&s=-KJ2iAt0odQ4BrkKaxc-TgJ0wkL
>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.

Reply via email to