You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Michael Taggart <mi...@webco.tv> on 2005/12/10 02:39:13 UTC

Nutch Tomcat5 or.apache.jasper.JasperException

Hi all,
I am a total newb with nutch and tomcat, but I have followed the steps
outlined in http://lucene.apache.org/nutch/tutorial.html#Getting+Started
and was able to get the nutch page to show up when I go to
mydomain:8080. However, my problem is when I run a search. Here is the
following output when I run a search:

HTTP Status 500 - 

________________________________________________________________________

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException
	org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
	org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request, org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
	org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[]) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
	java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)

root cause 

java.lang.NullPointerException
	org.apache.nutch.searcher.NutchBean.init(java.io.File, java.io.File) (Unknown Source)
	org.apache.nutch.searcher.NutchBean.NutchBean(java.io.File) (Unknown Source)
	org.apache.nutch.searcher.NutchBean.NutchBean() (Unknown Source)
	org.apache.nutch.searcher.NutchBean.get(javax.servlet.ServletContext) (Unknown Source)
	org.apache.jsp.search_jsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
	org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-runtime-5.0.30.jar.so)
	javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
	javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
	org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request, org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
	org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[]) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
	java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)

I have no idea what is causing this error. Any ideas. If it makes a difference I am running this installation on a FC4 box.
Thanks for any insight anyone can provide.
Mike

Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by RJ <ry...@sympatico.ca>.
 Thanks Bill,

        "Build Successful"


----- Original Message ----- 
From: "Bill Goffe" <go...@Oswego.EDU>
To: <nu...@lucene.apache.org>
Sent: Sunday, December 11, 2005 12:59 AM
Subject: Re: Nutch Tomcat5 or.apache.jasper.JasperException


