Skip to content

FISH-12192 bugfix: initialize WebContainer before HK2 class scanning so Rest APIs…#7902

Open
lprimak wants to merge 2 commits intopayara:mainfrom
flowlogix:fix-web-container
Open

FISH-12192 bugfix: initialize WebContainer before HK2 class scanning so Rest APIs…#7902
lprimak wants to merge 2 commits intopayara:mainfrom
flowlogix:fix-web-container

Conversation

@lprimak
Copy link
Copy Markdown
Contributor

@lprimak lprimak commented Jan 26, 2026

… get loaded properly

fixes #7655

Description

This is a bugfix.

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.

lprimak added a commit to flowlogix/Payara that referenced this pull request Jan 26, 2026
@kalinchan kalinchan added the PR: CLA CLA submitted on PR by the contributor label Jan 29, 2026
@Pandrex247 Pandrex247 changed the title bugfix: initialze WebContainer before HK2 class scanning so Rest APIs… FISH-12945 bugfix: initialze WebContainer before HK2 class scanning so Rest APIs… Feb 6, 2026
@Pandrex247 Pandrex247 changed the title FISH-12945 bugfix: initialze WebContainer before HK2 class scanning so Rest APIs… FISH-12192 bugfix: initialize WebContainer before HK2 class scanning so Rest APIs… Feb 6, 2026
@Pandrex247
Copy link
Copy Markdown
Member

FYI: Conflicts

@lprimak
Copy link
Copy Markdown
Contributor Author

lprimak commented Feb 6, 2026

Conflicts resolved, thanks!

@lprimak
Copy link
Copy Markdown
Contributor Author

lprimak commented Apr 27, 2026

@Pandrex247 Any updates on this? It's the "next on the priority list" of mt PRs.

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: CLA CLA submitted on PR by the contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: MP Rest Client is not deployed on Payara startup only/FISH-12192

3 participants