Softprayog.in

Error after starting Tomcat 5

Error:

After starting Tomcat 5, the following error is found in log file:

org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 2 column 6: The processing instruction target matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching [xX][mM][lL] is not allowed.

Solution:

Check the XML files like server.xml and web.xml. Possibly, the first line in the file is blank. that is, the line above

<?xml version="1.0" encoding="UTF-8"?>

is blank. Delete the blank line and restart Tomcat.