Signed Applet Can't Gain Access to Files

Hi:

I'm trying to use an embedded Derby database from within a browser.

I've got this example by Francois Orsini:

http://developers.sun.com/prodtech/javadb/overview/product_tour/index.jsp

In his demo he's got a jar: Demo.jar which is signed. When I look in the jar I see a single file (the manifest file) with nothing except the Java version in the META-INF folder. I can't see how it's 'signed'.

Nevertheless, when I use it, the window comes up asking if I want to allow it to run. When I say yes it creates the database on my hard drive.

If I take the *exact* same code and put it into my package and sign the jar it DOES NOT work. I see in the jar's manifest directory all the information (3 files) that I'm supposed to have. It 'looks' signed.

When I run it I get the *same* box Orsini get's (with my certificate information, not his). I click yes to allow it to run.

It will NOT write anything to my hard drive. If I modify it so I can see the error it says . . . permission denied . . . .

I need to mention that I have NOT created any policy files for the Orsini Demo.jar file and it works.

Can you tell me what I must do to be able to embed a Derby database so it can be used within a client browser?

I'm obviously missing something in the signing process.

Orsini obviously didn't sign it the way I did (using keytool & jarsigner).

[1435 byte] By [MarlAtkinsa] at [2007-10-3 4:22:34]
# 1
Maybe you have to use doPrivileged or the Demo.jar is signed differentthan your jar (your jar cannot call code from Demo.jar).A Full trace might help us out: http://forum.java.sun.com/thread.jspa?threadID=656028
harmmeijera at 2007-7-14 22:24:53 > top of Java-index,Security,Signed Applets...