: Here is my solrconfig.xml for one of the core :
        ...
:   <lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />
:   <lib dir="../../contrib/extraction/lib" regex=".*\.jar" />
        ...
: I've added the maven dependencies like this for the solr war :
        ... 
:                                                       <dependency>
:                                                               
<groupId>org.apache.solr</groupId>
:                                                               
<artifactId>solr-cell</artifactId>
:                                                               
<classpath>shared</classpath>
:                                                       </dependency>


Doing both of these things is the precise cause of your problem.

You know have two instances of all of hte solr-cell classes in your 
classpath, at differnet levels of the hierarchy.  Due to the 
excentricities of java classloading, this is causing the classloader to 
not realize that the instance of the ExtractingRequestHandler class that 
it finds is in fact an subclass of the instance of the SolrRequestHandler 
class that it finds.

If you want to modify the war, modify the war.
If you want to load jars as a plugin, load them as plugins.

Under no circumstances should you try to do both with the same jar(s).


-Hoss

Reply via email to