You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Nguyen Ngoc Giang <gi...@gmail.com> on 2005/12/08 10:47:44 UTC
Plugin path in Nutch web
Hi everyone,
I'm writing an JSP program to allow crawling via web. My JSP script
follows nutch.tools.CrawlTool, which try to create database, inject
database, fecth and index.
I have difficulty of identifying the plugins. Creating database is fine,
because it doesn't require any plugin. But when it comes to injection, I got
this error:
java.lang.ExceptionInInitializerError
org.apache.nutch.db.WebDBInjector.addPage(WebDBInjector.java:437)
org.apache.nutch.db.WebDBInjector.injectURLFile(WebDBInjector.java:378)
org.apache.nutch.db.WebDBInjector.main(WebDBInjector.java:535)
org.apache.jsp.crawl_jsp._jspService(crawl_jsp.java:151)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
From the ExceptionInInitializerError, I guess the problem is in loading
the plugin (since loading is static). Could anyone suggest me how to set the
path to plugin in nutch-default.xml? Thanks a lot.
Regards,
Giang
Re: Plugin path in Nutch web
Posted by Arun Kaundal <ar...@gmail.com>.
Make sure that you have specify correct name/path for plugins directory(
plugin.folders). Also both plugin and nutch source must be from same
version.
Another solution is download latest trunk version of nutch from svn.
On 12/8/05, Nguyen Ngoc Giang <gi...@gmail.com> wrote:
>
> Hi everyone,
>
> I'm writing an JSP program to allow crawling via web. My JSP script
> follows nutch.tools.CrawlTool, which try to create database, inject
> database, fecth and index.
>
> I have difficulty of identifying the plugins. Creating database is fine,
> because it doesn't require any plugin. But when it comes to injection, I
> got
> this error:
>
> java.lang.ExceptionInInitializerError
> org.apache.nutch.db.WebDBInjector.addPage(WebDBInjector.java:437)
> org.apache.nutch.db.WebDBInjector.injectURLFile(WebDBInjector.java
> :378)
> org.apache.nutch.db.WebDBInjector.main(WebDBInjector.java:535)
> org.apache.jsp.crawl_jsp._jspService(crawl_jsp.java:151)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:324)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> :292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> From the ExceptionInInitializerError, I guess the problem is in loading
> the plugin (since loading is static). Could anyone suggest me how to set
> the
> path to plugin in nutch-default.xml? Thanks a lot.
>
> Regards,
> Giang
>
>