Forums / Install & configuration / ezFind install problem

ezFind install problem

Author Message

Michael Hall

Thursday 06 March 2008 11:25:11 pm

I've followed the installation instructions to get ezFind running on CentOS5 with eZ4.0.0.

I have eZComponents, JRE and eZFind installed. Everything looks good but when I run start.jar, I get errors the following errors. Have I missed something or do I need to configure something?

[root@centos5 java]# java -jar start.jar
2008-03-07 16:44:01.822::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2008-03-07 16:44:02.068::INFO: jetty-6.1.3
2008-03-07 16:44:02.241::INFO: Extract jar:file:/var/www/html/extension/ezfind/java/webapps/solr.war!/ to /tmp/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp
2008-03-07 16:44:02.884::INFO: NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
7-Mar-08 4:44:03 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
7-Mar-08 4:44:03 PM org.apache.solr.core.Config getInstanceDir
INFO: JNDI not configured for Solr (NoInitialContextEx)
7-Mar-08 4:44:03 PM org.apache.solr.core.Config getInstanceDir
INFO: Solr home defaulted to 'null' (could not find system property or JNDI)
7-Mar-08 4:44:03 PM org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to 'solr/'
7-Mar-08 4:44:03 PM org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
7-Mar-08 4:44:03 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/var/www/html/extension/ezfind/java
7-Mar-08 4:44:03 PM org.apache.solr.servlet.SolrDispatchFilter init
SEVERE: Could not start SOLR. Check solr/home property
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrCore

... etc (lots more)

Mike Melli

Thursday 10 April 2008 1:58:27 pm

Just spent a bit figuring this one out myself. CentOS5 installs with an open source JRE alternative (libgcj) which is overriding your Java JRE installation.

If you haven't yet installed the Java JRE, get the RPM here:
http://www.java.com/en/download/manual.jsp

Install that, then manually relink /usr/bin/java to the new binary, which should be here:
/usr/java/jre1.6.0_05/bin/java

To relink:
ln -sf /usr/java/jre1.6.0_05/bin/java /usr/bin/java

Then try to start solr again and it should work.