I just wanted to give an update on this problem. I decided to reinstall Solr 5.4.0 and try again, following the simplest procedure I could.
First I created a single core collection called 'test'. I modified solrconfig.xml to use my plugin. I created a lib directory under the test folder. The lib directory contains the jar with my plugin. I restarted Solr with bin/solr start, and everything ran perfectly. I then stopped Solr with bin/solr stop. I then copied the exact same solrconfig.xml file to /solr-5.4.0/server/solr/configsets/data_driven_schema_configs/conf. I copied the exact same lib directory to /solr-5.4.0/server/solr. I tried to launch the cloud gettingstarted example by executing: bin/solr start -e cloud -noprompt. I received the following error: *ERROR: Failed to create collection 'gettingstarted' due to: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at http://10.0.2.15:7574/solr <http://10.0.2.15:7574/solr>: Error CREATEing SolrCore 'gettingstarted_shard2_replica2': Unable to create core [gettingstarted_shard2_replica2] Caused by: com.rwl.querygen.plugin.MyQueryComponent* The log file error was: *ERROR - 2016-01-21 20:46:36.498; [c:gettingstarted s:shard2 r:core_node2 x:gettingstarted_shard2_replica1] org.apache.solr.core.CoreContainer; Error creating core [gettingstarted_shard2_replica1]: Error loading class 'com.rwl.querygen.plugin.MyQueryComponent'* It certainly looks like Solr is looking somewhere else for my jar file, but I followed the guide and advice on this thread to the letter. Cleary, there is nothing wrong with my solrconfig.xml or my lib directory, because they work fine with the simpler single core instantiation. Once again, I appreciate those who have taken time to help and appreciate any continued support I can get. Thanks!!! On Thu, Jan 21, 2016 at 2:22 PM, Bob Lawson <bwlawson...@gmail.com> wrote: > Correction: > > 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.rwl.querygen.plugin.MyQueryComponent > > 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. > > On Thu, Jan 21, 2016 at 2:21 PM, Bob Lawson <bwlawson...@gmail.com> 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. >> >> On Thu, Jan 21, 2016 at 2:04 PM, Shawn Heisey <apa...@elyograg.org> >> wrote: >> >>> On 1/21/2016 11:13 AM, Bob Lawson wrote: >>> > I am working with the gettingstarted example from the Solr Quick Start >>> > guide. I developed a couple of Solr plugins and I want to tell Solr >>> where >>> > to find them, and I'm following this >>> > <https://wiki.apache.org/solr/SolrPlugins> guide to do it. For a >>> single >>> > core it was easy, I just put them in a lib directory under the instance >>> > directory. But now I am trying it with multiple cores. In >>> > /solr-5.4.0/server/solr, I updated the solr.xml file with sharedLib as >>> > follows: >>> > >>> > <solr> >>> > >>> > <solrcloud> >>> > >>> > * <str name="sharedLib">${sharedLib:}</str>* >>> <snip> >>> > But when I start up Solr, the log says: Unknown configuration >>> parameter in >>> > <solrcloud> section of solr.xml: sharedLib >>> >>> The sharedLib parameter is not for SolrCloud, it is for Solr in >>> general. Put it in the <solr> section, not the <solrcloud> section. >>> >>> If you are going to use the default location (which is $SOLRHOME/lib ... >>> $SOLRHOME is where solr.xml lives), then you do not need to include the >>> sharedLib configuration at all. >>> >>> Thanks, >>> Shawn >>> >>> >> >