We have 3 customise schema files for plugin: lsc-restAPI-content-plugin-1.0.xsd, lsc-restAPI-plugin-1.0.xsd, lsc-sourceServiceEx-plugin-1.0.xsd
 
When launching LSC, it throws error Cannot resolve the name 'lsc:serviceType' to a(n) 'type definition', then LSC failed to launch. After investigation, we found that  the issue is caused by lsc-restAPI-content-plugin-1.0.xsd was loaded  before lsc-core-2.1.xsd. If load lsc-core-2.1.xsd first, the issue will disappear. 
 
Could you please advice how to fix this?
 

Jan 24 17:50:02 - DEBUG - Loading XML configuration from: /Users/chunlingli/git/lichunl-people-user-provisioning/conn-userprov-lsc/resources/samples-connections/source-IDS-config/lsc.xml

Jan 24 17:50:02 - DEBUG - going to scan these urls:

jar:file:/Users/chunlingli/git/conn-dev/ProfileWorkspace/lsc-dependencies/lsc-core-2.1.4.jar!/

file:/Users/chunlingli/git/lichunl-people-user-provisioning/bin/

Jan 24 17:50:02 - INFO  - Reflections took 67 ms to scan 2 urls, producing 77 keys and 176 values 

Jan 24 17:50:02 - DEBUG - Importing XML schema file: schemas/lsc-restAPI-content-plugin-1.0.xsd

Jan 24 17:50:02 - DEBUG - Importing XML schema file: schemas/lsc-core-2.1.xsd

Jan 24 17:50:02 - DEBUG - Importing XML schema file: schemas/lsc-restAPI-plugin-1.0.xsd

Jan 24 17:50:02 - DEBUG - Importing XML schema file: schemas/lsc-sourceServiceEx-plugin-1.0.xsd

Jan 24 17:50:02 - ERROR - Unable to load configuration (org.lsc.exception.LscConfigurationException: Configuration exception: src-resolve: Cannot resolve the name 'lsc:serviceType' to a(n) 'type definition' component.)

org.lsc.exception.LscConfigurationException: Configuration exception: src-resolve: Cannot resolve the name 'lsc:serviceType' to a(n) 'type definition' component.

    at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:157) ~[lsc-core-2.1.4.jar:na]

    at org.lsc.Configuration.setUp(Configuration.java:482) [lsc-core-2.1.4.jar:na]

    at org.lsc.Configuration.setUp(Configuration.java:456) [lsc-core-2.1.4.jar:na]

    at org.lsc.Launcher.run(Launcher.java:205) [lsc-core-2.1.4.jar:na]

    at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.1.4.jar:na]

    at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.1.4.jar:na]

Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'lsc:serviceType' to a(n) 'type definition' component.

    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4158) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4141) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1674) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(XSDComplexTypeTraverser.java:768) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:315) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(XSDComplexTypeTraverser.java:191) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1426) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:626) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:613) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:572) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:538) ~[na:1.8.0_101]

    at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:255) ~[na:1.8.0_101]

    at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:151) ~[lsc-core-2.1.4.jar:na]

    ... 5 common frames omitted



Chun Ling Li(李春玲)
IBM Connection Metrics/Activities/ITM
[email protected] | 8610-82452758

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to