Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2587

ManagedServerBootCmdFactory alters system property values

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.0.0.Beta1
    • Fix Version/s: 8.0.0.CR1
    • Component/s: Management
    • Labels:
      None

      Description

      When ManagedServerBootCmdFactory iterates through system properties to use in the server launch command it adds a value of "true" for any properties that have no value. This is incorrect. In particular it breaks SecurityManager usage as -Djava.security.manager is a valid setting while -Djava.security.manager=true will result in

      [Host Controller] 15:09:01,758 INFO [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010922: Starting server server-one
      15:10:55,691 INFO [org.jboss.as.process.Server:server-one.status] (ProcessController-threads - 3) JBAS012017: Starting process 'Server:server-one'
      [Server:server-one] Error occurred during initialization of VM
      [Server:server-one] java.lang.InternalError: Could not create SecurityManager: true
      [Server:server-one] at sun.misc.Launcher.<init>(Launcher.java:106)
      [Server:server-one] at sun.misc.Launcher.<clinit>(Launcher.java:57)
      [Server:server-one] at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1486)
      [Server:server-one] at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1468)
      [Server:server-one]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brian.stansberry Brian Stansberry
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: