[
https://issues.apache.org/jira/browse/XERCESJ-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mukul Gandhi updated XERCESJ-1516:
----------------------------------
Fix Version/s: 2.12.0
> Delay loading of Eclipse PsychoPath classes until an XML Schema 1.1 processor
> is used.
> --------------------------------------------------------------------------------------
>
> Key: XERCESJ-1516
> URL: https://issues.apache.org/jira/browse/XERCESJ-1516
> Project: Xerces2-J
> Issue Type: Improvement
> Components: XML Schema 1.1 Structures
> Affects Versions: 2.11.0
> Reporter: Michael Glavassevich
> Assignee: Michael Glavassevich
> Priority: Minor
> Fix For: 2.12.0
>
>
> An XSDTypeAlternativeTraverser is always created by the XSDHandler,
> regardless of whether we're doing XML Schema 1.1 processing. This causes us
> to load Eclipse PsychoPath even when it's not going to be used. By only
> creating an XSDTypeAlternativeTraverser in XML Schema 1.1 mode we can avoid
> loading PsychoPath classes in XML Schema 1.0 mode.
> This should allow people to continue using Xerces' XML Schema 1.0 processor
> without having to include PsychoPath on their class path. With Xerces-J
> 2.11.0 they would get the following stack trace without the jar:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/wst/xml/xpath2/processor/XPathParserException
> at org.apache.xerces.impl.xs.traversers.XSDHandler.createTraversers(Unknown
> Source)
> at
> org.apache.xerces.impl.xs.traversers.XSDHandler.prepareForTraverse(Unknown
> Source)
> at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
> Source)
> ...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]