glassfish
  1. glassfish
  2. GLASSFISH-18604

list-applications --subcomponents (or --resources) does not work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0_b79
    • Component/s: command_line_interface
    • Labels:
      None

      Description

      [Wilson Tian originally reported this, and I am raising the issue after a bit more analysis as it seem to be related to CLI output.]

      asadmin list-applications --subcomponents
      or
      asadmin list-applications --resources
      or
      asadmin list-applications --subcomponents --resources

      does not list the subcomponents and resources.

      This issue is seen in trunk based build, but works fine in 3.1.2.

      Please use the attached .ear (ejb-stubs-ejbappApp.ear)

      asadmin deploy ejb-stubs-ejbappApp.ear

      Output in trunk based build :
      asadmin list-applications --subcomponents
      Nothing to list.
      Application paas-console is not in an enabled state.
      paas-console <web>
      ejb-stubs-ejbappApp <ear, ejb, appclient, web>
      Command list-applications executed successfully.

      Output in 3.1.2 build :
      asadmin list-applications --subcomponents
      ejb-stubs-ejbappApp <ear, ejb, appclient, web>
      ejb-stubs-ejbapp-ejb.jar <EJBModule>
      ejb-stubs-ejbapp-ejb-ejbclient.jar <EJBModule>
      ejb-stubs-ejbapp-client.jar <AppClientModule>
      ejb-stubs-ejbapp-web.war <WebModule>
      Command list-applications executed successfully.

      Similar issue can be seen for --resources option too :
      Please use the steps and app as shown in the blog.
      https://blogs.oracle.com/JagadishPrasath/entry/application_scoped_resources_in_glassfish

        Activity

        Hide
        Tom Mueller added a comment -

        Assigning to Martin.

        Martin, the list-applications --subcomponents option uses the ActionReport.addSubActionsReport method. You had pointed out earlier that the ActionReporter that is being used to return content to asadmin is not including any information from sub action reports. My understanding is that this is either going to be fixed as part of the CLI -> ReST switch, or uses of sub action reports were going to be eliminated.

        Hopefully, after the CLI->ReST switch, then this bug will just be fixed.

        Show
        Tom Mueller added a comment - Assigning to Martin. Martin, the list-applications --subcomponents option uses the ActionReport.addSubActionsReport method. You had pointed out earlier that the ActionReporter that is being used to return content to asadmin is not including any information from sub action reports. My understanding is that this is either going to be fixed as part of the CLI -> ReST switch, or uses of sub action reports were going to be eliminated. Hopefully, after the CLI->ReST switch, then this bug will just be fixed.
        Hide
        martin.mares added a comment -

        I take this issue.
        Also current ReST interface transfers valid and full ActionReport stack. => Yes, CLI->ReST will fix this issue as a side effect.

        Show
        martin.mares added a comment - I take this issue. Also current ReST interface transfers valid and full ActionReport stack. => Yes, CLI->ReST will fix this issue as a side effect.
        Hide
        martin.mares added a comment -

        Works also after CLI moved out from Jersey client. Server is still Jersey. Closing

        Show
        martin.mares added a comment - Works also after CLI moved out from Jersey client. Server is still Jersey. Closing

          People

          • Assignee:
            martin.mares
            Reporter:
            Jagadish
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: