[ 
https://issues.apache.org/jira/browse/SOLR-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-726:
---------------------------------------

    Attachment: SOLR-726.patch

A hackish work around to the class loader issue.

This patch tries to use SolrResourceLoader#findClass to load the Driver class. 
It tries to use DriverManager#getConnection. If that fails, we try to 
instantiate the Driver class and use the Driver#connect method directly 
bypassing the DriverManager. This workaround is documented in the 
JdbcDataSource class.

I will commit this shortly.

> driver and datasources are not loaded using the multicore lib aware 
> SolrResourceLoader
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-726
>                 URL: https://issues.apache.org/jira/browse/SOLR-726
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Walter Ferrara
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-726.patch, SOLR-726.patch
>
>
> see 
> http://www.nabble.com/dataimporthandler-and-mysql-connector-jar-td19146229.html
> The jar containing the (jdbc) driver have to be present in the java 
> classpath. Putting it in coreX/lib or in the shared lib dir of a multicore 
> solr doesn't work

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to