Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Spring uses a similar way to map UIRs URIs to locations on the classpath (spring.schemas files), and that way validates your Spring configuration files. Validation can be disabled (by setting system property is extremely helpful in diagnosing errors in CXF configurations, but it is also very expensive at runtime. Once you have got your application working, you can disable validation by setting a system property: org.apache.cxf.spring.validation.mode (in 2.1) or spring.validation.mode (in 2.0.x). Set it as follows to VALIDATION_NONE), but the default is to have it enabled. This is very useful when you are configuring CXF and not very familiar with CXF's configuration schemas or with Spring itself.disable validation:

-Dorg.apache.spring.validation.mode=VALIDATION_NONE

The table below lists the UIRs URIs for the CXF configuration schemas that you need to specify in your Spring configuration file's schemaLocation attribute so that Spring's validating parse can validate the file.
In theory you need not be concerned with the actual location of the files: Spring knows about their location on the classpath. And if you want to check the content of a schema file (in a binary distribution), you should be able to do so using its URI. At the moment this is not possible, however CXF aims at publishing its schemas in the future. In the meantime, you can use the classpath location in the table below to find the original version of the schema in the trunk.

...