You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Ellis Pritchard (JIRA)" <ji...@apache.org> on 2006/07/06 12:07:30 UTC

[jira] Created: (COCOON-1878) Validation block: conflict over Xerces xml-apis and jsr-173 javax.xml.XMLConstants

Validation block: conflict over Xerces xml-apis and jsr-173 javax.xml.XMLConstants
----------------------------------------------------------------------------------

         Key: COCOON-1878
         URL: http://issues.apache.org/jira/browse/COCOON-1878
     Project: Cocoon
        Type: Bug

  Components: Blocks: Validation  
    Versions: 2.1.8, 2.1.9    
    Reporter: Ellis Pritchard
    Priority: Minor


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (COCOON-1878) Validation block: conflict over Xerces xml-apis and jsr-173 javax.xml.XMLConstants

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/COCOON-1878?page=all ]

Jörg Heinicke closed COCOON-1878.
---------------------------------

    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.10-dev (current SVN)
       Resolution: Fixed

It seems that the Validator interface declares some constants with the same values too. So replaced the references to XMLConstants's constants with them in Validator.

> Validation block: conflict over Xerces xml-apis and jsr-173 javax.xml.XMLConstants
> ----------------------------------------------------------------------------------
>
>                 Key: COCOON-1878
>                 URL: http://issues.apache.org/jira/browse/COCOON-1878
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Validation
>    Affects Versions: 2.1.8, 2.1.9
>            Reporter: Ellis Pritchard
>            Priority: Minor
>             Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira