You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Tommaso Teofili (JIRA)" <de...@uima.apache.org> on 2011/02/12 20:37:57 UTC

[jira] Issue Comment Edited: (UIMA-2047) Solrcas should not resolve the solrmapping file only via the classpath

    [ https://issues.apache.org/jira/browse/UIMA-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993983#comment-12993983 ] 

Tommaso Teofili edited comment on UIMA-2047 at 2/12/11 7:36 PM:
----------------------------------------------------------------

I made some tests and it works for URL but does not work using the instance.getResourceAsStream(urlString) method so I refactored out two methods getStream(path) and getURL(path) with path being either classpath:/path/to/solrmapping.xml or file:///home/who/knows/solrmapping.xml (should work also with other protocols).

      was (Author: teofili):
    I made some tests and it works for URL but does not work using the instance.getResourceAsStream(urlString) method so I refactored out two methods getStream(path) and getURL(path) with path being either classpath:/path/to/solrmapping.xml or file:///home/who/knows/solrmapping.xml (should work also with other URI paths).
  
> Solrcas should not resolve the solrmapping file only via the classpath
> ----------------------------------------------------------------------
>
>                 Key: UIMA-2047
>                 URL: https://issues.apache.org/jira/browse/UIMA-2047
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Sandbox-Solrcas
>            Reporter: Jörn Kottmann
>
> The solrmapping file is currently only resolved via the classpath. It should be possible to place a solrmapping file next to the AE descriptor and load it like referenced descriptors. 
> The Solrcas jar file also contains a default solrmapping file. That should not be included in the jar file, otherwise it might accidentally be loaded depending on the location of that jar on the classpath.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira