You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Lawrence W Thorne <lt...@thornedigital.com> on 2006/01/28 07:33:39 UTC

Connecting the search to the Db

I hope I am emailing the correct address, if not, I apologize.

I am installing on Windows Server 2000 SP4 and am willing to produce a
detailed (with installation notes) installation/setup document for windows
(PDF even) in exchange for your help with this issue.

Windows Nutch testing server (do search to see error): the lang/docs all
work fine.

http://66.65.133.195/

I probably have my Nutch unpackaged in the wrong place I'm sure. No problems
running Nutch from command line, the Db and Segment builds go fine -
importing DMOZ XML feed -3000 - indexing seems fine as well - no errors.

I'm going step by step through your tutorial, no errors using cygwin, but
when I attempt to search from above link I get 500 server error.

!--BEGIN ERROR

 

javax.servlet.ServletException

 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

            sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)

 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

            java.lang.reflect.Method.invoke(Method.java:585)

 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

            java.security.AccessController.doPrivileged(Native Method)

            javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
5)

 

 

root cause 

 

java.lang.NoClassDefFoundError

            org.apache.jsp.search_jsp.(search_jsp.java:29)

            sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

            java.lang.reflect.Constructor.newInstance(Constructor.java:494)

            java.lang.Class.newInstance0(Class.java:350)

            java.lang.Class.newInstance(Class.java:303)

 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
a:143)

 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
19)

 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)

            javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

            sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)

 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

            java.lang.reflect.Method.invoke(Method.java:585)

 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

            java.security.AccessController.doPrivileged(Native Method)

            javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
5)


!--END ERROR

I am new to Java but have worked extensively with VB, VB.NET PHP/MySQL and
Perl - and am really excited about getting nutch up and running.

Back to CYGWIN session for bin/nutch commands in tutorial - to perhaps shed
some light. (see session below)

Administrator@nythorne02 /cygdrive/d/Nutch/nutch-0.7.1 $
/cygdrive/c/Program\ Files/Apache\ Group/Tomcat\ 4.1/bin/catalina.sh start

Using CATALINA_BASE:   c:\Program Files\Apache Group\Tomcat 4.1

Using CATALINA_HOME:   c:\Program Files\Apache Group\Tomcat 4.1

Using CATALINA_TMPDIR: c:\Program Files\Apache Group\Tomcat 4.1\temp

Using JAVA_HOME:       c:\Program Files\Java\jdk1.5.0_06\

 

As you can see I have Tomcat installed default on C. 

Sun/Nutch are installed/unpackaged to the larger drive at
D:\Sun\AppServer\domains\domain1\ and D:\Nutch\nutch-0.7.1\ respectively.

 

Do I need to have the nutch db and segments folders indexed inside
D:\Sun\AppServer\domains\domain1\applications\j2ee-modules\APPNAME ??

 

It is my understanding that as long as I initialize Catalina from the
directory above my segments and db dir, it will use that instance of the
indexed data?

 

This is the config I see from the Java Web Console:
${com.sun.aas.instanceRoot}/applications/j2ee-modules/nutch-0.7.1 which
translates to D:\Sun\AppServer\domains\domain1\ which leads me to believe I
need to run my nutch db and segments indices from inside that folder? 

 any help would be much appreciated.

-Lawrence Thorne

lthorne@thornedigital.com