I get the below error:
root@itlab:/home/dspace/log# java -cp
/home/dspace/lib/lucene-core-2.3.0.jar-ea:org.apache.lucene...
org.apache.lucene.index.CheckIndex /home/dspace/search/ -fix
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/index/CheckIndex
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.index.CheckIndex
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.lucene.index.CheckIndex. Program will
exit.
Our Dspace is version 1.5.2 and lucene 2.3 ...Pls chk whether the syntax of the
command I have given above is correct.
Regards,
Ribin Jones S.B
Scientist
IT LAB, Knowledge Resource Centre
CSIR - NIIST (National Institute for Interdisciplinary Science and Technology),
Govt. of India
Pappanamcode, Thiruvananthapuram - 695019
Kerala, India
www.niist.res.in
Mob: +91 9895226242
----- Original Message -----
From: "helix84" <[email protected]>
To: "ribin jones" <[email protected]>
Cc: "dspace-tech" <[email protected]>
Sent: Wednesday, May 22, 2013 2:14:20 PM
Subject: Re: [Dspace-tech] Internal server error while doing keyword search
That means that the error is also triggered when indexing, not just
when querying the index. Try this to fix the index structure:
java -cp /home/dspace/lib/lucene-core-3.5.0.jar
-ea:org.apache.lucene... org.apache.lucene.index.CheckIndex
/home/dspace/search -fix
This assumes DSpace 3. If you're using an older version, lucene-core
version may also be different.
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette