You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Josh Ma <be...@gmail.com> on 2008/03/25 03:15:24 UTC

Re: How to use hadoop wiht tomcat!!



sandybandy wrote:
> 
> Hi , I have put hadoop-core.jar and all dependent JARS in webapp lib and
> also all XMLBEAN jars in webapp lib since my mapreducer program is using
> these XMLBEAN jar files to process xml document. But when I submit a job
> via servlet it is saying "java.lang.NoClassDefFoundError:
> org/apache/xmlbeans/XmlException" . But I have placed all the JARS that
> are related to above exception to web app lib. Can anybody give me ideas
> on this once?
> 
> --Yoda
> 

You need to attach you XMLBEAN jars by 
DistributedCache.addArchiveToClassPath(Path, Configuration).:-), I think you
need to read 
http://hadoop.apache.org/core/docs/r0.16.1/mapred_tutorial.html this page
.Good luck.

-- Shihua Ma
-- 
View this message in context: http://www.nabble.com/How-to-use-hadoop-wiht-tomcat%21%21-tp14991778p16266892.html
Sent from the Hadoop lucene-users mailing list archive at Nabble.com.