Skip to content

Jetty 9 deploy should not rely on server.getHandler() #12

@joakime

Description

@joakime

The various configurations within Jetty can replace the root level handler on the server with its own.

This is an unreliable piece of code.

((HandlerCollection) server.getHandler()).addHandler(wctx);

This can often result in either a ClassCastException or the addition of the the context into the wrong HandlerCollection (resulting in unexpected behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions