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

When creating WebAppContext without session-config and with NO_SESSIONS throws NPE #1558

Closed
btd opened this issue May 16, 2017 · 2 comments
Closed
Assignees

Comments

@btd
Copy link
Contributor

btd commented May 16, 2017

If i create WebAppContext this way:

  val webContext = new WebAppContext(
      null, //the parent handler
      "/", //the context path
      null, // SessionHandler for this web app
      null, // SecurityHandler for this web app
      null, // ServletHandler for this web app
      null, //ErrorHandler for this web app
      ServletContextHandler.NO_SESSIONS|ServletContextHandler.NO_SECURITY
    )
    webContext.setWar(config.webDir)

It throws NPE, because MetaData tried to merge default web.xml with session-config (which set 30 min), even if my own web.xml do not contain session-config section.
So it looks there is no way to create WebAppContext without sessions.

@janbartel janbartel self-assigned this May 16, 2017
janbartel added a commit that referenced this issue May 17, 2017
@janbartel
Copy link
Contributor

Fixed in jetty-9.4

@btd
Copy link
Contributor Author

btd commented May 17, 2017

@janbartel Thank you

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

No branches or pull requests

2 participants