Re[2]: add-opens for dynamically created layers

2020-11-16 Thread Alex Orlov
Hello Alan,   Thank you very much for your help. With ModuleLayer.Controller I solved the problem. Do I understand it correctly — it is impossible to get reference to boot layer controller, isn’t it?     -- Best regards, Alex Orlov     >Понедельник, 16 ноября 2020, 22:27 +03:00 от Alan Bateman

add-opens for dynamically created layers

2020-11-16 Thread Alex Orlov
Hello all,   I have the following structure   I want to create the following layer structure:   +++ + Boot Layer + +++        |        +        + Web Server Layer +        +                          |                             

Re: add-opens for dynamically created layers

2020-11-16 Thread Alan Bateman
On 16/11/2020 18:35, Alex Orlov wrote: : When I start my application I get: java.lang.IllegalAccessError: class org.springframework.core.log.CompositeLog (in module spring.core) cannot access class org.apache.commons.logging.impl.NoOpLog (in module org.apache.commons.logging) because

Re[2]: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-16 Thread Alex Orlov
Hello Alan,   Thank you for such detailed answer. I read it with attention, but still don’t know how to solve my situation. Maybe may question didn’t provide all details, so here they are.   I want to create the following layer structure:   +++ + Boot Layer + +++        |       

Re: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-16 Thread Alan Bateman
On 16/11/2020 09:17, Alex Orlov wrote: Hello Alan, Thank you for such detailed answer. I read it with attention, but still don’t know how to solve my situation. Maybe may question didn’t provide all details, so here they are. I want to create the following layer structure: +++ + Boot

Re: Re[2]: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-16 Thread Christian Stein
Hi Alex, Perhaps a deeper look how Layrry works under the hood does help: https://github.com/moditect/layrry If I'm not mistaken, your use-case seems very similar to those Layrry tries to cope with. Cheers, Christian On Mon, Nov 16, 2020 at 10:17 AM Alex Orlov wrote: > > Hello Alan, > >

Re: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-16 Thread Alan Bateman
On 15/11/2020 19:16, Alex Orlov wrote: Hi all, I create JPMS layer this way: Configuration cf = parentLayer.configuration().resolveAndBind(moduleFinder, ModuleFinder.of(), moduleNames); ModuleLayer layer = parentLayer.defineModulesWithOneLoader(cf, parentClassLoader); And I have a