Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JForum - no such method error on Lucene

 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say that you have two different versions of Lucene in your classpath which are colliding.
 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly, But even after the removal of one of the versions i am encountering the same exception.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic