[
https://issues.apache.org/jira/browse/LUCENE-6882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994667#comment-14994667
]
Martin Gainty commented on LUCENE-6882:
---------------------------------------
I wanted to add a custom codec class called Lucene54
i enabled by editing
core/src/resources/META-INF/services/org.apache.lucene.codecs.Codec
recompile,rejar and placed on classpath the new codec is now discovered
by org.apache.lucene.util.NamedSPILoader lookup('Lucene54')
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# as of 11/01/2015 the only class present is
org.apache.lucene.codecs.lucene53.Lucene53Codec
org.apache.lucene.codecs.FilterCodec
org.apache.lucene.codecs.lucene50.Lucene50Codec
org.apache.lucene.codecs.lucene53.Lucene53Codec
org.apache.lucene.codecs.lucene54.Lucene54Codec
BTW:maven pom.xml works like a charm for recompiling,packaging and running and
reporting on testcases...
Let me know if you would like a copy
Thanks Mike!
M-
> java.lang.NoClassDefFoundError:
> org/apache/lucene/codecs/lucene54/Lucene54Codec
> -------------------------------------------------------------------------------
>
> Key: LUCENE-6882
> URL: https://issues.apache.org/jira/browse/LUCENE-6882
> Project: Lucene - Core
> Issue Type: Bug
> Components: -tools
> Affects Versions: 5.3
> Environment: maven 3.2.5
> JDK 1.8
> Reporter: Martin Gainty
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> -------------------------------------------------------------------------------
> Test set: org.apache.lucene.analysis.ar.TestArabicAnalyzer
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.159 sec <<<
> FAILURE! - in org.apache.lucene.analysis.ar.TestArabicAnalyzer
> org.apache.lucene.analysis.ar.TestArabicAnalyzer Time elapsed: 0.156 sec
> <<< ERROR!
> java.lang.NoClassDefFoundError:
> org/apache/lucene/codecs/lucene54/Lucene54Codec
> at
> org.apache.lucene.util.LuceneTestCase.<clinit>(LuceneTestCase.java:606)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:581)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.lucene.codecs.lucene54.Lucene54Codec
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.apache.lucene.util.LuceneTestCase.<clinit>(LuceneTestCase.java:606)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:581)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]