You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jesse Pangburn <Je...@infor.com> on 2013/10/15 21:01:35 UTC

Schema validation errors in 2.7.7 that did not happen in 2.7.6 and prior

Hi,
XML schema validation is failing in 2.7.7, which used to work in 2.7.6 and back to 2.5.3 (at least).  On my jaxws:endpoint I have schema validation enabled and I see this in the log:
Oct 15, 2013 11:22:45 AM org.apache.cxf.wstx_msv_validation.ResolvingGrammarReaderController error
SEVERE: recursive inclusion is detected ( file:/opt/cloverleaf/cis6.0/integrator/ws_test/WS/XDSb.Support.Materials.v10/schema/HL7V3/NE2008/coreschemas/voc.xsd > file:/opt/cloverleaf/cis6.0/integrator/ws_test/WS/XDSb.Support.Materials.v10/schema/HL7V3/NE2008/coreschemas/datatypes.xsd > file:/opt/cloverleaf/cis6.0/integrator/ws_test/WS/XDSb.Support.Materials.v10/schema/HL7V3/NE2008/coreschemas/voc.xsd )
Oct 15, 2013 11:22:45 AM org.apache.cxf.wstx_msv_validation.ResolvingGrammarReaderController error
SEVERE: in file:/opt/cloverleaf/cis6.0/integrator/ws_test/WS/XDSb.Support.Materials.v10/schema/HL7V3/NE2008/coreschemas/datatypes-base.xsd 64:41

It is complaining because voc.xsd includes datatypes.xsd which includes datatypes-base.xsd which includes voc.xsd, which is recursive.

The thing is, as far as I know, recursion is perfectly legal in XML Schema 1.0 which is why the old validator code never complained about this.  Specifically, the following section (3.8.6) says elements can be defined multiple times indirectly (recursion) under the heading "Schema Component Constraint: Element Declarations Consistent":
http://www.w3.org/TR/xmlschema-1/#coss-modelGroup

The inclusion semantics section says nothing about recursion being illegal:
http://www.w3.org/TR/xmlschema-1/#src-include

Is there a way to shut this off in 2.7.7 and revert to the schema validation in place for 2.7.6 and earlier?

Thanks,
Jesse