Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.8, 2.1.9
-
None
-
Normal
Description
blocks/validation/java/org/apache/cocoon/components/validation/jaxp/JaxpSchemaParser.java relies on the following constants defined in javax.xml.XMLConstants :
XMLConstants.RELAXNG_NS_URI
XMLConstants.W3C_XML_SCHEMA_NS_URI
XMLConstants.XML_DTD_NS_URI
These constants come from xml-apis-1.3.02.jar, which is part of Xerces; however the official release of javax.xml.XMLConstants from Sun (e.g. jsr-173 [1]) does not contain these constants, and therefore installing e.g. stax-api-1.0.1.jar, which contains the official XML API, may create a build or run-time failure, depending on the order that jars are loaded.
These constants should probably be obtained from elsewhere to avoid future problems.
Work-around: disable validation block, or remove XMLConstants from offical jars.
[1] http://java.sun.com/webservices/docs/1.6/api/index.html
XMLConstants.RELAXNG_NS_URI
XMLConstants.W3C_XML_SCHEMA_NS_URI
XMLConstants.XML_DTD_NS_URI
These constants come from xml-apis-1.3.02.jar, which is part of Xerces; however the official release of javax.xml.XMLConstants from Sun (e.g. jsr-173 [1]) does not contain these constants, and therefore installing e.g. stax-api-1.0.1.jar, which contains the official XML API, may create a build or run-time failure, depending on the order that jars are loaded.
These constants should probably be obtained from elsewhere to avoid future problems.
Work-around: disable validation block, or remove XMLConstants from offical jars.
[1] http://java.sun.com/webservices/docs/1.6/api/index.html