[midPoint] Custom Schema Extenstion

Paul Heaney lists at pheaney.co.uk
Tue Sep 17 18:48:20 CEST 2013


Hello,

Does midPoint support multiple custom schema extensions?  The
documentation at
https://wiki.evolveum.com/display/midPoint/Custom+Schema+Extension
indicates that it does though when I create two schemas with different
namespaces I get the following exception on start up:

Caused by: com.evolveum.midpoint.util.exception.SchemaException:
Duplicate definition of extension for type
{http://midpoint.evolveum.com/xml/ns/public/common/common-2a}UserType:
CTD ({http://example.co.uk/xml/ns/example/core}UserExtensionTypeCore)
and CTD ({http://example.co.uk/xml/ns/example/schema2}UserExtensionTypeSchema2)
at com.evolveum.midpoint.prism.schema.SchemaRegistry.detectExtensionSchema(SchemaRegistry.java:336)
~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.schema.SchemaRegistry.parsePrismSchema(SchemaRegistry.java:328)
~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.schema.SchemaRegistry.parsePrismSchemas(SchemaRegistry.java:312)
~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.schema.SchemaRegistry.initialize(SchemaRegistry.java:282)
~[prism-2.2.jar:na]
at com.evolveum.midpoint.prism.PrismContext.initialize(PrismContext.java:75)
~[prism-2.2.jar:na]
at com.evolveum.midpoint.schema.MidPointPrismContextFactory.createInitializedPrismContext(MidPointPrismContextFactory.java:70)
~[schema-2.2.jar:na]

The reason I wish to use multiple extensions is that for our customer
base there is a common set of additional attributes across them all
then we wish to add industry specific extensions as well e.g. academia
requires schools and courses where was commercial does not and this is
an attempt to keep the core configuration as similar as possible

Regards
Paul



More information about the midPoint mailing list