I want to use the Lucene to implement a Servlet in Tomcat environment.
lucene-core-3.5.0.jar is in the webapp/WEB-INF/lib/
However I still got the error as following:
Java.lang.NoSuchMethodError:
org.apache.lucene.store.FSDirectory.open(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;
After I search in goole, they say that probably some old version in the
class path.
But I never use a Lucene version lower than 3.5, it should support the
open() method
I tried to print the Lucene version:

out.println(LucenePackage.get().getImplementationTitle());
out.println(LucenePackage.get().getSpecificationVersion());
out.println(LucenePackage.get().getImplementationVendor());
out.println(LucenePackage.get().getImplementationVersion());
They all return Null
I also tried to copy the jar to the tomcat/lib directory, it doesn't work.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Using-Lucene-in-tomcat-java-lang-NoSuchMethodError-tp4006682.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

Reply via email to