Workaround for javaws jnpl error “Cannot grant permissions to unsigned jars.”

There’s an emergency and you’re trying to log on that ancient KVM/iLO/iDRAC and you’re getting an error like:

net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.

Quick workaround:

Find the java.security file. In my case it is located in /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security

Then find the row:

jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024

Comment it out, copy it, delete the MD5 string.

#jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024

Save the file. Try again. It should work.

Some more pointers if the problem persists:

Advertisements

Jasper on Tomcat 6/CentOS 6 can’t find fonts

On a new CentOS 6 VM with Tomcat 6, Jasper failed to find the fonts with this error:

java.lang.Error: Probable fatal error:No fonts found.
        at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1089)
        at sun.font.FontManager.initialiseDeferredFont(FontManager.java:961)
        at sun.font.FontManager.findOtherDeferredFont(FontManager.java:900)
        at sun.font.FontManager.findDeferredFont(FontManager.java:917)
        at sun.font.FontManager.findFont2D(FontManager.java:1914)

You can solve this by installing the default fonts:

tomcat# yum -y install liberation* urw-fonts
[...]
tomcat# service tomcat6 restart

For Ubuntu, you can check this.