Hi!

Good, it's always nice to know your not stupid :-)

What's the problem with the parser in java6?

When I run the default web.xml (with the right schemalocation) with my own validation in java6 I get no errors and the only setting I have is the:
---8<---
private static SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
---8<---

I was thinking using the jre6 in a production where we use a lot of xml translations and if it's some problems I won't do it.

Regards Per Jonsson

Mark Thomas skrev:
Per Jonsson wrote:
I run java 6 on linux and is testing the tomcat 6.0.9 and discovered
that the schema declarations for the examples/managers etc and (maybe)
the default web.xml does not point to :
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd. The most of them
point to http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd (and the
default to version 2.4 iirc).

Maybe this is known, or reason for it?

Not known so thanks for spotting and reporting it. The only reason is
that when I did the update, I didn't check the new definition
carefully enough. This is now fixed in svn and will be in 6.0.11 onwards.

I tried to turn on the xml-validation in server.xml and there was some
strange errors like not finding the <web-app> element. I didn't managed
to fix them in tomcat either. If I validate them in eclipse they work fine.

This is due to a problem in the parser that ships with the JDK. If you
 use the latest version of Xerces then it should work correctly.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to