Apache Nutch is an extensible and scalable web crawler
Servlets are initialized by a servlet container through no-args init().
Andrzej Bialeckiaf9f6865452c
diff --git a/src/java/org/apache/nutch/servlet/Cached.java b/src/java/org/apache/nutch/servlet/Cached.javaindex 41b7307b1..7b09b0402 100644--- a/src/java/org/apache/nutch/servlet/Cached.java+++ b/src/java/org/apache/nutch/servlet/Cached.java@@ -21,6 +21,7 @@ import org.apache.nutch.net.protocols.Response;import org.apache.nutch.searcher.NutchBean;import org.apache.nutch.searcher.Hit;import org.apache.nutch.searcher.HitDetails;+import org.apache.nutch.util.NutchConfiguration;import org.apache.hadoop.conf.Configuration;@@ -45,6 +46,10 @@ public class Cached extends HttpServlet {NutchBean bean = null;+ public void init() {+ init(NutchConfiguration.create());+ }+public void init(Configuration conf) {try {bean = NutchBean.get(this.getServletContext(), conf);