Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem using the data import handler with apache solr running on ubuntu 12.04 where it failes to load the mysql java driver with the error:

Could not load driver: com.mysql.jdbc.Driver

However I can see that it is loading the required file as during startup it outputs the following:

INFO: Adding 'file:/home/ubuntu/solr-4.1.0/contrib/dataimporthandler/lib/mysql-connector-java.jar' to classloader

So at this point I am a bit stuck... I've also tried putting the connector in the main lib/ folder for my solr setup as well but with no luck...

share|improve this question
up vote 1 down vote accepted

Solved this by adding the required java lib file to the lib folder inside the solr

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.