aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 12678
    
    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


Java Resources at www.wbrogden.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AXParseException:
 
Similar Threads
Tomcat newbie
Tomcat Configuration -Help pls
Starting Tomcat Error
Tomcat newbie plz help
Tomcat & Error Status 404