Hi,
I'm using nutch version from trunk, and I'm trying to write a plugin using
this tutorial: http://wiki.apache.org/nutch/WritingPluginExample-0%2e9. And
I've got problems running junit tests.
I've got a message with registered plugins:
8/04/18 03:24:41 INFO plugin.PluginRepository: Registered Plugins:
08/04/18 03:24:41 INFO plugin.PluginRepository: the nutch core extension
points (nutch-extensionpoints)
08/04/18 03:24:41 INFO plugin.PluginRepository: Basic Query Filter
(query-basic)
08/04/18 03:24:41 INFO plugin.PluginRepository: Basic URL Normalizer
(urlnormalizer-basic)
..................................................................... and
others...
But there is no my plugin amongth them.
And then I get error message:
08/04/18 03:24:41 INFO conf.Configuration: parse-plugins.xml not found
08/04/18 03:24:41 WARN parse.ParsePluginsReader: Unable to parse
[null].Reason is [java.net.MalformedURLException]
java.lang.RuntimeException: Parse Plugins preferences could not be loaded.
at org.apache.nutch.parse.ParserFactory.<init>(ParserFactory.java:73)
at org.apache.nutch.parse.ParseUtil.<init>(ParseUtil.java:50)
at
org.apache.nutch.parse.adsense.TestAdsenseParser.pageTest(TestAdsenseParser.java:53)
at
org.apache.nutch.parse.adsense.TestAdsenseParser.testPages(TestAdsenseParser.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
It seems to me that a error is caused by parse-plugins.xml. How is it
possible to solve it? It looks like not all details about plugin
writing/testing is presented in tutorial, something important was forgotten.