Best Regards Fu Chen (??) --------------- Inst.Service Science&Technology Room 1-211, Future Internet Technology Research Center(FIT) Tsinghua University, 100084, Beijing, China Tel: 86-10-62603217-823,86-13520253784(mobile) E_Mail:[EMAIL PROTECTED];[EMAIL PROTECTED] http://nmgroup.tsinghua.edu.cn/cn/people_asso.htm ----- Original Message ----- From: "Doun" <[EMAIL PROTECTED]> To: <nutch-dev@lucene.apache.org> Sent: Friday, November 28, 2008 9:52 AM Subject: Exception in NutchConfiguration class using java servlet
> > Hi, > > I'm pretty newbie in dealing with nutch. I've done the crawling and the > indexing using a version already installed on a UNIX machine. I'm trying to > develop a simple JSP page that queries the index and return the results. In > this, I'm following this tutorial: > http://wiki.apache.org/nutch/JavaDemoApplication > > However, I'm getting an exception while creating an instance of the > configuration class: > Configuration nutchConf = NutchConfiguration.create(); > the exception is: > > Exception occurred in target VM: Could not initialize class > org.apache.hadoop.conf.Configuration > java.lang.NoClassDefFoundError: Could not initialize class > org.apache.hadoop.conf.Configuration > at > org.apache.nutch.util.NutchConfiguration.create(NutchConfiguration.java:51) > at NewServlet.processRequest(NewServlet.java:70) > at NewServlet.doPost(NewServlet.java:98) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > I'm wondering if I'm missing any step of the tutorial, or is it because I'm > using a windows machine? I copied the index from the UNIX machine to the > Windows machine, and tried to develop an interface in JSP. > I googled a lot, but I didn't find anything !! > -- > View this message in context: > http://www.nabble.com/Exception-in-NutchConfiguration-class-using-java-servlet-tp20727926p20727926.html > Sent from the Nutch - Dev mailing list archive at Nabble.com. > >