Hi -- I am sorrier than sorry to have to report this. I don't know exactly why this worked, but ...
My application consists of 3 projects: Proj1, Proj2, and Proj3. Proj1 depends on Proj2 and Proj3 via the Project Build Path. Proj2 depends on Proj3. I added the Apache Derby nature to Proj1. When I tried to "Start Derby Network Server" via the Proj1 drop down menu, I got the AccessControlException that is reported in this thread. With about 1/2 hour of experimenting, I found that if I removed the Proj2 and Proj3 dependencies, re-added them, cleaned the project and rebuilt it, the AccessControlException went away. I don't know why ... but I'll offer this for whomever finds it useful. SORRY! Myrna van Lunteren wrote: > > On 5/10/08, tankboy <[EMAIL PROTECTED]> wrote: >> After searching everywhere I finally found out that's it's about the >> security manager. I was hoping in Eclipse that I could just go to here >> and >> change the start line command - project/properties/Apache Derby/Network >> Server Host. I tried replacing the text localhost with -h localhost >> -noSecurityManager as suggested in the derby docs to run this on the >> command >> line but I think Eclipse is not liking multiple arguments. Anyone else? >> http://db.apache.org/derby/docs/dev/adminguide/tadminnetservopen.html >> http://developers.sun.com/docs/javadb/10.1/devguide/cdevbabejgjd.html >> http://www.ibm.com/developerworks/forums/thread.jspa?threadID=175762 >> >> ChrisFromStPete 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 >> ________________________________ >> View this message in context: Re: >> java.security.AccessControlException: access denied >> (java.io.FilePermission derby.log read) >> >> Sent from the Apache Derby Users mailing list archive at Nabble.com. >> > If you are using the derby plugin, you're out of luck until someone > fixes DERBY-2913. Then again, you shouldn't get that error at all. > > If you're starting networkserver from a class you wrote yourself, or > from NetworkServerControl (if you're accessing the source), you should > be able to set the flags. > > So, more information is needed on how NetworkServer is started exactly. > > Myrna > > -- View this message in context: http://www.nabble.com/java.security.AccessControlException%3A-access-denied-%28java.io.FilePermission-derby.log-read%29-tp13225812p19211798.html Sent from the Apache Derby Users mailing list archive at Nabble.com.
