On 8/6/2013 6:15 AM, Spadez wrote: > Hi, > > I am running Solr4 on Jetty9 and I am trying to include the JDBC drivers for > both MySQL and PostgreSQL. I'm a little confused about how I do this. > > I beleive these to be the two files I need: > http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.26.tar.gz > http://jdbc.postgresql.org/download/postgresql-9.2-1003.jdbc4.jar > > I am a little confused about where to put these files, in which folder I > should be putting them. Could anyone help me?
Typically ${solr.solr.home}/lib is the best place for additional jars needed AFTER Solr begins initializing, like the dataimport handler jar, JDBC jars for mysql or another database, ICU analysis jars, and other such things. If you have not explicitly set solr.solr.home, it defaults to "./solr" -- relative to the current working directory of the process that actually starts the servlet container that runs Solr. This is the directory where solr.xml (which describes your cores) lives. Just create a lib directory here and put your extra jars in it. The lib directory I have described is NOT the right place to put the logging jars for version 4.3 and later. Those need to go into a directory accessible to your servlet container, BEFORE Solr starts initializing. Thanks, Shawn