408662 In pax-web servlet services requests even if init() has not finished running

This commit is contained in:
Jan Bartel 2013-06-07 15:39:20 +10:00
parent 4b458792c9
commit 52994f336a
1 changed files with 2 additions and 0 deletions

View File

@ -625,6 +625,8 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
Servlet servlet=_servlet;
synchronized(this)
{
if (!isStarted())
throw new UnavailableException("Servlet not initialized", -1);
if (_unavailable!=0 || !_initOnStartup)
servlet=getServlet();
if (servlet==null)