I am building the jar and I'm using this jar in one the my .war. When I run the program I am getting the below exception. But in that jar file, that particular class is there.
Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.itc.zeas.custominputformat.CustomTextInputFormat not found
  at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195) 
  at org.apache.hadoop.mapreduce.task.JobContextImpl.getInputFormatClass(JobContextImpl.java:174) 
  at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749) 
  at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) 
  at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168) 
  at java.security.AccessController.doPrivileged(Native Method) 
  at 
 
     
    