Description
Daniel Thanner opened SWS-63 and commented
I've customized the spring-ws-1.0-m2 airline example. Using PayloadValidatingInterceptor with SoapActionEndpointMapping in apache-tomcat-5.5.16 (j2sdk1.4.2_09) works fine.
Using the same code under Websphere 6.0 Testserver (J2RE 1.4.2 IBM Windows 32) validates only once. If both (request and response) is validated the request is validated, but not the response. If the configuration is changed, to validate only the request, the first request is validated and the ws responds with a valid response. But the second request (with the same data) will fail. Error is in both cases identical (except of request/response token in error message):
XML validation error on request: schema_reference.4: Failed to read schema document 'file:/F:/Programs/IBM/Rational/SDP/6.0/runtimes/base_v6/profiles/testprofile/installedApps/xxxNode01Cell/myServer.ear/web.war/airline.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema.
XML validation error on request: cvc-elt.1: Cannot find the declaration of element 'myns:myRequest'.
If AbstractValidatingInterceptor is patched to always retrieve a validator (in handleRequest() and handleResponse()) the error disappears:
Code:
validator = XmlValidatorFactory.createValidator(schemas, schemaLanguage);
The schema and wsdl file is at the right dir position (WAR-Root).
Jira opened as recommended by Arjen.
If you need more information, just let me know...
Thanks
Affects: 1.0 M2
Issue Links:
- PayloadValidatingInterceptor not working under WebSphere 6.0.2.11 [SWS-73] #230 PayloadValidatingInterceptor not working under WebSphere 6.0.2.11
("is duplicated by")