[Pljava-dev] Java calling other jars

From: Tim(dot)Clarke at manifest(dot)co(dot)uk (Tim Clarke)
To:
Subject: [Pljava-dev] Java calling other jars
Date: 2006-02-21 14:50:13
Message-ID: 44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pljava-dev

I fully understand the Postgres trusted language issue, but how can a
"sqlj.install_jar"'d jar file of mine call another jar? I'm trying to
use the Apache log4j but keep getting the error:

ERROR: java.lang.SecurityException: read on
/usr/java/logging-log4j-1.2.13/dist/lib/log4j-1.2.13.jar

The log4j jar is world-readable and in a world-readable folder.

I have tried:

select sqlj.replace_jar('file:///home/timc/java.postgres.vote/vote.jar',
'vote', false);
select
sqlj.install_jar('file:///usr/java/logging-log4j-1.2.13/dist/lib/log4j-1
.2.13.jar',
'logging', false);
SELECT sqlj.set_classpath('voting', 'vote:logging');

But that makes no difference since I'm not calling any functions in the
log4j jar directly from Postgres.

Help!

TIA
Tim Clarke

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2006-02-21 15:03:48 [Pljava-dev] Java calling other jars
Previous Message Thomas Hallgren 2006-02-12 18:42:07 [Pljava-dev] Error executing : sqlj.install_jar on windows XP Pro