Hi Folks!
Does anyone know when they will upload the new schema on www dot springframework dot org/schema/integration/* ?
'Cause now to use auto-completion from ide's are being a big headache, mapping to use the xsd inside jars, etc
Hi Folks!
Does anyone know when they will upload the new schema on www dot springframework dot org/schema/integration/* ?
'Cause now to use auto-completion from ide's are being a big headache, mapping to use the xsd inside jars, etc
The online schemas will be updated today for RC1.
Mark Fisher
Spring Integration Lead
SpringSource, a division of VMware
http://www.springsource.com
http://www.springsource.org/spring-integration
http://blog.springsource.com/main/author/markf
Is there a way to get the older XSD, for milestone 6? I have not upgraded to RC1 and now my configuration XML is invalid, since it points to the upgraded XSD at http://www.springsource.org/schema/i...ration-1.0.xsd
You can configure the XML Catalog for your IDE to point to the M6 versions. The XSD files themselves are located in the JARs, so everything is available within the workspace.
For example, in Eclipse:
Preferences -> Web and XML -> XML Catalog
Then choose "Add..." and provide the following...
Location: select 'Workspace...' and browse to the XSD location (e.g. for "core" in M6, it would be "src/main/java/org/springframework/integration/config/spring-integration-core-1.0.xsd")
Key Type: Schema Location
Key: http://www.springframework.org/schem...n-core-1.0.xsd (or the corresponding reference for the 'adapters' or 'ws' schema location, etc)
After we release 1.0 final, the XSD versions will be updated and previous versions maintained. For example, there may be 1.1.xsd files, but we will keep the 1.0 files online as well.
Hope that helps.
-Mark
Mark Fisher
Spring Integration Lead
SpringSource, a division of VMware
http://www.springsource.com
http://www.springsource.org/spring-integration
http://blog.springsource.com/main/author/markf
Ah. Thanks!
I have solved my issue, simply by changing my xsi:schemaLocation attribute. Before fixing it, the schemaLocation element was pointing to
http://www.springframework.org/schem...ration-1.0.xsd
This started breaking once the new schema for RC1 was posted, and I could not load my web app due to a validation error on the XML, since the new schema differs from the old. It seemed bad to me that it was trying to go to the internet to get the schema file anyway. After a bit of research, I learned that by default spring will try to resolve the schema location to the local copy of the XSD in the spring jar file, which makes a lot more sense. So, my next question was, why was this not working properly? I looked into the spring-integration M6 jar, and found that the META-INF/spring.schemas file had an entry for a slightly different schema URL. So I just changed my schemaLocation to point to the URL that was in the spring.schemas file, and everything stopped complaining. The expected URL was
http://www.springframework.org/schem...n-core-1.0.xsd
Note that it has "core" in there.
I'd like to know how to get an xsd for milestone 6 as well.