Schema (XSD) validation errors upon TIBCO API Exchange(APIX) engine startup.
book
Article ID: KB0093173
calendar_today
Updated On:
Products
Versions
TIBCO API Exchange
-
Not Applicable
-
Description
Description: During APIX engine startup, there are errors loading the XSD schemas when one schema imports another schema.
Symptoms: The following error is recorded in the log file:
asg-caching-core Info [main] - [user] [core-class] ERROR:
Validation:Line 47: Error loading Schema: java.lang.RuntimeException:
src-resolve: Cannot resolve the name '<variable_name>' to a(n)
'type definition' component.
Note that the variable '<variable_name>' (which can be any variable from your parent schema) is part of the parent schema (the schema which is imported). This error is thrown from the schema which is importing the parent schema.
Cause: This is a consequence of the gateway building a single global
schema cache for the validator. The files are loaded in order and
the schema resolver is directional.
Resolution
If you add the included/imported schema files to the list of schemas
loaded, make sure that they come earlier in the list than the
one you are validating with it. This means that you would need to do the re-ordering by editing the
Schemas.cfg file.
Issue/Introduction
Schema (XSD) validation errors upon TIBCO API Exchange(APIX) engine startup.