Nutch JSP Upgrade Problem (0.9-dev to 1.0-dev)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nutch JSP Upgrade Problem (0.9-dev to 1.0-dev)

Sean Dean-3
List,
 
I'm having an issue with Tomcat when upgrading my JSP files from 0.9-dev to 1.0-dev (most recent revision). I presently have a 0.9-dev implementation running with Hadoop 0.9.1, with its own segment and index. Everything works fine, and has since it first went up a few years ago.
 
Over the last month I've been fetching brand new segments with Trunk (1.0-dev) and today I finally wanted to bring the new application live with the newly generated index. I preformed a text merge on all my JSP files to keep my site formatting, but update the latest required JAVA code from Nutch.
 
Searching this newly created index via command line (NutchBean) works fine, and proper nutch-site and hadoop-site files are located inside my Tomcat WAR file.
 
This is the output given during a search with the new application;
 
2008-03-21 19:06:18,693 INFO  Configuration - found resource common-terms.utf8 at file:/usr/local/tomcat5.5/webapps/ROOT/WEB-INF/classes/common-terms.utf8
2008-03-21 19:06:18,728 INFO  NutchBean - query: http
2008-03-21 19:06:18,728 INFO  NutchBean - lang:
2008-03-21 19:06:18,743 ERROR [jsp] - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at org.apache.jsp.search_jsp._jspService(search_jsp.java:327)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.opensymphony.oscache.web.filter.CacheFilter.doFilter(CacheFilter.java:175)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)
 
I have posted both JSP source files for each version at;
 
http://www.enhancededge.com/nutch/search-0.9.jsp (for 0.9, working)
http://www.enhancededge.com/nutch/search-1.0.jsp (for 1.0, not working)
 
Any assistance in debugging this issue would be appreciated.
 
Thanks,
 
Sean Dean
Reply | Threaded
Open this post in threaded view
|

Re: Nutch JSP Upgrade Problem (0.9-dev to 1.0-dev)

Sean Dean-3
In response to my own problem;
 
I found the issue within my web.xml, there was a very important set of lines missing that have been added semi-recently. The lines are below for the record.


<listener>
<listener-class>org.apache.nutch.searcher.NutchBean$NutchBeanConstructor</listener-class>
</listener>
 
Thanks.
 
----- Original Message ----
From: Sean Dean <[hidden email]>
To: [hidden email]
Sent: Friday, March 21, 2008 7:36:28 PM
Subject: Nutch JSP Upgrade Problem (0.9-dev to 1.0-dev)

List,

I'm having an issue with Tomcat when upgrading my JSP files from 0.9-dev to 1.0-dev (most recent revision). I presently have a 0.9-dev implementation running with Hadoop 0.9.1, with its own segment and index. Everything works fine, and has since it first went up a few years ago.

Over the last month I've been fetching brand new segments with Trunk (1.0-dev) and today I finally wanted to bring the new application live with the newly generated index. I preformed a text merge on all my JSP files to keep my site formatting, but update the latest required JAVA code from Nutch.

Searching this newly created index via command line (NutchBean) works fine, and proper nutch-site and hadoop-site files are located inside my Tomcat WAR file.

This is the output given during a search with the new application;

2008-03-21 19:06:18,693 INFO  Configuration - found resource common-terms.utf8 at file:/usr/local/tomcat5.5/webapps/ROOT/WEB-INF/classes/common-terms.utf8
2008-03-21 19:06:18,728 INFO  NutchBean - query: http
2008-03-21 19:06:18,728 INFO  NutchBean - lang:
2008-03-21 19:06:18,743 ERROR [jsp] - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at org.apache.jsp.search_jsp._jspService(search_jsp.java:327)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.opensymphony.oscache.web.filter.CacheFilter.doFilter(CacheFilter.java:175)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)

I have posted both JSP source files for each version at;

http://www.enhancededge.com/nutch/search-0.9.jsp (for 0.9, working)
http://www.enhancededge.com/nutch/search-1.0.jsp (for 1.0, not working)

Any assistance in debugging this issue would be appreciated.

Thanks,

Sean Dean