Looks to me like you're compiling against the jars from one version of Solr and executing against another.
/root/solr-5.2.1/server/solr/#####/conf/managed-schema yet you claim to be using 5.4.1 On Tue, Nov 7, 2017 at 12:00 PM, kumar gaurav <kg2...@gmail.com> wrote: > Hi > > I am developing my own custom filter in solr 5.4.1. > > I have created a jar of a filter class with extend to TokenizerFactory > class . > > When i loaded in to sol config and add my filter to managed-schema , i > found following error - > > org.apache.solr.common.SolrException: Could not load conf for core > ####: Plugin init failure for [schema.xml] fieldType "text_reversed": > Plugin init failure for [schema.xml] analyzer/filter: class > com.skyrim.ReverseFilterFactory. Schema file is > /root/solr-5.2.1/server/solr/#####/conf/managed-schema > > > Caused by: java.lang.ClassCastException: class com.skyrim.ReverseFilterFactory > > > Why java.lang.ClassCastException is occurring while loading a plugin ? > > > Please help someone . very much thanks in advance . > > > > > regards > > Kumar Gaurav > > Software Engineer