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 3619444
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:52:45+00:00 2026-05-18T22:52:45+00:00

I have installed solr-commons package through apt-get (Ubuntu 10.10). I can browse to http://localhost:8080/solr

  • 0

I have installed solr-commons package through apt-get (Ubuntu 10.10). I can browse to http://localhost:8080/solr and it works fine.

I have defined a schema like this:

<fields>
   <field name="idEmpresa" type="sint" indexed="true" stored="true" required="true" />
   <field name="nombre" type="text" indexed="true" stored="true" required="true" />
   <field name="sitioWeb" type="text" indexed="true" stored="true" required="false" />
   <field name="email" type="text" indexed="true" stored="true" required="false" />
   <field name="telefono" type="text" indexed="true" stored="true" required="false" />
 </fields>

 <!-- Field to use to determine and enforce document uniqueness. 
      Unless this field is marked with required="false", it will be a required field
   -->
 <uniqueKey>idEmpresa</uniqueKey>

 <!-- field for the QueryParser to use when an explicit fieldname is absent -->
 <defaultSearchField>nombre</defaultSearchField>

 <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
 <solrQueryParser defaultOperator="OR"/>

This is my data-config.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<dataConfig>
    <dataSource type="JdbcDataSource"
                  driver="com.mysql.jdbc.Driver"
                  url="jdbc:mysql://localhost/viajeros2_ut8"
                  user="user"
                  password="pwd"
                />

    <document>
        <entity name="empresa" query="select idEmpresa, nombre, sitioWeb, telefono, direccion from empresas WHERE 1">
        </entity>
    </document>
</dataConfig>

Finally, this is how I set up my solrconfig.xml:

 <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
    <lst name="defaults">
      <str name="config">/usr/share/solr/conf/data-config.xml</str>
    </lst>
  </requestHandler>

When I try http://localhost:8080/solr/dataimport?command=full-import I get this:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">91</int></lst><lst name="initArgs"><lst name="defaults"><str name="config">/usr/share/solr/conf/data-config.xml</str></lst></lst><str name="command">full-import</str><str name="status">idle</str><str name="importResponse"/><lst name="statusMessages"/><str name="WARNING">This response format is experimental.  It is likely to change in the future.</str>
</response>

I can’t find any logs or any other information that could help me tackle the issue and, as happened to many, the documentation available isn’t very helpful.

Any ideas will be very appreciated. 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-05-18T22:52:45+00:00Added an answer on May 18, 2026 at 10:52 pm

    If you’ve installed solr-tomcat via synaptics / apt, then Ubuntu puts the logs for tomcat (which includes Solr output) in:
    /var/log/tomcat6/catalina.out

    This will probably contain the error:
    org.apache.solr.handler.dataimport.DataImportHandlerException: Could not load driver: com.mysql.jdbc.Driver Processing Document # 1

    …which means that Solr can’t find a MySql driver for Java.

    So, install a driver:
    sudo apt-get install libmysql-java

    …and create a symlink to the driver package somewhere Solr can find it:
    sudo mkdir /usr/share/solr/lib
    cd /usr/share/solr/lib
    sudo ln -s /usr/share/java/mysql-connector-java.jar

    That seems to have gotten me to a point where I’ve managed to index a simple table from MySql, hope it helps.

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

Sidebar

Related Questions

I have installed Glassfish application server Openshift cloud servers. I can only use :8080
I have tomcat6 installed and running on Ubuntu. When I copy solr.war to /var/lib/tomcat6/webapps/solr.war
I have installed a servlet (solr) that requires that I set the variable solr.solr.home
I have installed my dependencies using bundle package Then transferred them to the offline
I have installed team foundation server 2012 express and am wanting to connect through
I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
I have installed Xampp for ubuntu. It is located in /opt/lampp. I want to
I've installed the haystack app and I'm using the solr backend. Search works perfectly
I have a VPS with Ubuntu OS. I run solr om my local machine
I have set up solr and it works. I have tested it by indexing

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.