uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <...@apache.org>
Subject Re: Telling UIMA-AS which classloader to use
Date Fri, 04 Nov 2016 19:52:29 GMT
We were trying to write a Groovy program that uses the Groovy "grab" command
to dynamically acquire the Maven artifacts for a component and then to deploy
that component as a UIMA AS service. In our case, UIMA-AS was loaded using
the application classloader and then we loaded the components into separate
"child" classloaders.

We can probably find some solution or workaround for this - I was just wondering
if there was a way that I didn't find. If it causes us persisting problems, I'll
get back here.


-- Richard

> On 04.11.2016, at 17:50, Jaroslaw Cwiklik <uimaee@gmail.com> wrote:
> Richard, I am not aware of a way to "provide" a custom classloader with the
> current UIMA-AS code. Are you trying to isolate AE and its dependencies
> from the rest of UIMA-AS code for some reason? Can you elaborate a bit on
> what you need the UIMA-AS to do to support your scenario?
> Jerry
> On Fri, Nov 4, 2016 at 7:05 AM, Richard Eckart de Castilho <rec@apache.org>
> wrote:
>> Hi,
>> I have a scenario here where we are dynamically constructing a classloader
>> with access to a UIMA component and its dependencies and then would like to
>> start a UIMA-AS service for that component. However, we didn't find any
>> obvious way to pass a classloader into into the service context of the
>> UimaAsynchronousEngine.
>> It is possible to provide UIMA-AS with a classloader?
>> Best,
>> -- Richard

View raw message