For the 3rd exception that you'r getting, org.xml.sax.SAXException
, Reason is you don't match the fields correctly in your web-app.xml file. You need to match the order of the fields according to the standard order. Order is given in the exception itself.
(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)