If you have a Web application named “WebTest” that has a format exception in the deployment descriptor, you see error messages similar to:
2006-03-31 14:24:53.643 INFO main [WebCompiler] Extracting files from archive: D:\xfsong\workhome\nbprojects\WebTest\dist\WebTest.war SAXParserException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'a'. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://java.sun.com/xml/ns/j2ee":welcome-file-list, "http://java.sun.com/xml/ns/j2ee":error-page, "http://java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http://java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected. Column Number: + 8 Line Number: + 3 SAXParserException: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: 'aa' is not a valid value for 'integer'. Column Number: + 46 Line Number: + 7 SAXParserException: org.xml.sax.SAXParseException: cvc-complex-type.2.2: Element 'load-on-startup' must have no element [children], and the value must be valid. Column Number: + 46 Line Number: + 7 2006-03-31 14:24:55.727 ERROR main [XmlDocument] An error occurred during parsing. 2006-03-31 14:24:55.727 WARN main [DeployTool] Deploy module failed due to exception: com.sybase.djc.xml.XmlException: An error occurred during parsing. 2006-03-31 14:24:55.742 ERROR main [DeployTool] Failed to deploy module: D:\xfsong\workhome\nbprojects\WebTest\dist\WebTest.war 2006-03-31 14:24:55.742 INFO main [DeployTool] Running configuration script: webapp-webtest D:\sybase\60069\bin\undeploy.bat webapp-webtest 2006-03-31 14:24:56.416 WARN main [UndeployTool] Warning: No config file found for webapp-webtest Warning: No config file found for webapp-webtest 2006-03-31 14:24:56.573 INFO main [UndeployTool] Undeployed: webapp webtest Undeployed: webapp webtest