trouble with the org.apache.karaf.webconsole.cfg file
jelramzy_jelramzy Jun 11, 2013 10:38 AMHi there,
i am using the Fuse ESB Enterprise 7.1 and wanted to give a try to the webconsole security setting following the steps in the provided documentation on the site.
here is the suggested configuration format:
well, unfortunately it seems that the format provided in the documentation does not work since i got the following exception while deploying the file ( which does not exist in the etc directory, so i had to create it):
java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException: Document root element "config", must match DOCTYPE root "null".
at java.util.XMLUtils.load(XMLUtils.java:56)[:1.6.0_35]
at java.util.Properties.loadFromXML(Properties.java:852)[:1.6.0_35]
at org.apache.felix.fileinstall.internal.ConfigInstaller.setConfig(ConfigInstaller.java:221)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
at org.apache.felix.fileinstall.internal.ConfigInstaller.update(ConfigInstaller.java:89)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1103)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:898)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:482)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.3.11.fuse-71-047]
Caused by: org.xml.sax.SAXParseException: Document root element "config", must match DOCTYPE root "null".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)[:]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown Source)[:]
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)[:]
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)[:]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)[:]
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)[:]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)[:]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)[:]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
at java.util.XMLUtils.getLoadingDoc(XMLUtils.java:82)[:1.6.0_35]
at java.util.XMLUtils.load(XMLUtils.java:54)[:1.6.0_35]
... 7 more
Aren't we supposed to have a file with the following format instead:
realm=karaf
role=webconsole
am i missing something?
Regards