agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] java.lang.SecurityException
Date: Mon, 28 Mar 2005 11:42:28 -0500
Message-ID: <11C803742910E84E9CDBFD344773B814759F77@srqech02.teltronics.com> (raw)
Someone please help me, this is driving me crazy.
I wrote a java program that accesses a database and turns the data into
an xml string. I then use php to write that string to an .xml file.
Originally I was developing the program on a windows 2k server using
Apache 2, php5, and postgresql 8 with pljava.
My boss wanted me to move the server onto a Linux 7.3 box. So now the
entire thing is sitting on a Linux 7.3 server with Apache 1.3, php4, and
postgresql 8 with pljava.
Everything works except for the java application. I run:
select getxmlstring();
and I get:
ERROR: java.lang.SecurityException: read on
/var/lib/pgsql/pljava/PGtoXML.jar
Here is the stack trace from the log file:
java.lang.SecurityException: read on /var/lib/pgsql/pljava/PGtoXML.jar
at
org.postgresql.pljava.internal.Backend$2.assertPermission(Backend.java:1
84)
at
org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.nonRecursiv
eCheck(Backend.java:125)
at
org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.checkPermis
sion(Backend.java:103)
at java.net.URLClassLoader$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.getPermissions(Unknown Source)
at sun.misc.Launcher$AppClassLoader.getPermissions(Unknown
Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown
Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
ERROR: java.lang.SecurityException: read on
/var/lib/pgsql/pljava/PGtoXML.jar
I tried looking at the source code of pljava.internal.Backend, but there
are 3 places where the exception can be thrown. Can someone please help
me out?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20050328/7609db98/attachment.html;
view thread (35+ messages) latest in thread
Message-ID: <11C803742910E84E9CDBFD344773B814759F77@srqech02.teltronics.com>
Permalink: ../11C803742910E84E9CDBFD344773B814759F77@srqech02.teltronics.com/
Also on: postgresql.org/message-id/11C803742910E84E9CDBFD344773B814759F77@srqech02.teltronics.com
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.lang.SecurityException
In-Reply-To: <11C803742910E84E9CDBFD344773B814759F77@srqech02.teltronics.com>
* 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