Thursday, February 15, 2007

Deployment descriptor "web.xml" is malformed.

<[Application: 'C:\bea\user_projects\domains\CClearDomain\applications', Module: 'srgt']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(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*)". (line 68, column 11).>


U see this error because the order of elements in ur web.xml is different from the dtd its using
ex: UR web.xml shud comply with http://java.sun.com/dtd/web-app_2_3.dtd so if any of the ordering is different you will see the above error.




SRGT


com.jpmchase.srgt.interceptor.SrgtSessionListener






action

org.apache.struts.action.ActionServlet


config
/WEB-INF/struts-config.xml


debug
3


detail
3

2






action
*.do



450



java.lang.Exception
/pages/SrgtError.jsp



java.lang.RuntimeException
/pages/SrgtError.jsp






No comments: