glassfish
  1. glassfish
  2. GLASSFISH-13394

list-lifecycle-modules does not take "domain" as target

    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:
      13,394

      Description

      "list-lifecycle-modules" will take "server" or other cluster name as target, but
      won't take in "domain"

      It says:
      remote failure: Target domain is not a supported type. Command
      list-lifecycle-modules supports these types of targets only : Cluster, Default
      server, Stand alone instance,

      This is inconsistent with list-components which takes in "domain" as target.

      Without this working, GUI cannot list out all the lifecycles created in the
      left hand navigation tree.

        Activity

        Hide
        Anissa Lam added a comment -

        cc ken.

        Show
        Anissa Lam added a comment - cc ken.
        Hide
        Anissa Lam added a comment -

        Also notice that
        create-application-ref and delete-application-ref on lifecycle module also failed.

        %asadmin create-application-ref --target clusterXYZ LIFE6
        remote failure: java.lang.NullPointerException

        Command create-application-ref failed.

        [#|2010-09-13T11:07:17.440-0700|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=99;_ThreadName=admin-thread-pool-4848(7);|Exception
        in command execution : java.lang.NullPointerException
        java.lang.NullPointerException
        at
        org.glassfish.deployment.admin.CreateApplicationRefCommand.execute(CreateApplicationRefCommand.java:258)
        at
        com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:359)
        at
        com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:374)

        Show
        Anissa Lam added a comment - Also notice that create-application-ref and delete-application-ref on lifecycle module also failed. %asadmin create-application-ref --target clusterXYZ LIFE6 remote failure: java.lang.NullPointerException Command create-application-ref failed. [#|2010-09-13T11:07:17.440-0700|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=99;_ThreadName=admin-thread-pool-4848(7);|Exception in command execution : java.lang.NullPointerException java.lang.NullPointerException at org.glassfish.deployment.admin.CreateApplicationRefCommand.execute(CreateApplicationRefCommand.java:258) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:359) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:374)
        Hide
        Anissa Lam added a comment -

        Another issue:

        If my lifecycle is for both "server" and "clusterABC"
        i see the <application> entry, and also <application-ref> correctly. This is fine.

        If i do
        %asadmin delete-lifecycle-module --target clusterXYZ MyLifecycle
        I see that BOTH the application-ref AND <application> for this lifecyele is
        deleted.
        There is still the <application-ref> remaining for "server".

        So, the behavior and result is wrong.
        I think delete-lifecycle-module should be consistent as 'undeploy'

        Show
        Anissa Lam added a comment - Another issue: If my lifecycle is for both "server" and "clusterABC" i see the <application> entry, and also <application-ref> correctly. This is fine. If i do %asadmin delete-lifecycle-module --target clusterXYZ MyLifecycle I see that BOTH the application-ref AND <application> for this lifecyele is deleted. There is still the <application-ref> remaining for "server". So, the behavior and result is wrong. I think delete-lifecycle-module should be consistent as 'undeploy'
        Hide
        Anissa Lam added a comment -

        In the previous comment, i mean clusterXYZ.
        ie, my lifecycle is for both "server" and "clusterXYZ"

        Show
        Anissa Lam added a comment - In the previous comment, i mean clusterXYZ. ie, my lifecycle is for both "server" and "clusterXYZ"
        Hide
        Hong Zhang added a comment -

        I only had time to fix the list-lifecycle-modules command with domain target
        and the create-application-ref command for the lifecycle module today before I
        had to move onto other things (changes checked in).

        I will look at the rest of the problems you reported (delete-applcation-ref and
        delete-lifecycle-module) later, hopefully tomorrow.

        Show
        Hong Zhang added a comment - I only had time to fix the list-lifecycle-modules command with domain target and the create-application-ref command for the lifecycle module today before I had to move onto other things (changes checked in). I will look at the rest of the problems you reported (delete-applcation-ref and delete-lifecycle-module) later, hopefully tomorrow.
        Hide
        Hong Zhang added a comment -

        Fixed the remaining part of the issue: fixed the create-application-ref and
        delete-application-ref commands for the lifecycle module. Also fail the delete-
        lifecycle-module command if user tries to delete the lifecycle module from one
        target when the module is referenced by more than one targets (same as
        undeploy).

        Show
        Hong Zhang added a comment - Fixed the remaining part of the issue: fixed the create-application-ref and delete-application-ref commands for the lifecycle module. Also fail the delete- lifecycle-module command if user tries to delete the lifecycle module from one target when the module is referenced by more than one targets (same as undeploy).

          People

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

            Dates

            • Created:
              Updated:
              Resolved: