You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by si...@apache.org on 2006/02/06 21:11:53 UTC

svn commit: r375352 - /lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java

Author: siren
Date: Mon Feb  6 12:11:51 2006
New Revision: 375352

URL: http://svn.apache.org/viewcvs?rev=375352&view=rev
Log:
NUTCH-200 fix servlet init method

Modified:
    lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java

Modified: lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java?rev=375352&r1=375351&r2=375352&view=diff
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java (original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java Mon Feb  6 12:11:51 2006
@@ -33,6 +33,7 @@
 import javax.xml.parsers.*;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.nutch.util.NutchConfiguration;
 import org.w3c.dom.*;
 import javax.xml.transform.TransformerFactory;
 import javax.xml.transform.Transformer;
@@ -59,10 +60,10 @@
   private NutchBean bean;
   private Configuration conf;
 
-  public void init(ServletConfig config, Configuration conf) throws ServletException {
+  public void init(ServletConfig config) throws ServletException {
     try {
-      bean = NutchBean.get(config.getServletContext(), conf);
-      this.conf = conf;
+      this.conf = NutchConfiguration.create();
+      bean = NutchBean.get(config.getServletContext(), this.conf);
     } catch (IOException e) {
       throw new ServletException(e);
     }