You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/06/29 17:52:04 UTC

[jira] [Closed] (LUCENE-6071) java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47

     [ https://issues.apache.org/jira/browse/LUCENE-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe Schindler closed LUCENE-6071.
---------------------------------
    Resolution: Not A Problem
      Assignee: Uwe Schindler

This generally happens if you have mixed Lucene versions in your classpath, Please ensure that all JAR files in the container classpath (Websphere) and the webapp (yours) are of same Lucene version. Sometimes application servers contain unshaded Lucene JAR files, there is no way to work around that. If this is the case for your installation, contact the appserver company for help.

> java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47
> --------------------------------------------------------------------
>
>                 Key: LUCENE-6071
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6071
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/codecs
>    Affects Versions: 4.7.2
>         Environment: Websphere Application Server 8.5
>            Reporter: Tamer Saleh
>            Assignee: Uwe Schindler
>            Priority: Blocker
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> I have a run time error when running the below code snippet on websphere application server 8.5:
>        Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_47);
> 	IndexWriterConfig iW = new IndexWriterConfig(Version.LUCENE_47,analyzer);
> 	Directory index = new RAMDirectory();
> 	IndexWriter writer = new IndexWriter(index,iW);	 
> The error is:
> java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org