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