> RJ said:
>
> > (nutch-0.7.1 won't recompile on my setup which is, freebsd5.4,
> > apache-ant and jdk1.4.2. However, nutch-0.7 will compile for me and that
> > is why I'm using it)
>
> I believe that if you go to src/plugin/nutch-extensionpoints and create
> the empty directories src and src/java ant will build it.
>
>          - Bill
>
> -- 
>          *------------------------------------------------------*
>          | Bill Goffe                 goffe@oswego.edu          |
>          | Department of Economics    voice: (315) 312-3444     |
>          | SUNY Oswego                fax:   (315) 312-5444     |
>          | 416 Mahar Hall             <http://cook.rfe.org>     |
>          | Oswego, NY  13126                                    |
>
*--------*------------------------------------------------------*-----------
*
> | "Making low-yield [nuclear] weapons is not a hard problem. We call them
|
> | failures."
|
> |  -- Jas Mercer-Smith, a nuclear weapons designer at Los Alamos. More
|
> |     seriously, he says that many designers don't like the idea of
|
> |     low-yield nukes as it makes their use more likely. "This is Not a
|
> |     Test," Evan Ratliff, Wired, March 2002.
|
>
*---------------------------------------------------------------------------
*
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date:
09/12/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005


Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by Bill Goffe <go...@Oswego.EDU>.
RJ said:

> (nutch-0.7.1 won't recompile on my setup which is, freebsd5.4,
> apache-ant and jdk1.4.2. However, nutch-0.7 will compile for me and that
> is why I'm using it)

I believe that if you go to src/plugin/nutch-extensionpoints and create
the empty directories src and src/java ant will build it.

         - Bill

-- 
         *------------------------------------------------------*
         | Bill Goffe                 goffe@oswego.edu          |
         | Department of Economics    voice: (315) 312-3444     |
         | SUNY Oswego                fax:   (315) 312-5444     |
         | 416 Mahar Hall             <http://cook.rfe.org>     |          
         | Oswego, NY  13126                                    |
*--------*------------------------------------------------------*-----------*
| "Making low-yield [nuclear] weapons is not a hard problem. We call them   |
| failures."                                                                |
|  -- Jas Mercer-Smith, a nuclear weapons designer at Los Alamos. More      |
|     seriously, he says that many designers don't like the idea of         |
|     low-yield nukes as it makes their use more likely. "This is Not a     |
|     Test," Evan Ratliff, Wired, March 2002.                               |
*---------------------------------------------------------------------------*


Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by RJ <ry...@sympatico.ca>.
  I'm a newb also. Nutch does have learning curve but, it's well worth it.
  Anyway, start by testing your nutch installation. Go to the parent
directory, mine is nutch-0.7, and run "ant tar". This will test the
installation to make sure you can recompile it. (nutch-0.7.1 won't recompile
on my setup which is, freebsd5.4, apache-ant and jdk1.4.2. However,
nutch-0.7 will compile for me and that is why I'm using it)

  Go to  http://wiki.media-style.com/display/nutchDocu/quick+tutorial,
follow the tutorial, it's one of the best starting point I l know of.

   Now let's start catalina.sh :
    - Go the directory you are using theses commands in "bin/nutch fetch
.................."
    - setenv, mine = setenv JAVA_HOME /usr/local/jdk1.4.2
    - now start catalina from this dircectory eg =
/usr/local/jakarta-tomcat4.1/bin/catalina.sh start

Catalina may not start, try:

    - /usr/local/jakarta-tomcat4.1/bin/catalina.sh stop
    - /usr/local/bin/tomcat41ctl stop
    - rehash
    - setenv JAVA_HOME /usr/local/jdk1.4.2
    -   /usr/local/bin/tomcat41ctl start
   -   /usr/local/jakarta-tomcat4.1/bin/catalina.sh start
   - run the above commands from the directory you use to run "bin/nutch
fetch .................."


 HTH






----- Original Message ----- 
From: "Michael Taggart" <mi...@webco.tv>
To: <nu...@lucene.apache.org>
Sent: Friday, December 09, 2005 8:39 PM
Subject: Nutch Tomcat5 or.apache.jasper.JasperException


> Hi all,
> I am a total newb with nutch and tomcat, but I have followed the steps
> outlined in http://lucene.apache.org/nutch/tutorial.html#Getting+Started
> and was able to get the nutch page to show up when I go to
> mydomain:8080. However, my problem is when I run a search. Here is the
> following output when I run a search:
>
> HTTP Status 500 -
>
> ________________________________________________________________________
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException
>
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, boolean)
(/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
(/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
>
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Reque
st, org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/libcatalina-5.0.30.jar.so)
> org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request,
org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
> org.apache.coyote.http11.Http11Processor.process(java.io.InputStream,
java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
(/usr/lib/libtomcat-http11-5.0.30.jar.so)
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
(/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
(/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
>
> root cause
>
> java.lang.NullPointerException
> org.apache.nutch.searcher.NutchBean.init(java.io.File, java.io.File)
(Unknown Source)
> org.apache.nutch.searcher.NutchBean.NutchBean(java.io.File) (Unknown
Source)
> org.apache.nutch.searcher.NutchBean.NutchBean() (Unknown Source)
> org.apache.nutch.searcher.NutchBean.get(javax.servlet.ServletContext)
(Unknown Source)
>
org.apache.jsp.search_jsp._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
>
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
(/usr/lib/libjasper5-runtime-5.0.30.jar.so)
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
>
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, boolean)
(/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
(/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
>
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Reque
st, org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/libcatalina-5.0.30.jar.so)
> org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request,
org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
> org.apache.coyote.http11.Http11Processor.process(java.io.InputStream,
java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
(/usr/lib/libtomcat-http11-5.0.30.jar.so)
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
(/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
(/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
>
> I have no idea what is causing this error. Any ideas. If it makes a
difference I am running this installation on a FC4 box.
> Thanks for any insight anyone can provide.
> Mike
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date:
09/12/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005


Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by Bill Goffe <go...@Oswego.EDU>.
Hm, I thought that catalina.sh was part of the Tomcat distribution. I just
checked http://tomcat.apache.org/download-55.cgi#5.5.12 and got the core
binary distribution and catalina.sh is in the bin directory. It is also in
the source distribution. 

Also, I've been using Nutch with version 5 for some time (I suspect many
on this list have been doing the same).

        - Bill

Michael said:

> Thanks for the reply. However everyone keeps mentioning catalina.sh but
> I don't have one on my system. I think this is due in part to the fact
> that I installed tomcat5. Seemed logical to install version 5 because
> yum was already setup to install it. Rather, I have been going to my
> ROOT directory and executing /usr/bin/tomcat5 start. Have you worked
> with tomcat5 before? Maybe nutch is incompatible.
> Mike
> On Sat, 2005-12-10 at 20:11 +0800, Nguyen Ngoc Giang wrote:
> > It seems that you are running Tomcat at the wrong place. Make sure that you
> > have to put the "db" and "segments" directory at the place you run Tomcat.
> > For example, if you put your Nutch file under ROOT and "db" and "segments"
> > are also there, then you should move to ROOT and start Tomcat as
> > "../../bin/catalina.sh run"
> > 
> > On 12/10/05, Michael Taggart <mi...@webco.tv> wrote:
> > >
> > > Hi all,
> > > I am a total newb with nutch and tomcat, but I have followed the steps
> > > outlined in http://lucene.apache.org/nutch/tutorial.html#Getting+Started
> > > and was able to get the nutch page to show up when I go to
> > > mydomain:8080. However, my problem is when I run a search. Here is the
> > > following output when I run a search:
> > >
> > > HTTP Status 500 -
> > >
> > > ________________________________________________________________________
> > >
> > > type Exception report
> > >
> > > message
> > >
> > > description The server encountered an internal error () that prevented
> > > it from fulfilling this request.
> > >
> > > exception
> > >
> > > org.apache.jasper.JasperException
> > >         org.apache.jasper.servlet.JspServletWrapper.service(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> > > compiler-5.0.30.jar.so)
> > >         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse, java.lang.String,
> > > java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> > >         org.apache.jasper.servlet.JspServlet.service(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > > compiler-5.0.30.jar.so)
> > >         javax.servlet.http.HttpServlet.service(
> > > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > > (/usr/lib/libservletapi5-5.0.30.jar.so)
> > >         org.apache.catalina.valves.ErrorReportValve.invoke(
> > > org.apache.catalina.Request, org.apache.catalina.Response,
> > > org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
> > >         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> > > org.apache.coyote.Request, org.apache.coyote.Response)
> > > (/usr/lib/libcatalina-5.0.30.jar.so)
> > >         org.apache.coyote.http11.Http11Processor.process(
> > > java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> > > http11-5.0.30.jar.so)
> > >
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > > (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> > > (/usr/lib/libtomcat-http11-5.0.30.jar.so)
> > >         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> > > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> > >         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> > > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> > >         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> > >
> > > root cause
> > >
> > > java.lang.NullPointerException
> > >         org.apache.nutch.searcher.NutchBean.init(java.io.File,
> > > java.io.File) (Unknown Source)
> > >         org.apache.nutch.searcher.NutchBean.NutchBean(java.io.File)
> > > (Unknown Source)
> > >         org.apache.nutch.searcher.NutchBean.NutchBean() (Unknown Source)
> > >         org.apache.nutch.searcher.NutchBean.get(
> > > javax.servlet.ServletContext) (Unknown Source)
> > >         org.apache.jsp.search_jsp._jspService(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse) (Unknown Source)
> > >         org.apache.jasper.runtime.HttpJspBase.service(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > > runtime-5.0.30.jar.so)
> > >         javax.servlet.http.HttpServlet.service(
> > > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > > (/usr/lib/libservletapi5-5.0.30.jar.so)
> > >         org.apache.jasper.servlet.JspServletWrapper.service(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> > > compiler-5.0.30.jar.so)
> > >         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse, java.lang.String,
> > > java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> > >         org.apache.jasper.servlet.JspServlet.service(
> > > javax.servlet.http.HttpServletRequest,
> > > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > > compiler-5.0.30.jar.so)
> > >         javax.servlet.http.HttpServlet.service(
> > > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > > (/usr/lib/libservletapi5-5.0.30.jar.so)
> > >         org.apache.catalina.valves.ErrorReportValve.invoke(
> > > org.apache.catalina.Request, org.apache.catalina.Response,
> > > org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
> > >         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> > > org.apache.coyote.Request, org.apache.coyote.Response)
> > > (/usr/lib/libcatalina-5.0.30.jar.so)
> > >         org.apache.coyote.http11.Http11Processor.process(
> > > java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> > > http11-5.0.30.jar.so)
> > >
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > > (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> > > (/usr/lib/libtomcat-http11-5.0.30.jar.so)
> > >         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> > > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> > >         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> > > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> > >         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> > >
> > > I have no idea what is causing this error. Any ideas. If it makes a
> > > difference I am running this installation on a FC4 box.
> > > Thanks for any insight anyone can provide.
> > > Mike
> > >

-- 
         *------------------------------------------------------*
         | Bill Goffe                 goffe@oswego.edu          |
         | Department of Economics    voice: (315) 312-3444     |
         | SUNY Oswego                fax:   (315) 312-5444     |
         | 416 Mahar Hall             <http://cook.rfe.org>     |          
         | Oswego, NY  13126                                    |
*--------*------------------------------------------------------*-----------*
| "Retreat? Hell, we just got here."                                        |
|   -- Captain Lloyd William, U.S. Marine Corps, on the suggestion of       |
|      retreating French soldiers that his Marines retreat as well at the   |
|      Battle of Belleau Wood on June 4, 1918. "The First World War," John  |
|      Keegan, p. 407.                                                      |
*---------------------------------------------------------------------------*


Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by Michael Taggart <mi...@webco.tv>.
Nguyen,
Thanks for the reply. However everyone keeps mentioning catalina.sh but
I don't have one on my system. I think this is due in part to the fact
that I installed tomcat5. Seemed logical to install version 5 because
yum was already setup to install it. Rather, I have been going to my
ROOT directory and executing /usr/bin/tomcat5 start. Have you worked
with tomcat5 before? Maybe nutch is incompatible.
Mike
On Sat, 2005-12-10 at 20:11 +0800, Nguyen Ngoc Giang wrote:
> It seems that you are running Tomcat at the wrong place. Make sure that you
> have to put the "db" and "segments" directory at the place you run Tomcat.
> For example, if you put your Nutch file under ROOT and "db" and "segments"
> are also there, then you should move to ROOT and start Tomcat as
> "../../bin/catalina.sh run"
> 
> On 12/10/05, Michael Taggart <mi...@webco.tv> wrote:
> >
> > Hi all,
> > I am a total newb with nutch and tomcat, but I have followed the steps
> > outlined in http://lucene.apache.org/nutch/tutorial.html#Getting+Started
> > and was able to get the nutch page to show up when I go to
> > mydomain:8080. However, my problem is when I run a search. Here is the
> > following output when I run a search:
> >
> > HTTP Status 500 -
> >
> > ________________________________________________________________________
> >
> > type Exception report
> >
> > message
> >
> > description The server encountered an internal error () that prevented
> > it from fulfilling this request.
> >
> > exception
> >
> > org.apache.jasper.JasperException
> >         org.apache.jasper.servlet.JspServletWrapper.service(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> > compiler-5.0.30.jar.so)
> >         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, java.lang.String,
> > java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> >         org.apache.jasper.servlet.JspServlet.service(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > compiler-5.0.30.jar.so)
> >         javax.servlet.http.HttpServlet.service(
> > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > (/usr/lib/libservletapi5-5.0.30.jar.so)
> >         org.apache.catalina.valves.ErrorReportValve.invoke(
> > org.apache.catalina.Request, org.apache.catalina.Response,
> > org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
> >         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> > org.apache.coyote.Request, org.apache.coyote.Response)
> > (/usr/lib/libcatalina-5.0.30.jar.so)
> >         org.apache.coyote.http11.Http11Processor.process(
> > java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> > http11-5.0.30.jar.so)
> >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> > (/usr/lib/libtomcat-http11-5.0.30.jar.so)
> >         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> >         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> >         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> >
> > root cause
> >
> > java.lang.NullPointerException
> >         org.apache.nutch.searcher.NutchBean.init(java.io.File,
> > java.io.File) (Unknown Source)
> >         org.apache.nutch.searcher.NutchBean.NutchBean(java.io.File)
> > (Unknown Source)
> >         org.apache.nutch.searcher.NutchBean.NutchBean() (Unknown Source)
> >         org.apache.nutch.searcher.NutchBean.get(
> > javax.servlet.ServletContext) (Unknown Source)
> >         org.apache.jsp.search_jsp._jspService(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse) (Unknown Source)
> >         org.apache.jasper.runtime.HttpJspBase.service(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > runtime-5.0.30.jar.so)
> >         javax.servlet.http.HttpServlet.service(
> > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > (/usr/lib/libservletapi5-5.0.30.jar.so)
> >         org.apache.jasper.servlet.JspServletWrapper.service(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> > compiler-5.0.30.jar.so)
> >         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, java.lang.String,
> > java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
> >         org.apache.jasper.servlet.JspServlet.service(
> > javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> > compiler-5.0.30.jar.so)
> >         javax.servlet.http.HttpServlet.service(
> > javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> > (/usr/lib/libservletapi5-5.0.30.jar.so)
> >         org.apache.catalina.valves.ErrorReportValve.invoke(
> > org.apache.catalina.Request, org.apache.catalina.Response,
> > org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
> >         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> > org.apache.coyote.Request, org.apache.coyote.Response)
> > (/usr/lib/libcatalina-5.0.30.jar.so)
> >         org.apache.coyote.http11.Http11Processor.process(
> > java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> > http11-5.0.30.jar.so)
> >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> > (/usr/lib/libtomcat-http11-5.0.30.jar.so)
> >         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> >         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> > (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
> >         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> >
> > I have no idea what is causing this error. Any ideas. If it makes a
> > difference I am running this installation on a FC4 box.
> > Thanks for any insight anyone can provide.
> > Mike
> >

Re: Nutch Tomcat5 or.apache.jasper.JasperException

Posted by Nguyen Ngoc Giang <gi...@gmail.com>.
It seems that you are running Tomcat at the wrong place. Make sure that you
have to put the "db" and "segments" directory at the place you run Tomcat.
For example, if you put your Nutch file under ROOT and "db" and "segments"
are also there, then you should move to ROOT and start Tomcat as
"../../bin/catalina.sh run"

On 12/10/05, Michael Taggart <mi...@webco.tv> wrote:
>
> Hi all,
> I am a total newb with nutch and tomcat, but I have followed the steps
> outlined in http://lucene.apache.org/nutch/tutorial.html#Getting+Started
> and was able to get the nutch page to show up when I go to
> mydomain:8080. However, my problem is when I run a search. Here is the
> following output when I run a search:
>
> HTTP Status 500 -
>
> ________________________________________________________________________
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException
>         org.apache.jasper.servlet.JspServletWrapper.service(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> compiler-5.0.30.jar.so)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, java.lang.String,
> java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>         org.apache.jasper.servlet.JspServlet.service(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> compiler-5.0.30.jar.so)
>         javax.servlet.http.HttpServlet.service(
> javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> (/usr/lib/libservletapi5-5.0.30.jar.so)
>         org.apache.catalina.valves.ErrorReportValve.invoke(
> org.apache.catalina.Request, org.apache.catalina.Response,
> org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
>         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> org.apache.coyote.Request, org.apache.coyote.Response)
> (/usr/lib/libcatalina-5.0.30.jar.so)
>         org.apache.coyote.http11.Http11Processor.process(
> java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> http11-5.0.30.jar.so)
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> (/usr/lib/libtomcat-http11-5.0.30.jar.so)
>         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
>         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
>         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
>
> root cause
>
> java.lang.NullPointerException
>         org.apache.nutch.searcher.NutchBean.init(java.io.File,
> java.io.File) (Unknown Source)
>         org.apache.nutch.searcher.NutchBean.NutchBean(java.io.File)
> (Unknown Source)
>         org.apache.nutch.searcher.NutchBean.NutchBean() (Unknown Source)
>         org.apache.nutch.searcher.NutchBean.get(
> javax.servlet.ServletContext) (Unknown Source)
>         org.apache.jsp.search_jsp._jspService(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) (Unknown Source)
>         org.apache.jasper.runtime.HttpJspBase.service(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> runtime-5.0.30.jar.so)
>         javax.servlet.http.HttpServlet.service(
> javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> (/usr/lib/libservletapi5-5.0.30.jar.so)
>         org.apache.jasper.servlet.JspServletWrapper.service(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-
> compiler-5.0.30.jar.so)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, java.lang.String,
> java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
>         org.apache.jasper.servlet.JspServlet.service(
> javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-
> compiler-5.0.30.jar.so)
>         javax.servlet.http.HttpServlet.service(
> javax.servlet.ServletRequest, javax.servlet.ServletResponse)
> (/usr/lib/libservletapi5-5.0.30.jar.so)
>         org.apache.catalina.valves.ErrorReportValve.invoke(
> org.apache.catalina.Request, org.apache.catalina.Response,
> org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
>         org.apache.coyote.tomcat5.CoyoteAdapter.service(
> org.apache.coyote.Request, org.apache.coyote.Response)
> (/usr/lib/libcatalina-5.0.30.jar.so)
>         org.apache.coyote.http11.Http11Processor.process(
> java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-
> http11-5.0.30.jar.so)
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
> (/usr/lib/libtomcat-http11-5.0.30.jar.so)
>         org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
> (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
>         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
> (/tmp/libtomcat-util-5.0.30.jar.so46imxs.so)
>         java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
>
> I have no idea what is causing this error. Any ideas. If it makes a
> difference I am running this installation on a FC4 box.
> Thanks for any insight anyone can provide.
> Mike
>