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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:09:57
Script start
Timing: Jan 19 2025 01:09:57
Module start 'layout'
Timing: Jan 19 2025 01:09:57
Module start 'content'
Timing: Jan 19 2025 01:09:58
Module end 'content'
Timing: Jan 19 2025 01:09:58
Script end

Main resources:

Total runtime1.2571 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.1563152.6250
Module start 'layout' 0.00450.0029 741.781339.4609
Module start 'content' 0.00751.2479 781.2422465.6953
Module end 'content' 1.25540.0016 1,246.93758.1719
Script end 1.2570  1,255.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2525160.0002
Check MTime0.00130.1056160.0001
Mysql Total
Database connection0.00060.049410.0006
Mysqli_queries1.205195.8701540.0223
Looping result0.00060.0476520.0000
Template Total1.224597.420.6122
Template load0.00180.140620.0009
Template processing1.222797.267320.6114
Template load and register function0.00030.022710.0003
states
state_id_array0.00060.048010.0006
state_identifier_array0.00230.182120.0011
Override
Cache load0.00170.1354350.0000
Sytem overhead
Fetch class attribute can translate value0.00170.137720.0009
Fetch class attribute name0.00140.108120.0007
XML
Image XML parsing0.00020.018720.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00180.1432100.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs