Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

AXParseException:  RSS feed

 
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???
 
Author and all-around good cowpoke
Posts: 13078
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
 
My pie came with a little toothpic holding up this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!