glassfish
  1. glassfish
  2. GLASSFISH-14702

--force option is ignored if target is domain

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_dev
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      14,702

      Description

      If the application does not have any application-ref, then redeploy with force=true failed, saying it
      is already deployed.

      Here is the CLI command and output:

      ~/DeployApp/EAR 96) asadmin deploy --target domain i18n-simple.ear
      Application deployed with name i18n-simple.
      Command deploy executed successfully.
      ~/DeployApp/EAR 97) asadmin list-applications domain
      i18n-simple <ear, web>
      Command list-applications executed successfully.
      ~/DeployApp/EAR 98) asadmin deploy --force=true --target=domain i18n-simple.ear
      org.glassfish.api.admin.CommandException: remote failure: Error occurred during deployment:
      Application i18n-simple is already deployed in this domain. Please use create-application-ref
      command to create application reference on target domain. Please see server.log for more details.
      Command deploy failed.
      ~/DeployApp/EAR 99)

        Activity

        Hide
        Hong Zhang added a comment -

        Corrected the validation logic to allow this case.

        Show
        Hong Zhang added a comment - Corrected the validation logic to allow this case.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            Anissa Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: