glassfish
  1. glassfish
  2. GLASSFISH-13979

Create more appropriate error messages, when an app entries were left in domain.xml and next deployment failed.

    Details

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

      Operating System: All
      Platform: All

    • Issuezilla Id:
      13,979

      Description

      Build 24 10/13.

      Executed such sequence of the steps:

      1) Deploy an app to the cluster.
      2) stop and remove instances that belong to this cluster, remove a cluster.
      3) restart DAS
      4) Create a new cluster with an instance.
      5) Try to deploy the same app to the new cluster.

      This deployment failed with such messages:
      ==============================================
      ./asadmin deploy --target c10 webapps-caching.war
      remote failure: Error occurred during deployment: Keys cannot be duplicate. Old
      value of this key property, nullwill be retained. Please see server.log for
      more details.

      Command deploy failed.

      ======================================================

      Please create more appropriate error messages.

        Activity

        Hide
        Hong Zhang added a comment -

        yes, we should handle this error situation more gracefully.

        Show
        Hong Zhang added a comment - yes, we should handle this error situation more gracefully.
        Hide
        Hong Zhang added a comment -

        Made the changes to have similar behavior as v2 for this error case: if the
        application is already deployed in the domain and another deployment is
        attempted, that deployment is failed with error message asking user to use the
        create-application-ref command instead.

        Show
        Hong Zhang added a comment - Made the changes to have similar behavior as v2 for this error case: if the application is already deployed in the domain and another deployment is attempted, that deployment is failed with error message asking user to use the create-application-ref command instead.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            easarina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: