Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13740

28.1.1 deb package is missing opennms-snmp-metadata-provisioning-adapter-28.1.1.jar

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 28.1.1
    • 29.0.0
    • Build / Packaging
    • Security Level: Default (Default Security Scheme)
    • Ubuntu bionic/focal, Debian buster/bullseye

    Description

      Fresh install of 28.1.1 on Ubuntu and run config tester yields ClassNotFoundException. This problem is only found in deb package; rpm package installation without this issue.

       

      ubuntu@onmscore03:~$ dpkg -l | grep opennms
      ii libopennms-java 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (OpenNMS Libraries)
      ii libopennmsdeps-java 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Required Libraries)
      ii opennms 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Full Install)
      ii opennms-common 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Common Files)
      ii opennms-db 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Database)
      ii opennms-server 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Daemon)
      ii opennms-source 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Source)
      ii opennms-webapp-jetty 28.1.1-1 all Enterprise-grade Open-source Network Management Platform (Jetty Web UI)

       

       

       

      root@onmscore03:~# /usr/share/opennms/bin/config-tester -a
      09:49:27.339 [Main] INFO org.opennms.netmgt.config.tester.ConfigTesterFilterDao - Initializing ConfigTesterFilterDao
      09:49:27.566 [Main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContex
      t@26aa6a28: startup date [Fri Nov 12 09:49:27 EST 2021]; root of context hierarchy
      ...abbreviated...
      09:49:36.239 [Main] INFO org.opennms.core.xml.AbstractJaxbConfigDao - Loaded Reportd Configuration in 17 ms
      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: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.opennms.netmgt.config.snmpmetadata.SnmpMetadataConfigDao] for bean with n
      ame 'snmpMetadataConfigDao' defined in class path resource [META-INF/opennms/applicationContext-configTester.xml]; nested exception is java.lang.ClassNotFoundException: or
      g.opennms.netmgt.config.snmpmetadata.SnmpMetadataConfigDao
       at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1356)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
       at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1058)
       at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:97)
       at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:242)
       at org.opennms.netmgt.config.tester.ConfigTester.main(ConfigTester.java:225)
       ... 6 more
      Caused by: java.lang.ClassNotFoundException: org.opennms.netmgt.config.snmpmetadata.SnmpMetadataConfigDao
       at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
       at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:899)
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
       at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
       at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1403)
       at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1348)
       ... 15 more
      

       

       

      root@onmscore03:~# find /usr/share/opennms/lib/ -iname "*metadata*"
      /usr/share/opennms/lib/geronimo-ws-metadata_2.0_spec-1.1.3.jar
      root@onmscore03:~#

       

      vs

       

      rpm package

      [root@horizon ~]# find /opt/opennms/lib/ -iname "*metadata*"
      /opt/opennms/lib/geronimo-ws-metadata_2.0_spec-1.1.3.jar
      /opt/opennms/lib/opennms-snmp-metadata-provisioning-adapter-28.1.1.jar

       

       

      Attachments

        Activity

          People

            ranger Benjamin Reed
            jylee JianYet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: