rackerlabs/repose — pull request #580 by usnavi (2013-07-03 16:40:35+00:00)
Title: B-43833: Improvements for response-messaging.xsd config

JAXB was throwing erroneous validation errors for particular asserts in a 1.1 Schema.

To fix this we no longer rely on JAXB to perform validation. We validate the the DOM before we unmarshal & then unmarshal without schema validation. This is implemented by creating the UnmarshallerValidator object, which performs this operation. Rather than inserting the Umarshaller in our pool, we use the UnmarshallerValidator, which contains an Unmarashaller as well as a Schema object (for validation).

SchemaTest was also added to verify the response-messaging.xsd, which uncovered this JAXB issue.