You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Brian Wolf <br...@gmail.com> on 2009/10/31 09:09:21 UTC

noob - no search screen

 Hi,

I installed everything following almost exactly following the Nutch for
Dummies  online guide.


Problem: not able to get search screen, get default Tomcat screen.


I installed everything following almost exactly following the Nutch for
Dummies  online guide.

I ran a crawl  on the nutch site,  it told me it worked. Great!

My crawl directory is this:

C:\nutch2\nutch-0.9\crawl100



This pasted into nutch-site.xml

under

C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\nutch-0.9\WEB-INF\classes

Like so:


<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<property>
    <name>searcher.dir</name>
    <value>C:\nutch2\nutch-0.9\crawl100\</value>
  </property>

</configuration>


I restarted Tomcat using the windows Tomcat manager, but default screen
only, no  search
Part of tomcat log



Oct 31, 2009 12:58:21 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 31, 2009 12:58:21 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4576 ms
Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 31, 2009 12:58:24 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive nutch-0.9.war
Oct 31, 2009 12:58:28 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 31, 2009 12:58:28 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 31, 2009 12:58:28 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/121  config=null
Oct 31, 2009 12:58:28 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6808 ms


Thank you!

Re: noob - no search screen

Posted by Brian Wolf <br...@gmail.com>.
thanks for your help,I thought of that too, but actually it works fine, I
think cygwin handles windows style directory

routing; <EXCEPT> spaces. The problem was that I needed this address
http://localhost:8080/nutch-0.9/ to find the page.

this is quoted from tutorial, which is wrong, but I never:used JSP before,
so I thought there was maybe something else controlling the routing.

"Open up a browser and enter the url http://localhost:8080. The
nuttchsearch page should appear.
 "

There is one more error which causes Nutch 0.9 not to work out of the box,
regarding


 line 151 in the  /search.jsp where this

<jsp:include page=”<%=language + "/include/header.html"%>" />

must be replaced with this

<jsp:include page="<%=language + \"/include/header.html\"%>" />

Konstantin Kolinko on the Tomcat list helped me with that.


On Sat, Oct 31, 2009 at 7:02 PM, rengan xu <hfutxrg@gmail
com> wrote:

> It seems like that your searcher.dir is wrong, you should write like this
> "C:/nutch2/nutch-0.9/crawl100", even in windows .
> because Nutch should run in Linux, when in windows, cygwin needs to be
> installed. And everything should be done as in Linux.
>
> 2009/10/31 Brian Wolf <br...@gmail.com>
>
> >  Hi,
> >
> > I installed everything following almost exactly following the Nutch for
> > Dummies  online guide.
> >
> >
> > Problem: not able to get search screen, get default Tomcat screen.
> >
> >
> > I installed everything following almost exactly following the Nutch for
> > Dummies  online guide.
> >
> > I ran a crawl  on the nutch site,  it told me it worked. Great!
> >
> > My crawl directory is this:
> >
> > C:\nutch2\nutch-0.9\crawl100
> >
> >
> >
> > This pasted into nutch-site.xml
> >
> > under
> >
> > C:\Program Files\Apache Software Foundation\Tomcat
> > 6.0\webapps\nutch-0.9\WEB-INF\classes
> >
> > Like so:
> >
> >
> > <?xml version="1.0"?>
> > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> >
> > <!-- Put site-specific property overrides in this file. -->
> >
> > <configuration>
> >
> > <property>
> >    <name>searcher.dir</name>
> >    <value>C:\nutch2\nutch-0.9\crawl100\</value>
> >  </property>
> >
> > </configuration>
> >
> >
> > I restarted Tomcat using the windows Tomcat manager, but default screen
> > only, no  search
> > Part of tomcat log
> >
> >
> >
> > Oct 31, 2009 12:58:21 AM org.apache.coyote.http11.Http11Protocol init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > Oct 31, 2009 12:58:21 AM org.apache.catalina.startup.Catalina load
> > INFO: Initialization processed in 4576 ms
> > Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardService start
> > INFO: Starting service Catalina
> > Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> > Oct 31, 2009 12:58:24 AM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive nutch-0.9.war
> > Oct 31, 2009 12:58:28 AM org.apache.coyote.http11.Http11Protocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8080
> > Oct 31, 2009 12:58:28 AM org.apache.jk.common.ChannelSocket init
> > INFO: JK: ajp13 listening on /0.0.0.0:8009
> > Oct 31, 2009 12:58:28 AM org.apache.jk.server.JkMain start
> > INFO: Jk running ID=0 time=0/121  config=null
> > Oct 31, 2009 12:58:28 AM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 6808 ms
> >
> >
> > Thank you!
> >
>
>
>
> --
> --
> Regards,
> Xu, Rengan
>
> School of Computer Science and Information Engineering,
> Hefei University of Technology, Hefei 230009, China
>

Re: noob - no search screen

Posted by rengan xu <hf...@gmail.com>.
It seems like that your searcher.dir is wrong, you should write like this
"C:/nutch2/nutch-0.9/crawl100", even in windows .
because Nutch should run in Linux, when in windows, cygwin needs to be
installed. And everything should be done as in Linux.

2009/10/31 Brian Wolf <br...@gmail.com>

>  Hi,
>
> I installed everything following almost exactly following the Nutch for
> Dummies  online guide.
>
>
> Problem: not able to get search screen, get default Tomcat screen.
>
>
> I installed everything following almost exactly following the Nutch for
> Dummies  online guide.
>
> I ran a crawl  on the nutch site,  it told me it worked. Great!
>
> My crawl directory is this:
>
> C:\nutch2\nutch-0.9\crawl100
>
>
>
> This pasted into nutch-site.xml
>
> under
>
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\nutch-0.9\WEB-INF\classes
>
> Like so:
>
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
>
> <!-- Put site-specific property overrides in this file. -->
>
> <configuration>
>
> <property>
>    <name>searcher.dir</name>
>    <value>C:\nutch2\nutch-0.9\crawl100\</value>
>  </property>
>
> </configuration>
>
>
> I restarted Tomcat using the windows Tomcat manager, but default screen
> only, no  search
> Part of tomcat log
>
>
>
> Oct 31, 2009 12:58:21 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Oct 31, 2009 12:58:21 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 4576 ms
> Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Oct 31, 2009 12:58:21 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> Oct 31, 2009 12:58:24 AM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive nutch-0.9.war
> Oct 31, 2009 12:58:28 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Oct 31, 2009 12:58:28 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Oct 31, 2009 12:58:28 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/121  config=null
> Oct 31, 2009 12:58:28 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 6808 ms
>
>
> Thank you!
>



-- 
-- 
Regards,
Xu, Rengan

School of Computer Science and Information Engineering,
Hefei University of Technology, Hefei 230009, China