It sounds like the jar containing the MoreLikeThis class in a place that your servlet can find it. It's in contrib, something like lucene-queries<version>.jar
Best Erick On Tue, Dec 7, 2010 at 4:24 PM, starz10de <farag_ah...@yahoo.com> wrote: > > > > Hi All, > > I am using MoreLikeThis class in lucene to find more similar documents in > the index to the giving one. It works fine when I run it directly from > Eclipse but when I call it from my servlet I have this error: > > > “java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis“ > > Any idea why this error occurred? > > Thanks > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/java-lang-NoClassDefFoundError-org-apache-lucene-search-similar-MoreLikeThis-tp2036296p2036296.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >