Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] ServletContextholder without contextpath

Hello,

I would like to create a servletcontextholder without a contextpath (servlet should not be mapped) to the jetty container.
When i simply set the argument to null it works, but on shutdown i get the following nullpointerexception:

12-03T19:34:00+00:00 mmserver.cms 19: 34:00,920 - WARN  -         Thread-1 - org.eclipse.jetty.util.component.AbstractLifeCycle # FAILED o.e.j.w.WebAppContext{/geoserver,file:/tmp/jetty-0.0.0.0-8081-geoserver.war-_geoserver-any-/webapp/},/opt/geoserver/geoserver.war: java.lang.NullPointerException
2014-12-03T19:34:00+00:00 mmserver.cms java.lang.NullPointerException
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:251)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:392)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:464)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:136)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:815)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:518)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerCollection.doStop(HandlerCollection.java:250)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerCollection.doStop(HandlerCollection.java:250)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.server.Server.doStop(Server.java:343)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
2014-12-03T19:34:00+00:00 mmserver.cms     at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:132)

Should i achieve the behaviour of simply running the servlet without a mapping differently?
I could not find anything about this behaviour in the jetty documentation.

Note: i am currently using jetty 7, but could not find any sign of change on this matter in jetty 8 or 9.

Kind regards,

Remco Veurink 


Back to the top