Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

AXParseException:

 
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
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic