db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raybristol <rayg...@gmail.com>
Subject Re: help, problem of java.security.AccessControlException: access denied (java.io.FilePermission derby.log read)
Date Tue, 02 Oct 2007 09:52:03 GMT



raybristol wrote:
> 
> I post this one on Derby developer area and just realize that I should
> post it here, sorry for the duplicate thread as I can't move that one to
> here for some reason...
> 
> 
> 
> I am using eclipse plugin for derby, I apply derby nature in multiple
> projects, however when I try to start the derby from the menu I got: 
> 
> Security manager installed using the Basic server security policy. 
> 2007-10-01 15:16:41.125 GMT Thread[main,5,main]
> java.security.AccessControlException: access denied
> (java.io.FilePermission derby.log read) 
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z 
>         at org.apache.derby.jdbc.AutoloadedDriver.acceptsURL(Unknown
> Source) 
>         at java.sql.DriverManager.getDriver(Unknown Source) 
>         at
> org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(Unknown
> Source) 
>         at
> org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown
> Source) 
>         at
> org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown
> Source) 
>         at org.apache.derby.drda.NetworkServerControl.main(Unknown Source) 
> 
> 
> however, in some project I can start the derby server correctly without
> above error, so I don't understand why I above errors in other projects? 
> 
> Many thanks, 
> Ray
> 
> 
> 

hi all, actually the main problem is not to do with the file permission,
it's the errors underneath as I can get rid of the file permission thing but
still got:


org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z 
        at org.apache.derby.jdbc.AutoloadedDriver.acceptsURL(Unknown Source) 
        at java.sql.DriverManager.getDriver(Unknown Source) 
        at
org.apache.derby.impl.drda.NetworkServerControlImpl.startNetworkServer(Unknown
Source) 
        at
org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown
Source) 
        at
org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(Unknown
Source) 
        at org.apache.derby.drda.NetworkServerControl.main(Unknown Source) 


-- 
View this message in context: http://www.nabble.com/help%2C-problem-of-java.security.AccessControlException%3A-access-denied-%28java.io.FilePermission-derby.log-read%29-tf4553610.html#a12995921
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message