Hi Guys,

On 8/12/06 9:27 AM, "Hou Keat Lee" <[EMAIL PROTECTED]> 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?

Another option for this would be to use the generated nutch.xml file that
appears in the build directory (e.g., $NUTCH_HOME/build) when you run the
"ant war" command. Since NUTCH-210, this context.xml file is generated and
allows you to adapt the runtime parameters (e.g., index dir) without
touching the nutch.war file. Instead of placing nutch.war in
/path/to/tomcat/webapps/, place nutch.xml in there (for Tomcat 4.x), and in
/path/to/tomcat/conf/Catalina/localhost/ (for Tomcat 5.x).

Cheers,
  Chris


> 
> 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.j
> ava: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:2
> 64)
> 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.j
> ava: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
>> 
>> 


Reply via email to