Re: Centos 7.7 in Virtual Box on WIndows 7 all 64-bit

"Roskens, Ronald" <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <B6663E208B2DA14DBB3C6FABB9207F78ABA4A56B@biusmb3>
Paul,

Make sure you have java-1.8.0-openjdk-devel (or the Oracle JDK) installed. That's why you  are getting the NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException.

Ron

From: Paul Pathiakis via opennms-discuss [mailto:[email protected]]
Sent: Tuesday, September 26, 2017 10:24 AM
To: General OpenNMS Discussion
Cc: Paul Pathiakis
Subject: [opennms-discuss] Centos 7.7 in Virtual Box on WIndows 7 all 64-bit

Hi all!

I installed CentOS 7.7 in the latest version of VirtualBox.  This has Windows 7 64 bit as the host OS.

I went through the install procedure for RH 7.x.

Everything seemed to go ok with the installer.... then I got to here.....

Installer completed successfully!

==============================================================================
OpenNMS Upgrader
==============================================================================

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException
        at org.opennms.netmgt.vmmgr.ControllerUtils.getController(ControllerUtils.java:48)
        at org.opennms.upgrade.support.Upgrade.isOpennmsRunning(Upgrade.java:110)
        at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:233)
        at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:266)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.AttachNotSupportedException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 10 more
[root@VB opennms]#

Packages of interest (am I missing anything?):

[root@VB opennms]# rpm -qa | egrep -i 'opennms|postgrel|jdk|rrd|jicmp'
jicmp-2.0.3-1.el7.centos.x86_64
rrdtool-1.6.0-0.3.opennms.el7.centos.x86_64
java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64
opennms-core-20.1.0-1.noarch
jrrd-1.1.0-3.el7.centos.x86_64
java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64
opennms-20.1.0-1.noarch
copy-jdk-configs-2.2-3.el7.noarch
opennms-repo-stable-1.0-109.noarch
opennms-webapp-jetty-20.1.0-1.noarch
rrdtool-perl-1.6.0-0.3.opennms.el7.centos.x86_64
jicmp6-2.0.2-1.el7.centos.x86_64
jrrd2-2.0.3-4.el7.centos.x86_64


I can enable and TRY to start opennms but it barfs.... (btw, where are the usual log files being kept for OpenNMS?


[root@VB opennms]# systemctl enable opennms
[root@VB opennms]# systemctl start opennms
Job for opennms.service failed because the control process exited with error code. See "systemctl status opennms.service" and "journalctl -xe" for details.

so.... journalctl -xe:

--
-- Unit opennms.service has begun starting up.
Sep 26 11:21:42 VB opennms[4293]: Starting OpenNMS: Exception in thread "main" j
Sep 26 11:21:42 VB opennms[4293]: at java.lang.Class.getDeclaredMethods0(Native
Sep 26 11:21:42 VB opennms[4293]: at java.lang.Class.privateGetDeclaredMethods(C
Sep 26 11:21:42 VB opennms[4293]: at java.lang.Class.privateGetMethodRecursive(C
Sep 26 11:21:42 VB opennms[4293]: at java.lang.Class.getMethod0(Class.java:3018)
Sep 26 11:21:42 VB opennms[4293]: at java.lang.Class.getMethod(Class.java:1784)
Sep 26 11:21:42 VB opennms[4293]: at org.opennms.bootstrap.Bootstrap.executeClas
Sep 26 11:21:42 VB opennms[4293]: at org.opennms.bootstrap.Bootstrap.executeClas
Sep 26 11:21:42 VB opennms[4293]: at org.opennms.bootstrap.Bootstrap.main(Bootst
Sep 26 11:21:42 VB opennms[4293]: Caused by: java.lang.ClassNotFoundException: c
Sep 26 11:21:42 VB opennms[4293]: at java.net.URLClassLoader.findClass(URLClassL
Sep 26 11:21:42 VB opennms[4293]: at java.lang.ClassLoader.loadClass(ClassLoader
Sep 26 11:21:42 VB opennms[4293]: at java.net.FactoryURLClassLoader.loadClass(UR
Sep 26 11:21:42 VB opennms[4293]: at java.lang.ClassLoader.loadClass(ClassLoader
Sep 26 11:21:42 VB opennms[4293]: ... 8 more
Sep 26 11:21:42 VB opennms[4293]: Unknown value return from doStatus: 1
Sep 26 11:21:42 VB opennms[4293]: [FAILED]
Sep 26 11:21:42 VB systemd[1]: opennms.service: control process exited, code=exi
Sep 26 11:21:42 VB systemd[1]: Failed to start OpenNMS server.
-- Subject: Unit opennms.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit opennms.service has failed.
--
-- The result is failed.
Sep 26 11:21:42 VB systemd[1]: Unit opennms.service entered failed state.
Sep 26 11:21:42 VB systemd[1]: opennms.service failed.
Sep 26 11:21:42 VB polkitd[657]: Unregistered Authentication Agent for unix-proc


(I hope sourceforge is back up soon.... )

Thanks All!

P.

----------------------------------------------------------------------
This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.