Hi,
Your searcher.dir property should be made in:
{tomcat-webapps}/nutch_folder/WEB_INF/classes/nutch-site.xml
And <value> should be absolute path to your crawled dir ex.
/usr/local/nutch/crawl
Regards,
Bartosz
[email protected] pisze:
I have tried tomcat 6.0 and after escaping some quotes in a string in
search.jsp, it works withou error. However, it returns no results. I
suspect it is not finding the correct crawl files.
I have started tomcat in the nutch directory.
I have also added a preference to nutch:
<property>
<name>searcher.dir</name>
<value>crawl</value>
<description>
Path to root of crawl. This directory is searched (in
order) for either the file search-servers.txt, containing a list of
distributed search servers, or the directory "index" containing
merged indexes, or the directory "segments" containing segment
indexes.
</description>
</property>
Any other steps to take?
Thanks
Sam
Hi,
I just dropped Nutch web app into tomcat version 6.0.18 and it worked
fine, perhaps you should upgrade your Tomcat?
--
Sami Siren
[email protected] wrote:
Hi,
I am following the tutorial here:
http://nutch.sourceforge.net/docs/en/tutorial.html
Crawling works fine, as does the test search from the command line. When
I try to fire up tomcat after moving ROOT.war into place, I get some
errors in the tomcat logs and a page with
HTTP Status 500 - No Context configured to process this request
2009-02-19 15:55:46 WebappLoader[]: Deploy JAR
/WEB-INF/lib/xerces-2_6_2.jar to C:\Program Files\Apache Software
Foundation\Tomcat 4.1\webapps\ROOT\WEB-INF\lib\xerces-2_6_2.jar
2009-02-19 15:55:47 ContextConfig[] Parse error in default web.xml
org.apache.commons.logging.LogConfigurationException: User-specified log
class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or
is
not useable.
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1225)
............ etc.
So it looks like the root of the error is default web.xml, not in the
Log4JLogger - although I know very little about Java. I haven't played
with it for a few years.
Anyone know what is going on here?
versions/info:
nutch 0.9
Tomcat 4.1
jre1.5.0_08
jdk1.6.0_12
NUTCH_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_12
Thanks!
Sam