File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes AXParseException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "AXParseException:" Watch "AXParseException:" New topic
Author

AXParseException:

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
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???


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AXParseException: