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. Thanks! -- Richard > On 04.11.2016, at 17:50, Jaroslaw Cwiklik <[email protected]> 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 <[email protected]> > 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
