Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServletContextListener never invoked #505

Open
Artur- opened this issue Feb 6, 2023 · 1 comment
Open

ServletContextListener never invoked #505

Artur- opened this issue Feb 6, 2023 · 1 comment
Labels

Comments

@Artur-
Copy link
Contributor

Artur- commented Feb 6, 2023

Serverless Java Container version: 1.9.1

Implementations: Spring Boot 2

Framework version: SpringBoot 2.7.5

Frontend service: HTTP API

Deployment method: SAM

Scenario

Hilla initializes some parts through a ServletContextInitializer that uses servletContext.addListener to add a ServletContextListener to the context. The actual initialization then takes place in the ServletContextListener. The problem is that the addListener method of AwsServletContext is empty.

Not sure where the correct place would be to invoke the listener. It seems to happen to work if I invoke the listener immediately.

Expected behavior

The added listener is called

Actual behavior

The added listener is ignored

@deki deki added the bug label Feb 6, 2023
@Dnyaneshwar432
Copy link

Can you please elaborate it simply. Where the particular problem you get faced........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants