uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommaso Teofili (JIRA)" <...@uima.apache.org>
Subject [jira] Commented: (UIMA-2047) Solrcas should not resolve the solrmapping file only via the classpath
Date Mon, 07 Mar 2011 14:32:59 GMT

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

Tommaso Teofili commented on UIMA-2047:

bq. org.apache.uima.impl.ChildUimaContext_impl.getResourceAsStream: WARNING: The unmanaged
resource /xxx/apache-uima-as/xxx/desc/solrmapping.xml was accessed.This feature is deprecated,
and support may be removed in future versions.

We can get rid of that using getContext().getDataPath() as base for the relative path.
Also the method to get the stream/URL should be made protected to eventually use it when extending
the SolrCASConsumer i.e. in EmbeddedSolrCASConsumer to set the solr.dataPath

> 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
>         Attachments: relativeurl.patch
> 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

View raw message