Hi, There's only one XML files of yours per webapp that TC would parse like this: the deployment descriptor at WEB-INF/web.xml. There are also very very few schema or DTD whose root element is "web-app" so that's another hint.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Chris [mailto:[EMAIL PROTECTED] >Sent: Saturday, July 24, 2004 9:51 PM >To: Tomcat Users List >Subject: How to know which xml file (under directory webapp) causes >SAXParseException ? > >Howdy, > >When TC gets SAXParseException (such as following ), how to know >*which* XML file , usually under $TC$webapp/, cause the error? >It seems there is no file info about the XML file. > >TIA > >====== SAXParseException >fatal: Parse Error at line 2 column 74: Document root element "web-app", >must match DOCTYPE root "null". >org.xml.sax.SAXParseException: Document root element "web-app", must match >DOCTYPE root "null". > at >org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own >Source) > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >... ... > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]