Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6593325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:40:04+00:00 2026-05-25T17:40:04+00:00

I have written a custom KeepWord filter factory and have put the resultant jar

  • 0

I have written a custom KeepWord filter factory and have put the resultant jar under solr/lib directory.
But when starting solr I am getting this error

SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.custom.solr.analysis.MyKeepWordFilterFactory'
    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
    at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:404)
    at org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:83)
    at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
    at org.apache.solr.schema.IndexSchema.readAnalyzer(IndexSchema.java:941)
    at org.apache.solr.schema.IndexSchema.access$100(IndexSchema.java:62)
    at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:450)
    at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:435)
    at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:480)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:125)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
    ...
    Caused by: java.lang.ClassNotFoundException: org.custom.solr.analysis.MyKeepWordFilterFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    ...

This is the content of my solr instance directory.

>$ ls solr/*
solr/README.txt

solr/conf:
admin-extra.html             mapping-ISOLatin1Accent.txt  scripts.conf                    stopwords.txt                velocity/ elevate.xml                  protwords.txt               solrconfig.xml               stopwords_en.txt             xslt/ mapping-FoldToASCII.txt      schema.xml                   spellings.txt                synonyms.txt

solr/data:
index/        spellchecker/

solr/lib:
my-solr-analyserfilter.jar

The content of the jar file

>$ unzip -l solr/lib/my-solr-analyserfilter.jar 
Archive:  solr/lib/ctown-solr-analyserfilter.jar
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  09-23-11 23:07   META-INF/
       60  09-23-11 23:07   META-INF/MANIFEST.MF
     3330  09-23-11 23:07   org/custom/analysis/MyKeepWordFilterFactory.class
 --------                   -------
     3390                   3 files

I am using solr version 3.4.0. As per documentation – https://wiki.apache.org/solr/SolrPlugins#How_to_Load_Plugins – keeping the jar file under lib directory should have made solr detect the jar. But apparently it’s not happening. What am I doing wrong? Kindly help me in resolving this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:40:05+00:00Added an answer on May 25, 2026 at 5:40 pm

    Couple of things –
    1. org.custom.solr.analysis.MyKeepWordFilterFactory does not match the contents of your jar file org/custom/analysis/MyKeepWordFilterFactory.class. The solr package is missing.
    2. If it still does not find it. Check if the entry in solrconfig.xml is uncommented and the jar file is loaded when the server starts up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a custom request handler in solr to meet my business requirements.
I have written a custom client socket factory for RMI, so that if direct
I have written a custom shell script function, and put in in my .profile
I have written a custom class to handle database queries to a remote and
I have written a custom class for overriding the seek method of QSlider. Basically
I have written a custom Django Model Field to store dateutil.relativedelta 's. The field
I have written a custom Windows Service that writes data to a custom Event
I have written a custom server control which (pseudo-code) looks like public class MyCustomCtrl
I'm using nant to build our product and have written a custom task to
I have a custom built application framework written in PHP which I have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.