http://stackoverflow.com/questions/43857712/could-not-initialize-class-jdbcsynonymfilterfactory :
I'm new to solr, I want to add a field type with JdbcSynonymFilter and JdbcStopFilter to solr schema. I added my data source same as instruction in this link: [Loading stopwords from Postgresql to Solr6][1] then i configured managed-schema with code below: <fieldType name="new_string" class="solr.TextField"> <analyzer> <tokenizer class="solr.PatternTokenizerFactory" pattern="[\s]+" /> <filter class="com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory" sql="SELECT concat(term, '=>', use) as line FROM thesaurus;" dataSource="jdbc/dsTest" ignoreCase="false" expand="true" /> <filter class="com.s24.search.solr.analysis.jdbc.JdbcStopFilterFactory" sql="SELECT stopword FROM stopwords" dataSource="jdbc/dsTest"/> </analyzer> </fieldType> I added solr-jdbc to dist folder, postgressql driver, beanutils and dbutils to contrib/jdbc/lib folder. Then, I included libs in solrconfig.xml of data_driven_schema_configs: <lib dir="${solr.install.dir:../../../..}/contrib/jdbc/lib" regex=".*\.jar" /> <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-jdbc-\d.*\.jar" /> I encountered the following error when I was trying to start SolrCloud. > "Could not initialize class com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory,trace=java.lang.NoClassDefFoundError: Could not initialize class com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory" [1]: http://stackoverflow.com/questions/43724758/loading-stopwords-from-postgresql-to-solr6?noredirect=1#comment74559858_43724758