This error is coming from libuima, which was successfully loaded by
the JVM, given -Djava.library.path. You're sure that the [appropriate]
LD_LIBRARY_PATH is set correctly for libuima? As a test put the
annotator library in some standard place, like /usr/lib. There's no
issue with 32 vs 64 bit libraries?

Eddie

On Mon, Feb 20, 2012 at 11:54 AM, Sylvain Surcin <sur...@kwaga.com> wrote:
> Hello,
>
> Is there a way to get more info, or to trace the processes involved when
> initializing a C++ annotator?
>
> I have this message dumped when launching an aggregator containing some
> Java annotators and one C++:
>
> annotator:creating JNILogger
>
> 20/02/12 17:38:13 - 11:
> org.apache.uima.uimacpp.UimacppAnalysisComponent.log(393): GRAVE:
> org.apache.uima.cpp: 0
> Error number  : 2001
> Recoverable   : Yes
> Error         : Error loading annotator 'UnitexAnnotatorCpp'.
> 'dlopen(UnitexAnnotatorCpp.dylib, 10): image not found'
>
> 20/02/12 17:38:13 - 11:
> org.apache.uima.uimacpp.UimacppAnalysisComponent.log(393): GRAVE:
> org.apache.uima.cpp: 0 ResourceManager::requestAnnotatorFile() failed to
> find UnitexAnnotatorCpp
>
> Nevertheless the annotator's UnitexAnnotatorCpp.dylib is well available
> through the $DYLD_LIBRARY_PATH environment variable, and also through the
> -Djava.library.path when launching the aggregate. I even checked with a
> small C program, using dlopen that it is possible to load the library.
>
> What could I do next?
>
> Thanks for any advice.
> Sylvain
>
> --
> Sylvain SURCIN, Ph.D.
> *KWAGA*
> Senior Software Architect
> 15, rue Jean-Baptiste Berlier
> 75013 Paris
> France
> Tél.: +33 (0)6.32.78.83.31

Reply via email to