Hi Alex, On Fri, Jun 19, 2015 at 10:06 AM, <[email protected]> wrote:
> > Is there any recommended or better way of running Nutch 1.x jobs from > Dynamic Web Project. You mean using the Java API's we provide on Maven Central? http://search.maven.org/#search|gav|1|g%3A%22org.apache.nutch%22%20AND%20a%3A%22nutch%22 <http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.nutch%22%20AND%20a%3A%22nutch%22> > Currently I'm using ToolRunner to call Nutch jobs which runs perfectly > fine when calling from a "Main" method and running it as a Java Application > but gets complains like the one below when running on Tomcat as Dynamic Web > Project: > > [snip] > Caused by: java.lang.IllegalArgumentException: plugin.folders is not > defined > at > org.apache.nutch.plugin.PluginManifestParser.parsePluginFolder(PluginManifestParser.java:79) > at > org.apache.nutch.plugin.PluginRepository.<init>(PluginRepository.java:77) > at > org.apache.nutch.plugin.PluginRepository.get(PluginRepository.java:108) > at org.apache.nutch.net > .URLNormalizers.<init>(URLNormalizers.java:139) > at > org.apache.nutch.crawl.Injector$InjectMapper.configure(Injector.java:83) > ... 22 more > > I've tried changing plugin.folders on nutch-site.xml to an absolute path, > adding the project to deployment assembly, adding the project to java build > path but nothing works. Thank you. > > This is a tomcat issue. I would suggest that you package nutch-site.xml and nutch-default.xml with your Web Application in a resources directory. Lewis

