[email protected] wrote:
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.
That is the common case, other being there is no data available.
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?
No, that should do it. Couple of things you can try:
- double check that your configuration is indeed in use the file to
check is in ${webapps}/ROOT/WEB-INF/classes/nutch-site.xml
- use absolute directory in searcher.dir, that way it does not matter
where or how you start tomcat.
you can also check that you can actually get results back from nutch
command line:
- double check $nutch-home/conf/nutch-site.xml (searcher.dir)
- execute (from command line) bin/nutch
org.apache.nutch.searcher.NutchBean <query>
--
Sami Siren
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