This is a Web application with a deployment descriptor that has an invalid DTD definition:
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_31.dtd">
When you deploy a Web application with an invalid DTD definition, you see messages similar to:
2006-03-31 13:51:30.968 INFO main [WebCompiler] Extracting files from archive: D:\xfsong\workhome\nbprojects\WebTest13\dist\WebTest13.war 2006-03-31 13:51:38.189 WARN main [DeployTool] Deploy module failed due to exception: com.sybase.djc.xml.XmlException 2006-03-31 13:51:38.189 ERROR main [DeployTool] Failed to deploy module: D:\xfsong\workhome\nbprojects\WebTest13\dist\WebTest13.war 2006-03-31 13:51:38.204 INFO main [DeployTool] Running configuration script: webapp-webtest13 D:\sybase\60069\bin\undeploy.bat webapp-webtest13 2006-03-31 13:51:38.785 WARN main [UndeployTool] Warning: No config file found for webapp-webtest13 Warning: No config file found for webapp-webtest13 2006-03-31 13:51:38.927 INFO main [UndeployTool] Undeployed: webapp webtest13 Undeployed: webapp webtest13
This message does not clearly identify the problem. Re-run deploy using the “-verbose” option, which produces the following error messages that clearly shows the root cause of the error to be the missing DTD file:
at com.sybase.djc.xml.XmlDocument.read(XmlDocument.java:197) at com.sybase.djc.deploy.webapp.WebCompiler.getXmlDocument(WebCompiler.java:1244) at com.sybase.djc.deploy.webapp.WebCompiler.run(WebCompiler.java:864) at com.sybase.djc.deploy.DeployTool.run(DeployTool.java:783) at com.sybase.djc.deploy.DeployTool.start(DeployTool.java:261) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sybase.djc.bootstrap.StartApplication.main(StartApplication.java:250)Caused by: java.io.FileNotFoundException: http://java.sun.com/dtd/web-app_2_31.dtd at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:812) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sybase.djc.xml.XmlDocument.read(XmlDocument.java:184)