Here is only the trace: the most telling line should be (but I don't know what it means, and how to solve it):
Caused by: java.sql.SQLException: Java exception: 'access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read): java.security.AccessControlException'. java.sql.SQLException: Failed to start database '/Users/simpatico/archive/db.sqlwrapper', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at com.mysimpatico.sqlwrapper.database.SqlWrapper.connectToDerby(SqlWrapper.java:154) at com.mysimpatico.memorizeasy.engine.Database.init(Unknown Source) at com.mysimpatico.memorizeasy.engine.Database.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.javaws.Launcher.executeApplication(Launcher.java:1528) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277) at com.sun.javaws.Launcher.run(Launcher.java:117) at java.lang.Thread.run(Thread.java:637) Caused by: java.sql.SQLException: Failed to start database '/Users/simpatico/archive/db.sqlwrapper', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ... 24 more Caused by: java.sql.SQLException: Java exception: 'access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read): java.security.AccessControlException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source) ... 21 more Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.FileInputStream.<init>(FileInputStream.java:100) at org.apache.derby.impl.io.DirFile.getInputStream(Unknown Source) at org.apache.derby.impl.services.monitor.StorageFactoryService$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.services.monitor.StorageFactoryService.getServiceProperties(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source) at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source) ... 21 more ============= begin nested exception, level (1) =========== java.sql.SQLException: Java exception: 'access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read): java.security.AccessControlException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at com.mysimpatico.sqlwrapper.database.SqlWrapper.connectToDerby(SqlWrapper.java:154) at com.mysimpatico.memorizeasy.engine.Database.init(Unknown Source) at com.mysimpatico.memorizeasy.engine.Database.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.javaws.Launcher.executeApplication(Launcher.java:1528) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277) at com.sun.javaws.Launcher.run(Launcher.java:117) at java.lang.Thread.run(Thread.java:637) Caused by: java.sql.SQLException: Java exception: 'access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read): java.security.AccessControlException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ... 24 more Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.FileInputStream.<init>(FileInputStream.java:100) at org.apache.derby.impl.io.DirFile.getInputStream(Unknown Source) at org.apache.derby.impl.services.monitor.StorageFactoryService$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.services.monitor.StorageFactoryService.getServiceProperties(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source) at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source) at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source) ... 21 more ============= end nested exception, level (1) =========== ============= begin nested exception, level (2) =========== java.sql.SQLException: Java exception: 'access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read): java.security.AccessControlException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at com.mysimpatico.sqlwrapper.database.SqlWrapper.connectToDerby(SqlWrapper.java:154) at com.mysimpatico.memorizeasy.engine.Database.init(Unknown Source) at com.mysimpatico.memorizeasy.engine.Database.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.javaws.Launcher.executeApplication(Launcher.java:1528) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277) at com.sun.javaws.Launcher.run(Launcher.java:117) at java.lang.Thread.run(Thread.java:637) Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /Users/simpatico/archive/db.sqlwrapper/service.properties read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.FileInputStream.<init>(FileInputStream.java:100) at org.apache.derby.impl.io.DirFile.getInputStream(Unknown Source) at org.apache.derby.impl.services.monitor.StorageFactoryService$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) Trace message truncated for length over 10K 2010/3/9, Knut Anders Hatlen <knut.hat...@sun.com>: > Gabriele Kahlout <gabri...@mysimpatico.com> writes: > >> Hello, >> >> I'm trying to setup a an apache derby db on the users file system >> through a setup.jnlp. However, this fails throwing the exception (and >> not creating anything) : >> >> Failed to start database 'derbyDB', see the next exception for details. > > What does the next exception say? You can find it either in derby.log or > by using the technique described on this wiki page: > http://wiki.apache.org/db-derby/UnwindExceptionChain > > -- > Knut Anders > -- Regards, K. Gabriele --- unchanged since 25/1/10 --- P.S. Unless a notification (LON), please reply either with an answer OR with " ACK" appended to this subject within 48 hours. Otherwise, I might resend. In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧ ¬IsAnswerTo(x,this)) ⇒ ¬IResend(this). Also note that correspondence may be received only from specified a priori senders, or if the subject of this email ends with a code, eg. -LICHT01X, then also from senders whose reply contains it. ∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).