You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by David Xiao <da...@gmail.com> on 2007/04/19 19:17:37 UTC
FW: CustomAnalyzer Class not loaded error
Hello all,
In schema.xml, I have following definition:
<fieldtype name="text" class="solr.TextField">
<analyzer type="index" class="jeasy.analysis.MMAnalyzer">
And I have put je-analysis-1.5.1.jar into solr-1.1.0-incubating/example/lib/
But when I type: java –jar start.jar, it reports error as following, and failed to start. I have test this JAR with lucene 2.1.0 and it works fine as a customized analyzer.
If you can give some advice, I will appreciate that. Sorry I was not able to provide source code of this MMAnalyzer class for detail investigation, because its close source to me.
Regards,
David
Start.jar reports Error as following:
Caused by: java.lang.ClassNotFoundException: jeasy.analysis.MMAnalyzer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
…………………….
org.apache.solr.core.SolrException: Error loading class 'jeasy.analysis.MMAnalyzer'
at org.apache.solr.core.Config.findClass(Config.java:208)
at org.apache.solr.core.Config.newInstance(Config.java:213)
…………………….
Re: FW: CustomAnalyzer Class not loaded error
Posted by Chris Hostetter <ho...@fucit.org>.
: And I have put je-analysis-1.5.1.jar into solr-1.1.0-incubating/example/lib/
that is Jetty's lib directory, if you take al ook at teh SolrPlugins wiki,
you'll see this bit...
http://wiki.apache.org/solr/SolrPlugins
"Plugin code can be loaded into Solr by putting Jars containing your
classes in a lib directory in your Solr Home directory prior to starting
your servlet container."
The "Solr Home" directory is where the ./conf, ./data directories live, in
your install i'm guessing the directory you want to create is..
solr-1.1.0-incubating/example/solr/lib/
... the README.txt in the Solr Home also mentions this...
http://svn.apache.org/repos/asf/lucene/solr/trunk/example/solr/README.txt
-Hoss