Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 9 NPE on startup

I'm trying to duplicate jetty.xml, jetty-http.xml, and jetty-deploy.xml in code, and I get a NullPointerException on startup:

2012-11-19 13:12:24 org.eclipse.jetty.webapp.WebAppContext 578 WARN Failed startup of context o.e.j.w.WebAppContext@2b1d8ca6{/,file:/C:/dev/rhubarb/rhubarb/webapps/root/,STARTING}{C:\dev\rhubarb\rhubarb\webapps\root}
java.lang.NullPointerException: null
at org.eclipse.jetty.server.session.AbstractSessionManager.doStart( ~[jetty-server-9.0.0.M2.jar:9.0.0.M2] at org.eclipse.jetty.server.session.HashSessionManager.doStart( ~[jetty-server-9.0.0.M2.jar:9.0.0.M2]

The offending lines in AbstractSession are:

final Server server=getSessionHandler().getServer();
synchronized (server)

I'm having a hard time tracing through the stack to figure out where "server" should have been set.

Can anyone help?

Here's the code:

and the startup log:

What am I doing wrong?

Back to the top