I'm trying to replicate a database using the following config:
<server>
<connection port="6136" max="100" />
<data path="$objectdb/db-files" />
<replication url="objectdb://localhost:6126/DEV1/NewMessagePipe.odb;user=admin;password=admin" />
</server>
The 6126 server is running fine but the 6136 server refuses to start - no error or other messages are output to the logfile. When I started a client pointed at the 6136 server (expecting it to fail with a connection error) it failed with the exception below.
Is there something wrong with my config?
Caused by: com.objectdb.o.UserException: Failed to validate xml file T:\felix_grid_services\ext\objectdb\2-2-1\objectdb.conf line 38: cvc-complex-type.4: Attribute 'username' must appear on element 'replication'. at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.XMD.n(XMD.java:229) at com.objectdb.o.XMD.j(XMD.java:144) at com.objectdb.o.CFG.q(CFG.java:220) at com.objectdb.o.CFG.<init>(CFG.java:203) at com.objectdb.o.CFG.p(CFG.java:186) at com.objectdb.o.CFG.o(CFG.java:119) at com.objectdb.o.RCL.<clinit>(RCL.java:33) ... 96 more Caused by: org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute 'username' must appear on element 'replication'. at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109) at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.addDefaultAttributes(XMLSchemaValidator.java:2910) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2098) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705) at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192) at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:159) at javax.xml.validation.Validator.validate(Validator.java:82) at com.objectdb.o.XMD.n(XMD.java:204) ... 102 more