Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 33299 invoked from network); 17 Oct 2007 01:52:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 01:52:35 -0000 Received: (qmail 39069 invoked by uid 500); 17 Oct 2007 01:52:21 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 39050 invoked by uid 500); 17 Oct 2007 01:52:21 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 39039 invoked by uid 99); 17 Oct 2007 01:52:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 18:52:21 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 01:52:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ihy4p-0001MX-N3 for derby-user@db.apache.org; Tue, 16 Oct 2007 18:52:03 -0700 Message-ID: <13245825.post@talk.nabble.com> Date: Tue, 16 Oct 2007 18:52:03 -0700 (PDT) From: ChrisFromStPete To: derby-user@db.apache.org Subject: Re: java.security.AccessControlException: access denied (java.io.FilePermission derby.log read) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cwhankey@hotmail.com References: X-Virus-Checked: Checked by ClamAV on apache.org - I'm using Eclipse 3.3.1 with the WTP. - I first checked for the Derby.log file. It was present and I could delete it. This had no effect. - I next found server.policy in derbynet.jar, but I decided against trying to update that. - I finally think I solved my problem. I ended up installing multiple versions of the Derby Eclipse plug-in, but did not have all of the settings correct. I set up the driver to point to 10.1, but the build path was pointing to 10.3. I deleted all but one version of the plug-in and corrected the build path and I can start the network server now. - This may be a topic for Eclipse, but when I try and define the Derby driver in the Driver Definitions screen it only lists thru Derby 10.2. "It's interesting you're getting this error - is this in a new eclipse installation? After upgrade to the next version of derby? Or a new install of the derby plugin into an existing eclipse setup?" "Do you see a derby.log? Can you remove it?" Chris Myrna van Lunteren wrote: > > On 10/15/07, Chris wrote: >> >> I am getting a >> >> "java.security.AccessControlException: access denied >> (java.io.FilePermission derby.log read)" >> >> >> >> error when trying to start the Derby Network server from Eclipse. Can >> anyone help? I saw an article about installing a looser security policy, >> but it's not clear how to do this when use the plug-in. >> >> >> >> Thanks >> >> >> >> Chris Hankey > > Hi Chris, > > It's interesting you're getting this error - is this in a new eclipse > installation? After upgrade to the next version of derby? Or a new > install of the derby plugin into an existing eclipse setup? > Some more info would be appreciated. > > I'm interested because I think I saw this in an existing eclipse > environment, but it appears no one else saw this. > Of course, one could argue that the derby.log can be removed as a > work-around, but in my environment I couldn't find a derby.log. > Do you see a derby.log? Can you remove it? > > Now, for installing a looser security mechanism - the normal way is to > specify -Dsecurity.policy=... but that's not possible with the plugin, > which starts the server for you... At least, I've not heard anyone say > how this can be done. > > I logged https://issues.apache.org/jira/browse/DERBY-2913 > for an improvement in this area. No one's picked this up. If you find > it important, you could vote for it. Or consider doing this yourself. > :-) > > As a work-around, I only have the extremely crude & ugly suggestion of > replacing the file server.policy in derbynet.jar (jar -uvf > derbynet.jar server.policy) in the derby.core plugin with a modified > one... > > Myrna > > -- View this message in context: http://www.nabble.com/java.security.AccessControlException%3A-access-denied-%28java.io.FilePermission-derby.log-read%29-tf4631643.html#a13245825 Sent from the Apache Derby Users mailing list archive at Nabble.com.