Hi all, i did a fresh debian install and then a fresh nav install, configured everything like suggested in /usr/share/doc/nav/README.Debian everything was smooth but the installation of the java-jdk that i had to add by hand.
Then i added 5 or 6 HP Procurve machines to nav via Edit database and started to see this in: /var/log/nav/getDeviceDatagetDeviceData-stderr.log :
----- java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap not found in PluginMonitorTask$DynamicURLClassLoader{urls=[file:/usr/lib/nav/java/getDeviceData/data-plugins/Netbox.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Mem.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Module.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Gwport.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Device.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/ModuleMon.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Swport.jar,file:/usr/lib/nav/java/getDeviceData/data-plugins/Arp.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoGw.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/StaticRoutes.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/DNSCheck.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/DeviceMem.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/3Com.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/MibIISw.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSwCL3addon.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSwIOSaddon.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSwCAT.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSwIOS.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/HP.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/ARPLogger.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/GetVlanFromInterface.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/Typeoid.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/Server.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSw1900.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoModule.jar,file:/usr/lib/nav/java/getDeviceData/device-plugins/CiscoSwMenu.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:getDeviceData.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[file:/usr/lib/nav/java/ConfigParser.jar,file:/usr/lib/nav/java/Database.jar,file:/usr/lib/nav/java/postgresql.jar,file:/usr/lib/nav/java/NetboxInfo.jar,file:/usr/lib/nav/java/SimpleSnmp.jar,file:/usr/lib/nav/java/Event.jar,file:/usr/lib/nav/java/libsnmp-1.4.jar,file:/usr/lib/nav/java/Util.jar,file:/usr/lib/nav/java/Logger.jar], parent=null}}} at java.net.URLClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.Class.forName(libgcj.so.70) at java.lang.Class.initializeClass(libgcj.so.70) ...3 more java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) -----
any advice?
Thanks in advance, Marco Barbieri.
On Wed, 19 Nov 2008 13:50:19 +0100 Marco Barbieri marco.barbieri@unimore.it wrote:
Hi all, i did a fresh debian install and then a fresh nav install, configured everything like suggested in /usr/share/doc/nav/README.Debian everything was smooth but the installation of the java-jdk that i had to add by hand.
Then i added 5 or 6 HP Procurve machines to nav via Edit database and started to see this in: /var/log/nav/getDeviceDatagetDeviceData-stderr.log :
java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) java.lang.NoClassDefFoundError: no.ntnu.nav.getDeviceData.dataplugins.Arp.ArpHandler at java.lang.Class.initializeClass(libgcj.so.70) at java.lang.Class.newInstance(libgcj.so.70) at QueryNetbox.getDataContainers(QueryNetbox.java:929) at QueryNetbox.run(QueryNetbox.java:766) Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap not found in
Hi Marco,
NAV requires Java 5, which you don't seem to be running. We recommend using Sun's JVM, which you also don't seem to be running (I see libgcj references in your stacktrace).
On Debian I would recommend you install sun-java5-jre (although I think maybe Tomcat requires a JDK, so you may have to install sun-java5-jdk as well).
There may be multiple JVMs installed on your system, so make sure the alternatives for the java and javac commands are set to Sun's JVM. Use these commands and select the Sun alternative:
update-alternative --config java update-alternative --config javac
On Friday 21 November 2008, Morten Brekkevold wrote:
update-alternative --config java update-alternative --config javac
thank you a lot Morten, that fixed my problem, maybe it should be added to the README.debian?
Best Reguards, Marco Barbieri.
On Fri, 21 Nov 2008 12:31:10 +0100 Marco Barbieri marco.barbieri@unimore.it wrote:
On Friday 21 November 2008, Morten Brekkevold wrote:
update-alternative --config java update-alternative --config javac
thank you a lot Morten, that fixed my problem, maybe it should be added to the README.debian?
If you've been dealing with Debian for a while, it's pretty straightforward. That doesn't make it obvious for everyone, though. Adding Werner (the package maintainer) to the Cc: list, and we'll se if he gets the hint :)
On Friday 21 November 2008, Morten Brekkevold wrote:
On Fri, 21 Nov 2008 12:31:10 +0100 Marco Barbieri
marco.barbieri@unimore.it wrote:
On Friday 21 November 2008, Morten Brekkevold wrote:
update-alternative --config java update-alternative --config javac
thank you a lot Morten, that fixed my problem, maybe it should be added to the README.debian?
If you've been dealing with Debian for a while, it's pretty straightforward. That doesn't make it obvious for everyone, though. Adding Werner (the package maintainer) to the Cc: list, and we'll se if he gets the hint :)
eh eh my fault, i usually manage CentOS distros...
Thanks again.
Marco Barbieri marco.barbieri@unimore.it writes:
On Friday 21 November 2008, Morten Brekkevold wrote:
On Fri, 21 Nov 2008 12:31:10 +0100 Marco Barbieri
marco.barbieri@unimore.it wrote:
On Friday 21 November 2008, Morten Brekkevold wrote:
update-alternative --config java update-alternative --config javac
thank you a lot Morten, that fixed my problem, maybe it should be added to the README.debian?
If you've been dealing with Debian for a while, it's pretty straightforward. That doesn't make it obvious for everyone, though. Adding Werner (the package maintainer) to the Cc: list, and we'll se if he gets the hint :)
eh eh my fault, i usually manage CentOS distros...
I've included a few sentences about this in the README.Debian in the 3.5-packages, which will be announced soon.
- Werner