You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Zoltán Szászi <zo...@gmail.com> on 2009/11/12 03:17:05 UTC

class not found exception - or not?

Hello,

I'm trying to run a CollectionReader using UIMA's API. I
use UIMAFramework.produceCollectionReader(resourceSpecifier, resourceManager,
uimaParameters) method and I get ResourceInitializationException: the class
could not be found. It seems my class isn't in the classpath. However I can
instantiate my class with the standard constructor and it doesn't cause any
exception, only if I invoke produceCollectinReader, so it is in the
classpath! In the XML is the right class name, that's sure.

What I'm doing wrong? Please help me, I don't understand the cause of
problem. :-(

Re: class not found exception - or not?

Posted by Marshall Schor <ms...@schor.com>.

Zoltán Szászi wrote:
> Hello,
>
> I'm trying to run a CollectionReader using UIMA's API. I
> use UIMAFramework.produceCollectionReader(resourceSpecifier, resourceManager,
> uimaParameters) method and I get ResourceInitializationException: the class
> could not be found. It seems my class isn't in the classpath. However I can
> instantiate my class with the standard constructor and it doesn't cause any
> exception, only if I invoke produceCollectinReader, so it is in the
> classpath! In the XML is the right class name, that's sure.
>
> What I'm doing wrong? Please help me, I don't understand the cause of
> problem. :-(
>   
I don't see anything obviously wrong... Could you post some additional
information such as
a) the fully-qualified name of the class not being found
b) the descriptor you're trying to instantiate
c) if you're using a resourceManager, how you are setting this up, in
particular, are you setting class paths for it.

and anything else you might think might help us help you :-) ...

-Marshall