486530 - Handler added to WebAppContext prevents ServletContext initialization
Fixed needless warnings during destroy
This commit is contained in:
parent
a377b3a8f3
commit
d38bdb6e7c
|
@ -178,6 +178,7 @@ public class ServletContextHandler extends ContextHandler
|
|||
@Override
|
||||
public void setHandler(Handler handler)
|
||||
{
|
||||
if (handler!=null)
|
||||
LOG.warn("ServletContextHandler.setHandler should not be called directly. Use insertHandler or setSessionHandler etc.");
|
||||
super.setHandler(handler);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue