https://issues.apache.org/bugzilla/show_bug.cgi?id=46764





--- Comment #2 from Sergio Montesa <mont...@unizar.es>  2009-03-05 02:52:19 PST 
---
(In reply to comment #1)
> Can you please supply the simplest JSP that exhibits this error on a clean
> 6.0.18 installation.

My code is as follows:

URL urlXMLIdioma=new URL("http://machine.com/idioma.xml";);
org.w3c.dom.Document docIdioma=null;
org.xml.sax.InputSource isXMLIdioma=null;
javax.xml.parsers.DocumentBuilderFactory
docbfIdioma=javax.xml.parsers.DocumentBuilderFactory.newInstance();
docbfIdioma.setNamespaceAware(false);
docbfIdioma.setValidating(false);
isXMLIdioma=new org.xml.sax.InputSource(urlXMLIdioma.openStream());
isXMLIdioma.setEncoding("ISO-8859-1");
docIdioma=docbfIdioma.newDocumentBuilder().parse(isXMLIdioma);

The last line throws the exception: org.xml.sax.SAXParseException: The
declaration for the entity "HTML.Version" must end with '>'.

If "idioma.xml" not exists then server returns a 404 error page. The 404 page
begins like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html lang="es">
...

and then the exception occurs.

Why? I disabled all xmlValidation (tomcat, in jsp, etc.)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to