ParserFactory test fail

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ParserFactory test fail

Stefan Groschupf-2
Hi Jerome,
I'm not sure but could it happen that with your new html protocol  
plugin the ParserFactory fails, since a component require log4j?
May we should than add log4j into the core classpath, since I had  
added log4j to the NUTCH_HOME/lib and than the test was running  
successfully.

Stefan

org/apache/log4j/Layout
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:
1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.nutch.plugin.Extension.getExtensionInstance
(Extension.java:151)
         at org.apache.nutch.parse.ParserFactory.getParsers
(ParserFactory.java:164)
         at org.apache.nutch.parse.TestParserFactory.testGetParsers
(TestParserFactory.java:108)

Reply | Threaded
Open this post in threaded view
|

Re: ParserFactory test fail

Jérôme Charron
Hi Stefan,

No in fact, I have refactored the code of protocol-http plugins, not html
parser.
So, I don't think the log4 error comes from this code.

Regards

Jérôme

--
http://motrech.free.fr/
http://www.frutch.org/
Reply | Threaded
Open this post in threaded view
|

Re: ParserFactory test fail

Stefan Groschupf-2
Sure, my mistake.

Am 10.01.2006 um 18:24 schrieb Jérôme Charron:

> Hi Stefan,
>
> No in fact, I have refactored the code of protocol-http plugins,  
> not html
> parser.
> So, I don't think the log4 error comes from this code.
>
> Regards
>
> Jérôme
>
> --
> http://motrech.free.fr/
> http://www.frutch.org/