aspose file tools*
The moose likes Tomcat and the fly likes SAXParseException: Content is not allowed in prolog. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "SAXParseException: Content is not allowed in prolog." Watch "SAXParseException: Content is not allowed in prolog." New topic
Author

SAXParseException: Content is not allowed in prolog.

Jason Crest
Greenhorn

Joined: Oct 17, 2002
Posts: 29
i keep getting this error whenever i run ./shutdown.sh in the bin direcotry of tomcat
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
Have you modified any xml files in Tomcat? Particularly the server.xml file?
As I recall, the shutdown process has to read server.xml in order to learn which port Tomcat is listening for the shutdown instruction on.
Bill
Jason Crest
Greenhorn

Joined: Oct 17, 2002
Posts: 29
ok i feel lame now, haha

my keyboard has a habbit of inserting the ` character without me pressing the key. i found it at the very beginning of the server.xml file and removed it.

it works now

thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SAXParseException: Content is not allowed in prolog.