I have a signed applet that builds a menu from an xml file. When it loads I get the java security warning regarding signed and unsigned code. The applet uses jdom.jar
It doesn't matter if I hit yes on the security warning dialog box to block the unsigned code, or if I click no, the applet launches and runs as expected.
I have found out that a line of code in jdom that calls the SAXParserFactory.newInstance() is the cause of the security warning. I have tried signing jdom.jar, but that didn't help.
How can I get rid of the security warning without changing any settings in the Java console?
Thanks in advance.
As the applet appears to work without the untrusted code, could you delete it? The untrusted code appears to be an alternate JAXP XML parser implementation. Hopefully the Xerces-based one in the JRE (since 1.4, IIRC), shouldn't be too bad.
(BTW: I would strongly recommend adding
Trusted-Only: true
to the manifest of your signed files, andSealed: true
isn't generally a bad idea.