Results 1 to 8 of 8

Thread: XSD Schema for namespace configuration

  1. #1
    Join Date
    Sep 2008
    Posts
    14

    Question XSD Schema for namespace configuration

    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

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,854

    Default

    The online schemas will be updated today for RC1.

  3. #3
    Join Date
    Jun 2006
    Posts
    16

    Default

    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

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,854

    Default

    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

  5. #5
    Join Date
    Aug 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    4

    Default

    I'd like to know how to get an xsd for milestone 6 as well.

  6. #6
    Join Date
    Aug 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    4

    Default

    Ah. Thanks!

  7. #7
    Join Date
    Jun 2006
    Posts
    16

    Default

    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.

  8. #8
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,854

    Default

    Thanks for providing the detailed description. You noticed that the original XSD (without 'core') in M6 was used to combine multiple schemas and that there were some custom configuration requirements to provide the various adapters. It turns out that approach was not very elegant and didn't work very well in certain environments. The RC1 approach is therefore more straightforward - with individual schemas and namespaces per adapter type. The modules are more autonomous and the configuration is simpler to understand. Sorry for the confusing that the M6 version has caused, but I'm glad to see that you've got it working now, and when you are able to upgrade to RC1, I hope you agree that it's smoother and simpler.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •