Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6522

WebStart remote poller needs Permissions: manifest attribute to run under Java 7u45

    XMLWordPrintable

    Details

    • Sprint:
      NMS Sprint 2

      Description

      Originally reported as https://mynms.opennms.com/Ticket/Display.html?id=2858

      Trying to run the webstart remote poller under Java 7u45 or newer fails with the following exception:

      java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://172.16.14.15:8980/opennms-remoting/webstart/org.opennms.features.remote-poller.jar
      at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
      at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      The reason is that Java 7u45 started enforcing the requirement that the JAR manifest of an JNLP app have a "Permissions:" attribute. A "Codebase:" attribute may also be required. For our case, I believe the following need to be added to the JNLP JAR:

      Permissions: all-permissions
      Codebase: *

      I've been poking at the webstart-maven-plugin and its <updateManifestEntries> property in an attempt to make this happen in the build, but have not gotten it to work so am punting it to a bug issue.

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: