Search code examples
javasecurityjava-web-start

Java Web Start doesn't work after version 7u25


I have a java application that is launchend via java web start (with glassfish 4.0). After updating to java 7u25, it doesn't work anymore. Here is a part of the error message.

Missing Permissions manifest attribute for: http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/javax.security.auth.message-api.jar
Missing Codebase manifest attribute for: http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/javax.security.auth.message-api.jar
Missing Permissions manifest attribute for: http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/web-naming.jar
Missing Codebase manifest attribute for: http://localhost:8080/___JWSappclient/___system/s1as/glassfish/modules/web-naming.jar
#### Java Web Start Error:
#### java.lang.ClassCircularityError: com/sun/enterprise/security/ee/PermissionCache
Exception in thread "Javaws Secure Thread" java.lang.ClassCircularityError: com/sun/enterprise/security/ee/PermissionCache
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.getMethod0(Unknown Source)
    at java.lang.Class.isCheckMemberAccessOverridden(Unknown Source)
    at java.lang.Class.checkMemberAccess(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at java.net.URL.getURLStreamHandler(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)

First of all, why is there suddenly a ClassCircularityError? Furthermore, to elminiate the attribute warnings, I might add the attributes to the manifest. But it is really a good plan to modify third-party jars?


Solution

  • We have noticed this problem as well and are tracking it via this just-opened GlassFish issue 20711.