Hi,

I want to transfer my solr project to mac os leopard so I installed xampp
for mac and Tomcat 6.0.18.

Everything works fine except for the dataimporthandler in solr, I get this
error message:
"org.apache.solr.handler.dataimport.DataImportHandlerException: Failed to
initialize DataSource: mydb Processing Document # at
org.apache.solr.handler.dataimport.DataImporter.getDataSourceInstance(DataImporter.java:308)
at "

it seems failing in my data-config.xml file strange thing though the exact
same file structure works under windows. Anyway here is the file:
"<dataConfig>
<dataSource type="JdbcDataSource" name="mydb" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/mydb" user="root" password=""/>

  <document>

         <entity name="newlift.ci_todo" dataSource="newlift"
transformer="TemplateTransformer" query="select *, 'newlift.ci_todo' from
ci_todo">
                        
                                <field column="id" 
template="${newlift.ci_todo.newlift.ci_todo}, id:
${newlift.ci_todo.td_id}"/>     
                                
        </entity>

  </document>

</dataConfig>"

I have no idea what could cause the error. The only difference to my windows
system is that xampp and the tomcat container are running seperatedly
because of the fact that there is no xampp tomcat plugin for mac os but
without the dataimporthandler solr is working just fine anyways.

Ideas?

best regards, Sebastian 
-- 
View this message in context: 
http://www.nabble.com/MacOS-%22Failed-to-initialize-DataSource%3Adb%22%2B-DataimportHandler-----tp23263640p23263640.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to