Payara icon indicating copy to clipboard operation
Payara copied to clipboard

bugfix: Moved InstalledLib (warlib) initialization into PostBoot, whe…

Open lprimak opened this issue 4 weeks ago • 1 comments

…re it's being installed earlier, and initializing WebContainer during application deployment to make sure it's initialized before PostBoot as well

Description

This PR forces loading of WebContainer (if exists) prior to HK2 class scanning. If this is not done, classes such as @RegisterRestClient that are not directly CDI beans (but are @Stereotypes) will not correctly register as valid CDI beans, and deployments will fail in postboot or when starting the server with applications already deployed.

This PR also moves InstalledLibrariesResolver initialization into post-boot phase, because otherwise the libraries will not be registered in time for deployment of postboot applications.

Fixes #7655 Fixes #7806 Supersedes #7808

lprimak avatar Dec 12 '25 07:12 lprimak

@Pandrex247 This one should not break the "new" postboot sequence... let me know what you think

lprimak avatar Dec 12 '25 07:12 lprimak

@Pandrex247 ping :)

lprimak avatar Dec 17 '25 18:12 lprimak