-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark,
On 3/16/2011 5:27 PM, Mark Thomas wrote: > On 16/03/2011 21:22, Caldarale, Charles R wrote: >>> From: Mark Thomas [mailto:ma...@apache.org] >>> Subject: Re: Solr on new Tomcat 7.0.11 >> >>> A quick Google suggests that there might be some whitespace >>> before "<?xml ...". If I add some whitespace in my test case >>> I see the same error. Check the file in a text editor. >> >> Could this be caused by a UTF-16 BOM prefix inserted by some less than >> inspiring editors (e.g., Notepad)? Might need a hex editor to be sure. > > Maybe, although most XML parsers are BOM-aware and skip it. Sadly, the XML parser that ships with Java is not. If you have a UTF-8 document and it includes the correct UTF-8 BOM, Sun's Java 1.0.6_24 will fail saying "Content is not allowed in prolog". If the error is "The processing instruction target matching "[Xx][Mm][Ll]" is not allowed", then the problem is non-BOM whitespace before the <?xml?> processing instruction (which is also pretty inconvenient IMO). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2BXlEACgkQ9CaO5/Lv0PCXCACeJXLoyOUe45coTqWjv5hMG3Fi fskAoI9Gff3MNj0aqMu0N/mQOC6hNk21 =1bJD -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org