[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to