You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Kai Schlamp (JIRA)" <ui...@incubator.apache.org> on 2009/07/08 12:46:15 UTC
[jira] Created: (UIMA-1427) AE as Eclipse plugin + resource
definitions = ResourceAccessException
AE as Eclipse plugin + resource definitions = ResourceAccessException
---------------------------------------------------------------------
Key: UIMA-1427
URL: https://issues.apache.org/jira/browse/UIMA-1427
Project: UIMA
Issue Type: Question
Components: Core Java Framework
Affects Versions: 2.2.2
Reporter: Kai Schlamp
Please see http://article.gmane.org/gmane.comp.apache.uima.general/2147
This issue provides the sample plugins to demonstrate the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (UIMA-1427) AE as Eclipse plugin +
resource definitions = ResourceAccessException
Posted by "Kai Schlamp (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728626#action_12728626 ]
Kai Schlamp edited comment on UIMA-1427 at 7/8/09 4:01 AM:
-----------------------------------------------------------
Two plugins that demonstrate the resource loading problem when using UIMA analysis engines as Eclipse Plug-Ins.
Instructions:
1. Import both projects inside the zip into your Eclipse workspace.
2. Run TestResourcesAnnotatorTest.java (in org.test.uima.resources.test) as JUnit Plug-In Test
Maybe you have to include the appropriate Plug-Ins in the Run Configurations dialog and choose to run it in Headless Mode.
was (Author: dostix):
Two plugins that demonstrate the resource loading problem when using UIMA analysis engines as Eclipse Plug-Ins.
> AE as Eclipse plugin + resource definitions = ResourceAccessException
> ---------------------------------------------------------------------
>
> Key: UIMA-1427
> URL: https://issues.apache.org/jira/browse/UIMA-1427
> Project: UIMA
> Issue Type: Question
> Components: Core Java Framework
> Affects Versions: 2.2.2
> Reporter: Kai Schlamp
> Attachments: testUimaResources.zip
>
>
> Please see http://article.gmane.org/gmane.comp.apache.uima.general/2147
> This issue provides the sample plugins to demonstrate the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-1427) AE as Eclipse plugin + resource
definitions = ResourceAccessException
Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor closed UIMA-1427.
--------------------------------
Resolution: Invalid
Hi Kai -
The problem was solved by changing your code slightly.
The form:
Some_Class_name.class.getResourceAsStream(name)
is defined to fetch the resource *in the same package* as the class.
To fix this, use the form:
Some_Class_name.class.getClassLoader().getResrouceAsStream(name).
Also, you probably don't need the UIMA buddy loading mechanism for this if you use as the "Some_Class_name" the name of your annotator class, because the class loader used for that will be used, and it should be the one for the plugin - having addressability per the plugin-in's manifest.
> AE as Eclipse plugin + resource definitions = ResourceAccessException
> ---------------------------------------------------------------------
>
> Key: UIMA-1427
> URL: https://issues.apache.org/jira/browse/UIMA-1427
> Project: UIMA
> Issue Type: Question
> Components: Core Java Framework
> Affects Versions: 2.2.2
> Reporter: Kai Schlamp
> Attachments: testUimaResources.zip
>
>
> Please see http://article.gmane.org/gmane.comp.apache.uima.general/2147
> This issue provides the sample plugins to demonstrate the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (UIMA-1427) AE as Eclipse plugin + resource
definitions = ResourceAccessException
Posted by "Kai Schlamp (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kai Schlamp updated UIMA-1427:
------------------------------
Attachment: testUimaResources.zip
Two plugins that demonstrate the resource loading problem when using UIMA analysis engines as Eclipse Plug-Ins.
> AE as Eclipse plugin + resource definitions = ResourceAccessException
> ---------------------------------------------------------------------
>
> Key: UIMA-1427
> URL: https://issues.apache.org/jira/browse/UIMA-1427
> Project: UIMA
> Issue Type: Question
> Components: Core Java Framework
> Affects Versions: 2.2.2
> Reporter: Kai Schlamp
> Attachments: testUimaResources.zip
>
>
> Please see http://article.gmane.org/gmane.comp.apache.uima.general/2147
> This issue provides the sample plugins to demonstrate the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.