From the tutorial:
"
The webapp finds its indexes in ./crawl, relative to where you start
Tomcat, so use a command like:
~/local/tomcat/bin/catalina.sh start
"
If you cannot live with this then you need to configure nutch by telling
it where to find indexes and build new war file.
Check out the nutch wiki for possible solution to your problems with
permissions, however I recommend that you install and use a fresh copy
of Tomcat by yourself and save a lot of gray hairs.
--
Sami Siren
Hou Keat Lee wrote:
Hi,
May be I'm missing something here.
If the packaged WAR file is suppose to be used, how does nutch links
back to
my crawling results and indexes?
Also, after deploying the WAR file, I've encountered some permission error
when trying to do a search. What are the permission required for the
search?
Thanks.
See below the exception thrown:
======================================================================
*exception*
org.apache.jasper.JasperException: access denied
(java.util.PropertyPermission user.dir read)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
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)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
*root cause*
java.security.AccessControlException: access denied
(java.util.PropertyPermission user.dir read)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
java.lang.System.getProperty(System.java:627)
org.apache.hadoop.fs.LocalFileSystem.<init>(LocalFileSystem.java:31)
org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:99)
org.apache.hadoop.fs.FileSystem.get(FileSystem.java:86)
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:94)
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:83)
org.apache.nutch.searcher.NutchBean.get(NutchBean.java:70)
org.apache.jsp.search_jsp._jspService(search_jsp.java:104)
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)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
======================================================================
On 8/13/06, Sami Siren <[EMAIL PROTECTED]> wrote:
Hou Keat Lee wrote:
> Hi all,
>
> I'm trying out the nutch on my Ubuntu box.
>
> I've managed to follow the tutorial for Nutch v0.8 and manage to follow
the
> steps to perform crawling.
>
> However, when the crawl completed I didn't see the expected WAR. Is
there
> something wrong with the crawling and thus the WAR file is not created
> automatically? I've taken a look at the log and didn't see anything
wrong.
The .war file is not generated during crawling but is distributed as
part of the released nutch-0.8.tar.gz package.
Location of file is nutch-0.8/nutch-0.8.war
--
Sami Siren