Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9160147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:40:05+00:00 2026-06-17T13:40:05+00:00

I am trying to integrate apache Sonr(apache-solr-4.0.0) with Tomcat and getting below error. 15:12:40

  • 0

I am trying to integrate apache Sonr(apache-solr-4.0.0) with Tomcat and getting below error.

15:12:40    SEVERE  DataImporter    Delta Import Failed
java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: 
Could not load driver:  com.mysql.jdbc.Driver Processing Document # 1
        at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:273)
... 11 more
Caused by: org.apache.solr.common.SolrException: Error loading class ' com.mysql.jdbc.Driver'
        at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:436)
        at org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:889)
        ... 12 more
Caused by: java.lang.ClassNotFoundException:  com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(Unknown Source)

I tried below option’s of adding mysql-connector-java-5.1.22-bin.jar, but none worked

  1. added as part of war (solr.war/WEB-INF/lib )
  2. added as part of web server (Tomcat/lib)
  3. Created a new directory lib under example/solr and placed the mysql connector jar (mysql-connector-java-5.1.22-bin.jar) and refered the lib path from solr.xml.

Any help highly appreciable. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:40:07+00:00Added an answer on June 17, 2026 at 1:40 pm

    There is a trailing space in the name of the class:

    Error loading class '*** ***com.mysql.jdbc.Driver'
    

    Remove the trailing spaces.

    HIH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to integrate Sugar CRM with one of my projects. I'm using Apache
I'm trying to integrate Google Places API using Apache Camel (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE)
I have been trying to integrate Spring (3.0.4 and 3.0.5) MVC with Apache Tiles
I am trying to integrate Perf4j v0.9.16 with log4j v1.2.17. Below is Utils class
Getting java.io.EOFException while sending a large java object using AciveMQ. Below is the large
I'm working on a Spring MVC project and trying to integrate Apache Shiro for
I'm trying to create a simple Java webapp using IntelliJ (v11.1.3) and integrate it
As far as I'm concerned Spring is integrated in Apache Tomcat. Although, when trying
I have a simple Java application and I'm trying to integrate Hibernate in Spring
I'm trying to integrate some Google maps bits into my Java web app using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.