I solved it, by adding the setSecurityManager(null). However the app still crashes. How do I debug java web start apps (in non web start mode everything runs smoothly). It's in run-time jws that it crashes, and the java console closes before i can see the exceptions. I don't know how could I debug?
2010/3/9, Lance Andersen <lance.ander...@sun.com>: > My old blog might help > http://weblogs.java.net/blog/2007/06/15/using-java-web-start-java-persistence-api > > -lance > On Mar 9, 2010, at 12:15 PM, Knut Anders Hatlen wrote: > >> Gabriele Kahlout <gabri...@mysimpatico.com> writes: >> >>> 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'. >> >> It looks like Java Web Start runs the application with a security >> manager that prevents you from reading the database, so you'll probably >> need to grant some permissions to derby.jar. I don't know how to do that >> in a Java Web Start environment myself, but perhaps someone else does >> and will chime in... >> >> -- >> 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) ).