1,build webappDef from xml;
2,add error-page type.