Installation issues

Hi !
Need some help installing OpenNMS on CentOS 8
I have went through all steps from Install OpenNMS Network Monitoring Tool in CentOS/RHEL 7

but while installing with

/opt/opennms/bin/install -dis

I get this error. Tried both CentOS 8 and 9

OpenNMS Installer

Configures PostgreSQL tables, users, and other miscellaneous settings.

java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:531)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.IllegalArgumentException: Could not unmarshal org.opennms.netmgt.config.opennmsDataSources.DataSourceConfiguration
at org.opennms.core.db.DataSourceConfigurationFactory.(DataSourceConfigurationFactory.java:68)
at org.opennms.install.Installer.install(Installer.java:163)
at org.opennms.install.Installer.main(Installer.java:987)
… 6 more
Caused by: org.opennms.core.xml.MarshallingResourceFailureException: Failed to marshal/unmarshal XML file while unmarshalling an object (DataSourceConfiguration): javax.xml.bind.UnmarshalException

  • with linked exception:
    [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 2; The markup in the document following the root element must be well-formed.]; nested exception is javax.xml.bind.UnmarshalException
  • with linked exception:
    [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 2; The markup in the document following the root element must be well-formed.]
    at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:61)
    at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:281)
    at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:209)
    at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:205)
    at org.opennms.core.db.DataSourceConfigurationFactory.(DataSourceConfigurationFactory.java:66)
    … 8 more
    Caused by: javax.xml.bind.UnmarshalException
  • with linked exception:
    [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 2; The markup in the document following the root element must be well-formed.]
    at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:980)
    at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:303)
    at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:276)
    … 11 more
    Caused by: Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 2; The markup in the document following the root element must be well-formed.
    at org.eclipse.persistence.exceptions.XMLMarshalException.unmarshalException(XMLMarshalException.java:114)
    at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.convertSAXException(SAXUnmarshaller.java:999)
    at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:496)
    at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:695)
    at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655)
    at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301)
    … 12 more
    Caused by: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 2; The markup in the document following the root element must be well-formed.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
    at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:221)
    at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:492)
    … 15 more

it appears your opennms-datasources.xml is malformed. Check it with xmllint.

You right ! I found a problem.

Many thanks !