Bad schema location

This is a deployment descriptor with an invalid schema reference:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd1"

If you deploy a Web application with such a descriptor, you are likely to generate error messages similar to:

2006-03-31 13:46:22.079 INFO main [WebCompiler] Extracting files from archive: D:\xfsong\workhome\nbprojects\WebTest\dist\WebTest.war
SAXParserException: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'.
Column Number: + 17
Line Number: + 6
2006-03-31 13:46:37.191 ERROR main [XmlDocument] An error occurred during parsing.
2006-03-31 13:46:37.207 WARN main [DeployTool] Deploy module failed due to exception: com.sybase.djc.xml.XmlException: An error occurred during parsing.
2006-03-31 13:46:37.207 ERROR main [DeployTool] Failed to deploy module: D:\xfsong\workhome\nbprojects\WebTest\dist\WebTest.war
2006-03-31 13:46:37.207 INFO main [DeployTool] Running configuration script: webapp-webtest
D:\sybase\60069\bin\undeploy.bat webapp-webtest
2006-03-31 13:46:37.711 WARN main [UndeployTool] Warning: No config file found for webapp-webtest
Warning: No config file found for webapp-webtest
2006-03-31 13:46:37.821 INFO main [UndeployTool] Undeployed: webapp webtest
Undeployed: webapp webtest

This indicates that the XML parser does not recognize any of the XML elements, such as “web-app”.