public void registerServlet(String alias, Servlet servlet, Dictionary initparams, HttpContext httpContext) throws ServletException, NamespaceException {
validateAlias(alias, false);
validateServlet(servlet);
Wrapper wrapper = registerInternal(alias, servlet, initparams, httpContext, Type.SERVLET);
wrapper.allocate(); // Causes servlet.init() to be called, which must be done before we return
}
@Override
public void registerResources(String alias, String name, HttpContext httpContext) throws NamespaceException {
validateAlias(alias, false);