I would suggest taking a Look at the XML and make sure there are no null's
cr's lf's tabs or other whitespace characters in the Input XML before
<?xml version="1.0" encoding="ISO-8859-1"? version="1.0">
The encoding attribute is specific to the version of browser
http://www.w3schools.com/xml/xml_encoding.asp
whereas version can either be "1.1" or "1.0"
http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-version-info
be mindful that version="1.1" doc may invoke 1.0 external entities
but the reverse is not true..at least from I see in the doc available
HTH/
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Roger Varley" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, May 23, 2007 9:07 AM
Subject: [S2] Inappropriate Error Message
I'm developing using Struts 2 with the Spring plugin within Netbeans
5.5 using the embedded Tomcat as the servlet engine. If I screw up my
Spring applicationContext.xml by incorrectly specifying the path to
the class in a bean element, then when I try to deploy the project I
get the error message in the Tomcat start up logs.
SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in
prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
rather than a more helpful "can't find class foo.bar.baz.class" It's
not too big a problem at the moment as I only have half a dozen beans
defined, but for larger projects a more helpful error message would be
nice. Is this actually a Struts 2 issue, a Spring issue or a product
of my development environment?
Regards
Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]