Hi Erik.

I am in the process of rewriting the install guide to cover version 3.2.1,
and found the same problem. Morten gave the answer to this, link the jar
files into the nav java-lib folder instead of the Java lib folder.

The change is this:

ln -s /usr/share/java/pg74.215.jdbc3.jar /usr/local/nav/lib/java

This of course needs to be done after installing the NAV RPM so that the
folder exists.

I have done the same to the snmp.jar file, I copy it into the same
folder:

cp snmp.jar /usr/local/nav/lib/java

Try that and see if it works better.

I have some more problems to resolve, but most functions works.

 - Roger

Erik Weber wrote:
Hello,
I've followed the guide pretty much exactly I believe and most seem to
work, except that getDeviceData, eventengine and getBoksMacs.sh won't
start.

Error message: createConnection ClassNotFoundExecption error:
org.postgresql.Driver

Which I've found out is due to Java not having the jdbc driver. But
here's the odd thing, I'm pretty sure it has.

# ls /usr/java/jdk1.5.0_09/jre/lib/ext/*jdbc*
/usr/java/jdk1.5.0_09/jre/lib/ext/pg74.215.jdbc3.jar

output from the cron mail:
Subject: Cron [EMAIL PROTECTED] $BINDIR/getBoksMacs.sh $NUM_THREADS
X-Cron-Env: <PERL5LIB=:>
X-Cron-Env: <PYTHONPATH=:>
X-Cron-Env: <CLASSPATH=:>
X-Cron-Env: <PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_09/jre/bin:/root/bin:/usr/java/jdk1.5.0_09/bin:/usr/java/jdk1.5.0_09/jre/bin>
X-Cron-Env: <BINDIR=/usr/local/nav/bin>
X-Cron-Env: <LOCALSTATEDIR=/usr/local/nav/var>
X-Cron-Env: <[EMAIL PROTECTED]>
X-Cron-Env: <CRICKETDIR=/usr/local/nav/cricket>
X-Cron-Env: <JAVA_HOME=/usr/java/jdk1.5.0_09>
X-Cron-Env: <NUM_THREADS=24>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/usr/local/nav>
X-Cron-Env: <LOGNAME=navcron>
X-Cron-Env: <USER=navcron>

So, anyone have an idea why the jdbc isn't available to java?

regards,

Erik


--
Roger Aas
Senior Consultant
IT Department
Stord/Haugesund University College


_______________________________________________
nav-users mailing list
[email protected]
http://mailman.itea.ntnu.no/mailman/listinfo/nav-users

Reply via email to