You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Michael Wechner <mi...@wyona.com> on 2005/04/16 11:32:25 UTC
Starting the webapp and finding the segments
Hi
According to the Tutorial
http://incubator.apache.org/nutch/tutorial.html#Searching
one needs to start the servlet container within the directory where the
segments
directory is located.
Because I often forget this I receive a NullPointerException and then
after some time
I remember that I started Tomcat from the wrong directory.
I think it would make sense if the segments directory could be specified
within
the web.xml and also in case the segments directory cannot be found a
"nice" Exception
would be thrown telling one what might be wrong.
WDYT?
Thanks
Michi
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
Re: Starting the webapp and finding the segments
Posted by Michael Wechner <mi...@wyona.com>.
Doug Cutting wrote:
> Michael Wechner wrote:
>
>> one needs to start the servlet container within the directory where
>> the segments directory is located.
>>
>> Because I often forget this I receive a NullPointerException and then
>> after some time I remember that I started Tomcat from the wrong
>> directory.
>>
>> I think it would make sense if the segments directory could be
>> specified within
>> the web.xml and also in case the segments directory cannot be found a
>> "nice" Exception
>> would be thrown telling one what might be wrong.
>
>
> Sounds good to me. Would you like to prepare a patch?
ok, will try to do so
Michi
>
> Doug
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
Re: Starting the webapp and finding the segments
Posted by Doug Cutting <cu...@nutch.org>.
Michael Wechner wrote:
> one needs to start the servlet container within the directory where the
> segments directory is located.
>
> Because I often forget this I receive a NullPointerException and then
> after some time I remember that I started Tomcat from the wrong directory.
>
> I think it would make sense if the segments directory could be specified
> within
> the web.xml and also in case the segments directory cannot be found a
> "nice" Exception
> would be thrown telling one what might be wrong.
Sounds good to me. Would you like to prepare a patch?
Doug