From: tjkincaid at comcast.net (tjkincaid at comcast.net) Date: Mon, 29 Aug 2011 02:27:55 +0000 (UTC) Subject: [Pljava-dev] question on reading files using PL/Java In-Reply-To: <1272945581.828364.1314584478394.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net> Message-ID: <1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net> I am trying to read some xml files on that are posted on the server's hard drive using the jdom library from with in PL/Java. Everything works fine outside PL/Java. I can read the xml file and parse the document no problem. However, from within PL/Java I am getting a security exception when I attempt to open the file. I have checked all the permissions on the file and everything seems OK. By default, PL/Java not allowed to read files on the server's hard drive? If not, is there a way I can configure it to allow this? ERROR: java.lang.SecurityException: read on /home/tomkincaid/pgdevel/pljava/ubiq-aug-2011-aug3.xml tomkincaid=# \q [tomkincaid at localhost pljava]$ cp ubiq-aug-2011-aug3.xml /tmp/xmltest.xml [tomkincaid at localhost pljava]$ psql edb-psql (9.0.4.14) Type "help" for help. -------------- next part -------------- An HTML attachment was scrubbed... URL: