wood burning stoves 2.0*
The moose likes JForum and the fly likes JForum - no such method error on Lucene Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "JForum - no such method error on Lucene" Watch "JForum - no such method error on Lucene" New topic
Author

JForum - no such method error on Lucene

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

Hi Guys,
I have integrated JForum into my application. But I am getting this error. Please somebody help me with this. I have used lucene in my search module. I think it's the cause for this. I am not sure about it.



Regards,
Deepak

Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

I would say that you have two different versions of Lucene in your classpath which are colliding.
Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

Exactly, But even after the removal of one of the versions i am encountering the same exception.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

This sort of problem usually comes from having one version of a library in your development environment, and a different version in deployment. The exception specifically means that the class net.jforum.search.LuceneSettings was compiled against a version of Lucene that had a method FSDirectory FSDirectory.getDirectory(String), and the runtime version does not.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JForum - no such method error on Lucene
 
Similar Threads
hibernate-servlet
Class Not Found Exception
Error in deploying web services in axis2 when deployed on https
Trouble in setting up JFORUM with Eclipse as a Tomcat Project
Allocate exception for servlet AxisServlet