Hi,
I will try it right away.
Do I need to restart after changes?
/usr/local/tomcat/tomcat4/bin/catalina.sh stop
/usr/local/tomcat/tomcat4/bin/catalina.sh start
//restart tomcat
When you say over, does that mean replace the existing line with the new
lines or insert new line before existing lines having both old and new lines
in file?
Sorry I am new to this.
Lawrence
On 11/4/05, YourSoft <[EMAIL PROTECTED]> wrote:
>
> Dear Lawrence,
>
> There is a problem with the following line in the cached.jsp:
>
> String contentType = (String) metaData.get("Content-Type");
>
> In the segments data there is some times not equals "Content-Type", there
> are "content-type" or "Content-type" etc.
>
> The solution, insert these lines over the above line:
>
> for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();)
> {
> content = (String) eNum.nextElement();
> if ("content-type".equalsIgnoreCase (content)) {
> break;
> }
> }
> final String contentType = (String) metaData.get(content);
>
> Regards,
> Ferenc
>
> [EMAIL PROTECTED] wrotte:
>
> >Hello Ferenc,
> > Thanks for your reply.
> > Should I uninstall Nutch 0.7.1 and try 0.7 or 0.6
> > Is there any way to force a document's boost so it appears first for
> >keywords all the time?
> > Thanks
> >Lawrence
> >
> > On 11/4/05, YourSoft <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Dear Lawrence,
> >>
> >>There is a bug in cached.jsp.
> >>I fix it, but I have servlets, and older version of nutch.
> >>I need to check the latest cached.jsp.
> >>Please give me a litle time to report the bug solution.
> >>
> >>Regards,
> >>Ferenc
> >>
> >>
> >>
> >>[EMAIL PROTECTED] wrotte:
> >>
> >>
> >>
> >>>Hi,
> >>>I have Java 2 SDK 1.4.2, Tomcat 4.1.31 and Nutch 0.7.1 successfully
> >>>installed and a test database was created as per tutorial.
> >>>It searches fine but on some of the results when I click (cached) it
> >>>returns a "The server encountered an internal error () that prevented
> it
> >>>
> >>>
> >>>from fulfilling this request."
> >>
> >>
> >>>**
> >>>I deleted the database and re-created it but it had the same problem on
> >>>
> >>>
> >>some
> >>
> >>
> >>>results.
> >>>Any ideas I appreciate your help.
> >>>Lawrence
> >>>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
> >>>at org.apache.jasper.servlet.JspServletWrapper.service(
> >>>
> >>>
> >>JspServletWrapper.java:207)
> >>
> >>
> >>>at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> >>>
> >>>
> >>:240)
> >>
> >>
> >>>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:200)
> >>
> >>
> >>>at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:146)
> >>
> >>
> >>>at org.apache.catalina.core.StandardWrapperValve.invoke(
> >>>
> >>>
> >>StandardWrapperValve.java:209)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContextValve.invoke(
> >>>
> >>>
> >>StandardContextValve.java:144)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContext.invoke(StandardContext.java
> >>>
> >>>
> >>:2358)
> >>
> >>
> >>>at org.apache.catalina.core.StandardHostValve.invoke(
> >>>
> >>>
> >>StandardHostValve.java:133)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
> >>>
> >>>
> >>ErrorDispatcherValve.java:118)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorReportValve.invoke(
> >>>
> >>>
> >>ErrorReportValve.java:116)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardEngineValve.invoke(
> >>>
> >>>
> >>StandardEngineValve.java:127)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java
> >>>
> >>>
> >>:152)
> >>
> >>
> >>>at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java
> >>>
> >>>
> >>:799)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> >>(Http11Protocol.java:705)
> >>
> >>
> >>>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
> PoolTcpEndpoint.java
> >>>
> >>>
> >>:577)
> >>
> >>
> >>>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >>>
> >>>
> >>ThreadPool.java:683)
> >>
> >>
> >>>at java.lang.Thread.run(Thread.java:534)
> >>>
> >>>*root cause*
> >>>
> >>>java.lang.NullPointerException
> >>>at org.apache.jsp.cached_jsp._jspService(cached_jsp.java:82)
> >>>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at org.apache.jasper.servlet.JspServletWrapper.service(
> >>>
> >>>
> >>JspServletWrapper.java:162)
> >>
> >>
> >>>at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> >>>
> >>>
> >>:240)
> >>
> >>
> >>>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:200)
> >>
> >>
> >>>at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:146)
> >>
> >>
> >>>at org.apache.catalina.core.StandardWrapperValve.invoke(
> >>>
> >>>
> >>StandardWrapperValve.java:209)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContextValve.invoke(
> >>>
> >>>
> >>StandardContextValve.java:144)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContext.invoke(StandardContext.java
> >>>
> >>>
> >>:2358)
> >>
> >>
> >>>at org.apache.catalina.core.StandardHostValve.invoke(
> >>>
> >>>
> >>StandardHostValve.java:133)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
> >>>
> >>>
> >>ErrorDispatcherValve.java:118)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorReportValve.invoke(
> >>>
> >>>
> >>ErrorReportValve.java:116)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardEngineValve.invoke(
> >>>
> >>>
> >>StandardEngineValve.java:127)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java
> >>>
> >>>
> >>:152)
> >>
> >>
> >>>at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java
> >>>
> >>>
> >>:799)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> >>(Http11Protocol.java:705)
> >>
> >>
> >>>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
> PoolTcpEndpoint.java
> >>>
> >>>
> >>:577)
> >>
> >>
> >>>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >>>
> >>>
> >>ThreadPool.java:683)
> >>
> >>
> >>>at java.lang.Thread.run(Thread.java:534)
> >>>
> >>>------------------------------
> >>>Apache Tomcat/4.1.31
> >>>I
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
>