Skip to content

ServletContextListener never invoked #505

Open

Description

@Artur-

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

Activity

  1. Dnyaneshwar432 commented on Jan 13, 2024

    @Dnyaneshwar432

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions