agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Java calling other jars
Date: Tue, 21 Feb 2006 14:50:13 -0000
Message-ID: <44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3> (raw)
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
view thread (3+ messages) latest in thread
Message-ID: <44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3>
Permalink: ../44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3/
Also on: postgresql.org/message-id/44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Java calling other jars
In-Reply-To: <44D9FC40FD695B4E85F1C59965C27E0FAA4D56@man3>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox