rohan rai wrote:
The problem is similar to one I face d before....But here I have no Resource
Manager to tell

JCasImpl to get type from the right class path
The Cas object includes a field which tells JCas which class loader to use; this is usually set when the Cas object is created. I would suggest looking at where the Cas object (being sent to the processCas method) is being created, and making sure that that creation includes the ResourceManager that has the right classpath.

-Marshall

On Mon, Jun 16, 2008 at 10:48 AM, rohan rai <[EMAIL PROTECTED]> wrote:

What does the given exception mean
If I run it
FSIndex documentIndex = 
jCas.getAnnotationIndex(org.ziva.dedup.types.Document.type);
from within hadoop reducer, it works

But if I use this within process CAS it starts throeing exception

Any light


16 Jun, 2008 10:42:41 AM org.ziva.dedup.OnlyPhone processCas(170)
INFO: The JCAS cover class "org.ziva.dedup.types.Document_Type" could not be 
loaded.
org.apache.uima.cas.CASRuntimeException: The JCAS cover class 
"org.ziva.dedup.types.Document_Type" could not be loaded.

        at org.apache.uima.jcas.impl.JCasImpl.getType(JCasImpl.java:417)
        at org.apache.uima.jcas.impl.JCasImpl.getCasType(JCasImpl.java:436)
        at 
org.apache.uima.jcas.impl.JCasImpl.getAnnotationIndex(JCasImpl.java:1503)

        at org.ziva.dedup.OnlyPhone.processCas(OnlyPhone.java:149)
        at 
org.ziva.dq.hadoop.DeDupHadoopMain$Reduce.reduce(DeDupHadoopMain.java:104)
        at 
org.ziva.dq.hadoop.DeDupHadoopMain$Reduce.reduce(DeDupHadoopMain.java:1)

        at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:333)
        at 
org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2084)




Reply via email to