我試圖使用lsc將活動目錄設爲打開lldap同步。我按照這裏的教程:lsc-project.org/wiki/documentation/tutorial/openldaptoactivedirectory。我試着做一個命令(我使用cygwin):「/ usr/bin/lsc -f/etc/lsc/ad2openldap」-s all -c all -n「我得到這個:嘗試使Active Directory通過LSC(Ldap同步連接器)打開LDAP同步
Mar 28 22:36:09 - DEBUG - Loading XML configuration from: C:\lsc\etc\ad2openldap\lsc.xml
Mar 28 22:36:09 - INFO - Reflections took 172 ms to scan 1 urls, producing 51 keys and 103 values
Mar 28 22:36:09 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd
Mar 28 22:36:10 - ERROR - org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/C:/lsc/etc/ad2openldap/lsc.xml; lineNumber: 90; columnNumber: 26; cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}' is expected.]
org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/C:/lsc/etc/ad2openldap/lsc.xml; lineNumber: 90; columnNumber: 26; cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"cause I can't post more 2 links, this is the same":name}' is expected.]
at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:172) ~[lsc-core-2.0.3.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:481) [lsc-core-2.0.3.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:456) [lsc-core-2.0.3.jar:na]
at org.lsc.Launcher.run(Launcher.java:206) [lsc-core-2.0.3.jar:na]
at org.lsc.Launcher.launch(Launcher.java:159) [lsc-core-2.0.3.jar:na]
at org.lsc.Launcher.main(Launcher.java:142) [lsc-core-2.0.3.jar:na]
Caused by: javax.xml.bind.UnmarshalException: null
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source) ~[na:1.8.0]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(Unknown Source) ~[na:1.8.0]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source) ~[na:1.8.0]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:170) ~[lsc-core-2.0.3.jar:na]
... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown Source) ~[na:1.8.0]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(Unknown Source) ~[na:1.8.0]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) ~[na:1.8.0]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[na:1.8.0]
... 12 common frames omitted
感謝。
錯誤是'找到了無效的內容,從元素'asyncLdapSourceService'開始。 '{「http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}'預計'之一。這對你來說意味着什麼? – Benesh
我的代碼如下: –
user3474477
語法錯誤? – user3474477