Kai Schlamp wrote:
Hy Thilo,

comment below.

Thilo Goetz wrote:
Kai Schlamp wrote:
Hello.

I use UIMA analysis engines as Eclipse plugins inside an Eclipse RCP
application.
Nearly everything works fine, but I can't get the resource definitions
to work corretly.
When trying to fetch the path of the resource in my annotators intialize
method (by using getContext().getResourceFilePath("sd_model");), then I
get the below exception.
It must be some classpath problem (as so often with Eclipse plugins) as
this analysis engine works correctly using the UIMA document analyzer.

Resources are resolved via the classpath.  Try putting
the model file insided your jar and see if that helps.
If that works, you can maybe investigate better ways.
I don't know enough about Eclipse plugin programming
to make a definitive suggestions.

That's strange, cause the resource file is on the classpath. It's inside a "resources" folder of my plugin
that has an entry in the MANIFEST.MF ("Bundle-ClassPath: resources/").
I also registered UIMA as bundle buddy ("Eclipse-RegisterBuddy: org.apache.uima").
Maybe someone else has an idea.
I could provide a basic plugin (inclusive a test plugin) that easily demonstrates the problem.
Are attachments allowed in this group?
If not I can send it via mail if someone is interested.
No attachments are not allowed.
Jira has also an issue type "help", maybe we should just use that.

Jörn

Reply via email to