You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2011/05/26 10:49:47 UTC
[jira] [Created] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Handle both classpath and file paths in UIMA utils
--------------------------------------------------
Key: CLEREZZA-554
URL: https://issues.apache.org/jira/browse/CLEREZZA-554
Project: Clerezza
Issue Type: Improvement
Reporter: Tommaso Teofili
Assignee: Tommaso Teofili
The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Posted by "Florent ANDRE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florent ANDRE updated CLEREZZA-554:
-----------------------------------
Attachment: classpathBundle.patch
Change rmi based getResource : Activator.class.getResource(filePath);
to the "classical" classloader this.getClass().getClassLoader().getResource(filePath);
Change file paths in tests accordingly.
If this comment is accurate... you got the patch ! :)
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Attachments: classpathBundle.patch
>
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (CLEREZZA-554) Handle both classpath and file paths
in UIMA utils
Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommaso Teofili closed CLEREZZA-554.
------------------------------------
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Attachments: classpathBundle.patch
>
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042636#comment-13042636 ]
Tommaso Teofili commented on CLEREZZA-554:
------------------------------------------
OSGi bundles have separate classloaders so the problem is how to call UIMAExecutor with a classpath of a resource defined in another bundle. I'll investigate better and take a look at your patch. Thanks!
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Attachments: classpathBundle.patch
>
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Posted by "Florent ANDRE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042665#comment-13042665 ]
Florent ANDRE commented on CLEREZZA-554:
----------------------------------------
ha yep, there is also this usecase : resource in another bundle...
Patch here work for resource in the same bundle for sure. Don't think so when resource is in another bundle.
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Attachments: classpathBundle.patch
>
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Posted by "Florent ANDRE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042446#comment-13042446 ]
Florent ANDRE commented on CLEREZZA-554:
----------------------------------------
This modification seems to not work in OSGI bundle for getting classpath files. I try with and without a "/" before the filename and both return a null URL.
I googled around but not find something clear about rmi getResource and OSGI.
Apart from that use RMI [1] for getting a "simple" file seems big to me... but I may misunderstand.
[1] http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136424.html
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CLEREZZA-554) Handle both classpath and file
paths in UIMA utils
Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLEREZZA-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommaso Teofili resolved CLEREZZA-554.
--------------------------------------
Resolution: Fixed
> Handle both classpath and file paths in UIMA utils
> --------------------------------------------------
>
> Key: CLEREZZA-554
> URL: https://issues.apache.org/jira/browse/CLEREZZA-554
> Project: Clerezza
> Issue Type: Improvement
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
>
> The current method of getting AE paths must be enhanced to allow retrieving descriptors both from classpath and filesystem
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira