Description
Arjen Poutsma opened SWS-73 and commented
From the forum:
I had problems with using PayloadValidatingInterceptor with WebSphere 6.0.2.11. Only first request validation was successful while all other subsequent ones were causing errors in SaxParser.
I managed to solve problem with combination of replacing and extending XmlValidatorFactory, Jaxp10ValidatorFactory, Jaxp10Validator and PayloadValidatingInterceptor but it is not a very clean solution because field validator in class PayloadValidatingInterceptor is private field with no setter.
Problems were happening in handleRequest method in AbstractValidatingInterceptor class in line:
SAXParseException[] errors = validator.validate(requestSource);
SaxParser was trying to read same InputStream each time and after first time reading it (reading of xml schema) it was not able to read it any more.
Classes I had to change are in zipped attachment.
P.S.
I had similar problems with CastorMarshaller class but I just replaced it with current one from svn repository (with small changes) and it was easily solved.
Affects: 1.0 M2
Attachments:
- spring-ws-1.0-m2-fix.zip (5.76 kB)
Issue Links:
- PayloadValidatingInterceptor validates only once (Websphere) [SWS-63] #209 PayloadValidatingInterceptor validates only once (Websphere)
("duplicates")