[SWS-776] Windows-specific error with relative XSD referencing Created: 21/May/12 Updated: 14/Aug/12 Resolved: 14/Aug/12
|Project:||Spring Web Services|
|Reporter:||Maxim Myslivtssev||Assignee:||Arjen Poutsma|
|Remaining Estimate:||Not Specified|
|Original Estimate:||Not Specified|
It appears, that Spring ignores relative addressing in XSD files on Windows platform.
Root cause was found at org.springframework.xml.sax.SaxUtils.getSystemId() method. It tries to construct java.net.URI object from path string with Windows-style -slashes and fails on this operation. This path string is obtained from java.net.URL.toExternalForm(). Exception is silently ignored and null is returned from the method.
Current workaround is to implement custom org.springframework.core.io.ClassPathResource class that will override getURL() returning paths with valid /-slashes.
|Comment by Arjen Poutsma [ 26/Jun/12 ]|
I suspect Spring-WS is not to blame, but rather Spring itself. But I've tried to reproduce this on a Windows VM, and I couldn't. I've attached a sample maven project, could you please take a look at it and see what's different from your project?
|Comment by Arjen Poutsma [ 14/Aug/12 ]|
Closing as Cannot Reproduce for now, due to lack of feedback.