On 1/21/2016 12:21 PM, Bob Lawson wrote:
Thanks.  I tried what you said and sill have problems.  I removed sharedLib
from solr.xml, so solr.xml is back to its original state.  I then placed a
lib directory containing my jar into the solr home directory, which is
/solr-5.4.0/server/solr.  I then ran bin/solr start -e cloud -noprompt

Received error:  Error CREATEing SolrCore 'gettingstarted_shard1_replica2':
Unable to create core [gettingstarted_shard1_replica2] Caused by:
com.oracle.querygen.plugin.DraQueryComponent

Log said:  Error loading class 'com.rwl.querygen.plugin.MyQueryComponent'

Obviously, it can't find the jar containing MyQueryComponent.  I know I'm
doing something wrong, but I'm stuck again.  Thanks in advance for any
further advice.

Do you by chance have <lib> elements in your solrconfig.xml that load this jar? When you use $SOLRHOME/lib, you should *not* use <lib> in solrconfig.xml. Some jars seem to have problems when they are loaded more than once. There have been a number of bugs related to this. The most recent is SOLR-6188. One of the older bugs is SOLR-4852.

Can you delete the solr log, restart Solr, and put the new log somewhere (like gist, or a paste website) that we can view it? This will include a lot of information that can help pinpoint what's happening.

Thanks,
Shawn

Reply via email to