Thank you, Dr. Henson, for your helpful suggestions--seems this newsgroup is just a
little empty of answers.
The file is saved in PC format and has been running on PCs. It runs fine when I do
not try to access privileges, but when I do, it gives the error:
JavaScript Error: uncaught Java exception
netscape/security/ForbiddenTargetException ("User didn't grant the
CanvasAccess privilege.")
The java console gives no errors, no clue.
Also, when I run it as a file, it works fine. This might be neither here nor there.
I tried recompiling it under a different name, but alas, same result.
Dr Stephen Henson wrote:
> Robert Hinrichs wrote:
> > This is the same problem that I have. The signed jar verifies fine from the
> > command line, and it works when I run it locally. But when I run it on the
> > web it tells me that the user did not grant the permission. But I never had a
> > chance to!
> Check out the Java console. Try renaming the jar and reference in a web
> page and check the console again. There will probably be some error
> messages.
> What is usually the cause for signed pages is EOL translation. The
> verification of signed pages is sensitive to the EOL character. It
> shouldn't be (and I regard this as a bug) but it is.
> This is exacerbated by translations that occur when you upload the
> files. On some platforms you get naive translation that adds or removes
> CRs.
> This is easiest to check by loading the files locally as file: URLs. A
> hex editor helps as well to check the EOL both in the page and JAR.
> Steve.
> --
> Dr Stephen N. Henson. UK based freelance Cryptographic Consultant.
> For info see homepage at http://www.drh-consultancy.demon.co.uk/
> Email: shen...@drh-consultancy.demon.co.uk
> PGP key: via homepage.