You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Sa...@mesaaz.gov on 2009/02/20 00:21:51 UTC
HTTP Status 500 - No Context configured to process this request
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
Re: HTTP Status 500 - No Context configured to process this request
Posted by Bartosz Gadzimski <ba...@o2.pl>.
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
Samuel.Greene@mesaaz.gov 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
>
> Samuel.Greene@mesaaz.gov 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
>>
>>
>
>
>
>
Re: HTTP Status 500 - No Context configured to process this request
Posted by Sa...@mesaaz.gov.
Sami,
I had been changing the configuration file in the nutch directory - once I
copied that to the Tomcat location and restarted Tomcat things started
working. Thanks for your help!
Sami Siren <ss...@gmail.com> wrote on 02/22/2009 11:51:42 PM:
> Samuel.Greene@mesaaz.gov 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
> >
> > Samuel.Greene@mesaaz.gov 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
> >>
> >>
> >
> >
> >
> >
>
Re: HTTP Status 500 - No Context configured to process this request
Posted by Sami Siren <ss...@gmail.com>.
Samuel.Greene@mesaaz.gov 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
>
> Samuel.Greene@mesaaz.gov 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
>>
>>
>
>
>
>
Re: HTTP Status 500 - No Context configured to process this request
Posted by Sa...@mesaaz.gov.
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
Samuel.Greene@mesaaz.gov 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
>
Re: HTTP Status 500 - No Context configured to process this request
Posted by Sami Siren <ss...@gmail.com>.
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
Samuel.Greene@mesaaz.gov 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
>