<HTML><BODY><div>Hello all,</div><div> </div><div><p style="--_pr-img-mb:0; --theme-background-attachment:auto; --theme-background-color:var(--white); --theme-background-position:top left; --theme-background-repeat:repeat; --theme-background-size:auto; --theme-base-primary-color-h:27; --theme-base-primary-color-l:48%; --theme-base-primary-color-s:89%; --theme-body-font-color:var(--black-600); --theme-body-font-family:var(--ff-sans); --theme-button-active-background-color:initial; --theme-button-color:initial; --theme-button-hover-background-color:initial; --theme-button-hover-color:initial; --theme-button-outlined-border-color:initial; --theme-button-outlined-selected-border-color:initial; --theme-button-primary-active-background-color:initial; --theme-button-primary-active-color:initial; --theme-button-primary-background-color:initial; --theme-button-primary-color:initial; --theme-button-primary-hover-background-color:initial; --theme-button-primary-hover-color:initial; --theme-button-primary-selected-background-color:initial; --theme-button-primary-selected-color:initial; --theme-button-selected-background-color:initial; --theme-button-selected-color:initial; --theme-content-background-color:var(--white); --theme-content-border-color:var(--black-225); --theme-footer-background-border-top:0; --theme-footer-background-color:hsl(210,8%,5%); --theme-footer-background-position:top left; --theme-footer-background-repeat:no-repeat; --theme-footer-background-size:auto; --theme-footer-divider-color:var(--black-500); --theme-footer-link-color-hover:var(--black-200); --theme-footer-link-color:var(--black-300); --theme-footer-padding-bottom:0; --theme-footer-padding-top:0; --theme-footer-text-color:var(--black-300); --theme-footer-title-color:var(--black-250); --theme-header-background-border-bottom:0; --theme-header-background-color:var(--theme-primary); --theme-header-background-position:center left; --theme-header-background-repeat:repeat; --theme-header-background-size:auto; --theme-header-foreground-color:transparent; --theme-header-foreground-position:bottom right; --theme-header-foreground-repeat:no-repeat; --theme-header-foreground-size:auto; --theme-header-link-color:var(--theme-primary); --theme-header-sponsored-color:hsla(0,0%,100%,0.4); --theme-link-color-hover:initial; --theme-link-color-visited:initial; --theme-link-color:initial; --theme-post-body-font-family:var(--ff-sans); --theme-post-owner-background-color:var(--theme-secondary-100); --theme-post-owner-new-background-color:var(--theme-secondary-200); --theme-post-title-color-hover:var(--theme-link-color-hover); --theme-post-title-color-visited:var(--theme-link-color-visited); --theme-post-title-color:var(--theme-link-color); --theme-post-title-font-family:var(--ff-sans); --theme-primary-custom-100:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom:var(--theme-primary-custom-400); --theme-tag-background-color:initial; --theme-tag-border-color:initial; --theme-tag-color:initial; --theme-tag-hover-background-color:initial; --theme-tag-hover-border-color:initial; --theme-tag-hover-color:initial; --theme-tag-required-background-color:var(--theme-secondary-500); --theme-tag-required-border-color:transparent; --theme-tag-required-color:var(--white); --theme-tag-required-hover-background-color:var(--theme-secondary-400); --theme-tag-required-hover-border-color:transparent; --theme-tag-required-hover-color:var(--white); --theme-topbar-bottom-border:1px solid var(--black-225); -webkit-text-stroke-width:0px; background-color:#ffffff; border:0px; box-sizing:inherit; clear:both; color:#0c0d0e; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif; font-feature-settings:inherit; font-kerning:inherit; font-optical-sizing:inherit; font-size:15px; font-stretch:inherit; font-style:normal; font-variant-alternates:inherit; font-variant-caps:normal; font-variant-east-asian:inherit; font-variant-ligatures:normal; font-variant-numeric:inherit; font-variation-settings:inherit; font-weight:400; letter-spacing:normal; line-height:inherit; margin-bottom:1.1em; margin-left:0; margin-right:0; margin-top:0; orphans:2; padding:0px; text-align:left; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; vertical-align:baseline; white-space:normal; widows:2; word-spacing:0px">I have a JPMS application with layer tree. In Module X on<span> </span><code style="--theme-background-attachment:auto; --theme-background-color:var(--white); --theme-background-position:top left; --theme-background-repeat:repeat; --theme-background-size:auto; --theme-base-primary-color-h:27; --theme-base-primary-color-l:48%; --theme-base-primary-color-s:89%; --theme-body-font-color:var(--black-600); --theme-body-font-family:var(--ff-sans); --theme-button-active-background-color:initial; --theme-button-color:initial; --theme-button-hover-background-color:initial; --theme-button-hover-color:initial; --theme-button-outlined-border-color:initial; --theme-button-outlined-selected-border-color:initial; --theme-button-primary-active-background-color:initial; --theme-button-primary-active-color:initial; --theme-button-primary-background-color:initial; --theme-button-primary-color:initial; --theme-button-primary-hover-background-color:initial; --theme-button-primary-hover-color:initial; --theme-button-primary-selected-background-color:initial; --theme-button-primary-selected-color:initial; --theme-button-selected-background-color:initial; --theme-button-selected-color:initial; --theme-content-background-color:var(--white); --theme-content-border-color:var(--black-225); --theme-footer-background-border-top:0; --theme-footer-background-color:hsl(210,8%,5%); --theme-footer-background-position:top left; --theme-footer-background-repeat:no-repeat; --theme-footer-background-size:auto; --theme-footer-divider-color:var(--black-500); --theme-footer-link-color-hover:var(--black-200); --theme-footer-link-color:var(--black-300); --theme-footer-padding-bottom:0; --theme-footer-padding-top:0; --theme-footer-text-color:var(--black-300); --theme-footer-title-color:var(--black-250); --theme-header-background-border-bottom:0; --theme-header-background-color:var(--theme-primary); --theme-header-background-position:center left; --theme-header-background-repeat:repeat; --theme-header-background-size:auto; --theme-header-foreground-color:transparent; --theme-header-foreground-position:bottom right; --theme-header-foreground-repeat:no-repeat; --theme-header-foreground-size:auto; --theme-header-link-color:var(--theme-primary); --theme-header-sponsored-color:hsla(0,0%,100%,0.4); --theme-link-color-hover:initial; --theme-link-color-visited:initial; --theme-link-color:initial; --theme-post-body-font-family:var(--ff-sans); --theme-post-owner-background-color:var(--theme-secondary-100); --theme-post-owner-new-background-color:var(--theme-secondary-200); --theme-post-title-color-hover:var(--theme-link-color-hover); --theme-post-title-color-visited:var(--theme-link-color-visited); --theme-post-title-color:var(--theme-link-color); --theme-post-title-font-family:var(--ff-sans); --theme-primary-custom-100:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom:var(--theme-primary-custom-400); --theme-tag-background-color:initial; --theme-tag-border-color:initial; --theme-tag-color:initial; --theme-tag-hover-background-color:initial; --theme-tag-hover-border-color:initial; --theme-tag-hover-color:initial; --theme-tag-required-background-color:var(--theme-secondary-500); --theme-tag-required-border-color:transparent; --theme-tag-required-color:var(--white); --theme-tag-required-hover-background-color:var(--theme-secondary-400); --theme-tag-required-hover-border-color:transparent; --theme-tag-required-hover-color:var(--white); --theme-topbar-bottom-border:1px solid var(--black-225); background-color:var(--black-200); border-radius:var(--br-sm); border:0px; box-sizing:inherit; color:var(--black-600); font-family:var(--ff-mono); font-feature-settings:inherit; font-kerning:inherit; font-optical-sizing:inherit; font-size:var(--_pr-code-fs); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-variation-settings:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:var(--su2) var(--su4); vertical-align:baseline">Layer C</code><span> </span>I need to create Spring context while Spring framework is located on<span> </span><code style="--theme-background-attachment:auto; --theme-background-color:var(--white); --theme-background-position:top left; --theme-background-repeat:repeat; --theme-background-size:auto; --theme-base-primary-color-h:27; --theme-base-primary-color-l:48%; --theme-base-primary-color-s:89%; --theme-body-font-color:var(--black-600); --theme-body-font-family:var(--ff-sans); --theme-button-active-background-color:initial; --theme-button-color:initial; --theme-button-hover-background-color:initial; --theme-button-hover-color:initial; --theme-button-outlined-border-color:initial; --theme-button-outlined-selected-border-color:initial; --theme-button-primary-active-background-color:initial; --theme-button-primary-active-color:initial; --theme-button-primary-background-color:initial; --theme-button-primary-color:initial; --theme-button-primary-hover-background-color:initial; --theme-button-primary-hover-color:initial; --theme-button-primary-selected-background-color:initial; --theme-button-primary-selected-color:initial; --theme-button-selected-background-color:initial; --theme-button-selected-color:initial; --theme-content-background-color:var(--white); --theme-content-border-color:var(--black-225); --theme-footer-background-border-top:0; --theme-footer-background-color:hsl(210,8%,5%); --theme-footer-background-position:top left; --theme-footer-background-repeat:no-repeat; --theme-footer-background-size:auto; --theme-footer-divider-color:var(--black-500); --theme-footer-link-color-hover:var(--black-200); --theme-footer-link-color:var(--black-300); --theme-footer-padding-bottom:0; --theme-footer-padding-top:0; --theme-footer-text-color:var(--black-300); --theme-footer-title-color:var(--black-250); --theme-header-background-border-bottom:0; --theme-header-background-color:var(--theme-primary); --theme-header-background-position:center left; --theme-header-background-repeat:repeat; --theme-header-background-size:auto; --theme-header-foreground-color:transparent; --theme-header-foreground-position:bottom right; --theme-header-foreground-repeat:no-repeat; --theme-header-foreground-size:auto; --theme-header-link-color:var(--theme-primary); --theme-header-sponsored-color:hsla(0,0%,100%,0.4); --theme-link-color-hover:initial; --theme-link-color-visited:initial; --theme-link-color:initial; --theme-post-body-font-family:var(--ff-sans); --theme-post-owner-background-color:var(--theme-secondary-100); --theme-post-owner-new-background-color:var(--theme-secondary-200); --theme-post-title-color-hover:var(--theme-link-color-hover); --theme-post-title-color-visited:var(--theme-link-color-visited); --theme-post-title-color:var(--theme-link-color); --theme-post-title-font-family:var(--ff-sans); --theme-primary-custom-100:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom:var(--theme-primary-custom-400); --theme-tag-background-color:initial; --theme-tag-border-color:initial; --theme-tag-color:initial; --theme-tag-hover-background-color:initial; --theme-tag-hover-border-color:initial; --theme-tag-hover-color:initial; --theme-tag-required-background-color:var(--theme-secondary-500); --theme-tag-required-border-color:transparent; --theme-tag-required-color:var(--white); --theme-tag-required-hover-background-color:var(--theme-secondary-400); --theme-tag-required-hover-border-color:transparent; --theme-tag-required-hover-color:var(--white); --theme-topbar-bottom-border:1px solid var(--black-225); background-color:var(--black-200); border-radius:var(--br-sm); border:0px; box-sizing:inherit; color:var(--black-600); font-family:var(--ff-mono); font-feature-settings:inherit; font-kerning:inherit; font-optical-sizing:inherit; font-size:var(--_pr-code-fs); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-variation-settings:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:var(--su2) var(--su4); vertical-align:baseline">Layer B</code>:</p><pre style="--_cb-line-numbers-bg:var(--black-150); --theme-background-attachment:auto; --theme-background-color:var(--white); --theme-background-position:top left; --theme-background-repeat:repeat; --theme-background-size:auto; --theme-base-primary-color-h:27; --theme-base-primary-color-l:48%; --theme-base-primary-color-s:89%; --theme-body-font-color:var(--black-600); --theme-body-font-family:var(--ff-sans); --theme-button-active-background-color:initial; --theme-button-color:initial; --theme-button-hover-background-color:initial; --theme-button-hover-color:initial; --theme-button-outlined-border-color:initial; --theme-button-outlined-selected-border-color:initial; --theme-button-primary-active-background-color:initial; --theme-button-primary-active-color:initial; --theme-button-primary-background-color:initial; --theme-button-primary-color:initial; --theme-button-primary-hover-background-color:initial; --theme-button-primary-hover-color:initial; --theme-button-primary-selected-background-color:initial; --theme-button-primary-selected-color:initial; --theme-button-selected-background-color:initial; --theme-button-selected-color:initial; --theme-content-background-color:var(--white); --theme-content-border-color:var(--black-225); --theme-footer-background-border-top:0; --theme-footer-background-color:hsl(210,8%,5%); --theme-footer-background-position:top left; --theme-footer-background-repeat:no-repeat; --theme-footer-background-size:auto; --theme-footer-divider-color:var(--black-500); --theme-footer-link-color-hover:var(--black-200); --theme-footer-link-color:var(--black-300); --theme-footer-padding-bottom:0; --theme-footer-padding-top:0; --theme-footer-text-color:var(--black-300); --theme-footer-title-color:var(--black-250); --theme-header-background-border-bottom:0; --theme-header-background-color:var(--theme-primary); --theme-header-background-position:center left; --theme-header-background-repeat:repeat; --theme-header-background-size:auto; --theme-header-foreground-color:transparent; --theme-header-foreground-position:bottom right; --theme-header-foreground-repeat:no-repeat; --theme-header-foreground-size:auto; --theme-header-link-color:var(--theme-primary); --theme-header-sponsored-color:hsla(0,0%,100%,0.4); --theme-link-color-hover:initial; --theme-link-color-visited:initial; --theme-link-color:initial; --theme-post-body-font-family:var(--ff-sans); --theme-post-owner-background-color:var(--theme-secondary-100); --theme-post-owner-new-background-color:var(--theme-secondary-200); --theme-post-title-color-hover:var(--theme-link-color-hover); --theme-post-title-color-visited:var(--theme-link-color-visited); --theme-post-title-color:var(--theme-link-color); --theme-post-title-font-family:var(--ff-sans); --theme-primary-custom-100:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom:var(--theme-primary-custom-400); --theme-tag-background-color:initial; --theme-tag-border-color:initial; --theme-tag-color:initial; --theme-tag-hover-background-color:initial; --theme-tag-hover-border-color:initial; --theme-tag-hover-color:initial; --theme-tag-required-background-color:var(--theme-secondary-500); --theme-tag-required-border-color:transparent; --theme-tag-required-color:var(--white); --theme-tag-required-hover-background-color:var(--theme-secondary-400); --theme-tag-required-hover-border-color:transparent; --theme-tag-required-hover-color:var(--white); --theme-topbar-bottom-border:1px solid var(--black-225); -webkit-text-stroke-width:0px; background-color:var(--highlight-bg); border-radius:var(--br-md); border:0px; box-sizing:inherit; color:#0c0d0e; font-family:var(--ff-mono); font-feature-settings:inherit; font-kerning:inherit; font-optical-sizing:inherit; font-size:var(--fs-body1); font-stretch:inherit; font-style:normal; font-variant-alternates:inherit; font-variant-caps:normal; font-variant-east-asian:inherit; font-variant-ligatures:normal; font-variant-numeric:inherit; font-variation-settings:inherit; font-weight:400; letter-spacing:normal; line-height:var(--lh-md); margin-bottom:1.5em; margin-left:0; margin-right:0; margin-top:0; max-height:600px; orphans:2; overflow-wrap:normal; overflow:auto; padding:var(--su12); text-align:left; text-decoration-color:initial; text-decoration-style:initial; text-decoration-thickness:initial; text-indent:0px; text-transform:none; vertical-align:baseline; widows:2; width:auto; word-spacing:0px"><code style="--theme-background-attachment:auto; --theme-background-color:var(--white); --theme-background-position:top left; --theme-background-repeat:repeat; --theme-background-size:auto; --theme-base-primary-color-h:27; --theme-base-primary-color-l:48%; --theme-base-primary-color-s:89%; --theme-body-font-color:var(--black-600); --theme-body-font-family:var(--ff-sans); --theme-button-active-background-color:initial; --theme-button-color:initial; --theme-button-hover-background-color:initial; --theme-button-hover-color:initial; --theme-button-outlined-border-color:initial; --theme-button-outlined-selected-border-color:initial; --theme-button-primary-active-background-color:initial; --theme-button-primary-active-color:initial; --theme-button-primary-background-color:initial; --theme-button-primary-color:initial; --theme-button-primary-hover-background-color:initial; --theme-button-primary-hover-color:initial; --theme-button-primary-selected-background-color:initial; --theme-button-primary-selected-color:initial; --theme-button-selected-background-color:initial; --theme-button-selected-color:initial; --theme-content-background-color:var(--white); --theme-content-border-color:var(--black-225); --theme-footer-background-border-top:0; --theme-footer-background-color:hsl(210,8%,5%); --theme-footer-background-position:top left; --theme-footer-background-repeat:no-repeat; --theme-footer-background-size:auto; --theme-footer-divider-color:var(--black-500); --theme-footer-link-color-hover:var(--black-200); --theme-footer-link-color:var(--black-300); --theme-footer-padding-bottom:0; --theme-footer-padding-top:0; --theme-footer-text-color:var(--black-300); --theme-footer-title-color:var(--black-250); --theme-header-background-border-bottom:0; --theme-header-background-color:var(--theme-primary); --theme-header-background-position:center left; --theme-header-background-repeat:repeat; --theme-header-background-size:auto; --theme-header-foreground-color:transparent; --theme-header-foreground-position:bottom right; --theme-header-foreground-repeat:no-repeat; --theme-header-foreground-size:auto; --theme-header-link-color:var(--theme-primary); --theme-header-sponsored-color:hsla(0,0%,100%,0.4); --theme-link-color-hover:initial; --theme-link-color-visited:initial; --theme-link-color:initial; --theme-post-body-font-family:var(--ff-sans); --theme-post-owner-background-color:var(--theme-secondary-100); --theme-post-owner-new-background-color:var(--theme-secondary-200); --theme-post-title-color-hover:var(--theme-link-color-hover); --theme-post-title-color-visited:var(--theme-link-color-visited); --theme-post-title-color:var(--theme-link-color); --theme-post-title-font-family:var(--ff-sans); --theme-primary-custom-100:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600:hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom:var(--theme-primary-custom-400); --theme-tag-background-color:initial; --theme-tag-border-color:initial; --theme-tag-color:initial; --theme-tag-hover-background-color:initial; --theme-tag-hover-border-color:initial; --theme-tag-hover-color:initial; --theme-tag-required-background-color:var(--theme-secondary-500); --theme-tag-required-border-color:transparent; --theme-tag-required-color:var(--white); --theme-tag-required-hover-background-color:var(--theme-secondary-400); --theme-tag-required-hover-border-color:transparent; --theme-tag-required-hover-color:var(--white); --theme-topbar-bottom-border:1px solid var(--black-225); background-color:transparent; border:0px; box-sizing:inherit; font-family:inherit; font-feature-settings:inherit; font-kerning:inherit; font-optical-sizing:inherit; font-size:var(--_pr-code-fs); font-stretch:inherit; font-style:inherit; font-variant:inherit; font-variation-settings:inherit; font-weight:inherit; line-height:inherit; margin:0px; padding:0px; vertical-align:baseline">boot layer
  |- Layer B with Spring framework.
       |- Layer C with Module X and Module Y</code></pre></div><div>All child created this way:</div><div>          parentClassLoader = ClassLoader.getSystemClassLoader();</div><div>          ModuleLayer.Controller controller = </div><div><div><div>                    ModuleLayer.defineModulesWithOneLoader(cf, parentLayers, parentClassLoader);</div><div> </div><div>In Module X I do the following test code</div><div> </div><div><div><div>        System.out.println("ThreadContextClassLoadere:" + Thread.currentThread().getContextClassLoader());</div><div>        System.out.println("This classLoader:" + this.getClass().getClassLoader());</div><div>        var clazz = this.getClass().getClassLoader().loadClass("org.springframework.context.ApplicationContextAware");</div><div>        System.out.println("RESULT:" + clazz);</div></div><div>       </div><div>        //now I am trying to get resource as stream for class from Module Y:</div><div><div>        var stream1 = this.getClass().getClassLoader().getResourceAsStream("com/foo/moduley/ContextConfig.class");</div><div>        System.out.println("Stream 1 = " + stream1);</div></div><div> </div><div><div>        var stream2 = this.getClass().getClassLoader().getResourceAsStream("org/springframework/context/ApplicationContextAware.class");</div><div>        System.out.println("Stream 2 = " + stream2);</div></div></div></div></div><div> </div><div>And this is output:</div><div> </div><div><div>        ThreadContextClassLoadere:jdk.internal.loader.Loader@4dd425dc</div><div>        This classLoader:jdk.internal.loader.Loader@4dd425dc</div><div>        RESULT: interface org.springframework.context.ApplicationContextAware</div><div>        Stream 1 = sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@45e9db77</div><div>        Stream 2 = null</div><div> </div><div>So, the problem is that Spring classes are visible in Module X but it is not possible to get them as resource stream.</div><div>I need resource stream because Spring reads classes this way and without solving this problem I can’t start Spring Context  in Module X.</div><div> </div><div>Could anyone help? I would be thankful for any help.</div></div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Best regards, Alex Orlov</div></div></div></BODY></HTML>