• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AXParseException:

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while i try to start tomcat 4.0 startup.bat file it give this exception...
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
PARSE error at line 1 column 9
org.xml.sax.SAXParseException: The XML declaration may only appear at the very beginning of
the document.
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
can any one tell me why it display this msg???
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The XML declaration may only appear at the very beginning of
the document.


That means exactly what it says. You have an XML file - either server.xml or web.xml - that has been modified so that the very first character in the file is NOT the < of <?xml - when the parser later runs into <?xml its an error.
Probably a blank line got inserted at the very top of your web.xml during editing.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic