glassfish
  1. glassfish
  2. GLASSFISH-16223

admin_gui gets undeployed after my application redeploy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1.1_b01, 4.0_b01
    • Component/s: admin_gui
    • Labels:
      None

      Description

      After i redeploy my app on server - admin gui shows this error and gets undeployed. Application is redeployed fine but after this i can't access admin_gui anymore: instead of it Server is running page showed.

      See text error below and in attachment

      HTTP Status 500 -

      type Exception report

      message

      descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory

      root cause

      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory

      note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1 logs.
      GlassFish Server Open Source Edition 3.1

      1. fullstacktrace.txt
        11 kB
        mariohmol
      1. Екран.png
        180 kB

        Activity

        Hide
        rdelaplante added a comment -

        We've been running on GlassFish since 2.0 and the bug in JAVASERVERFACES-1542 didn't affect us until we upgraded to GlassFish 3.1. I'm not sure why it just started happening, but that's why I thought it could be related to this ticket. When the problem happens to us, we get the same error except it complains about RenderKitFactory instead of ApplicationFactory. The ticket says all factories are affected.

        Show
        rdelaplante added a comment - We've been running on GlassFish since 2.0 and the bug in JAVASERVERFACES-1542 didn't affect us until we upgraded to GlassFish 3.1. I'm not sure why it just started happening, but that's why I thought it could be related to this ticket. When the problem happens to us, we get the same error except it complains about RenderKitFactory instead of ApplicationFactory. The ticket says all factories are affected.
        Hide
        rdelaplante added a comment -

        Earlier I thought that JAVASERVERFACES-1542 was the cause of this bug. JSF 2.1.2 has since been released, and I tried replacing jsf-impl.jar in glassfish/modules to see if it solves this ticket's problem. It does not. I have not yet tried GlassFish 3.1.1.

        Show
        rdelaplante added a comment - Earlier I thought that JAVASERVERFACES-1542 was the cause of this bug. JSF 2.1.2 has since been released, and I tried replacing jsf-impl.jar in glassfish/modules to see if it solves this ticket's problem. It does not. I have not yet tried GlassFish 3.1.1.
        Hide
        Anissa Lam added a comment - - edited

        I am getting confused. Are you saying the issue comes back ?
        Lets start from the beginning.

        1. If you deploy your app, does Admin Console still work correctly ?

        2. If you undeploy your app, does Admin Console still work correctly ?

        3. If you do deploy then undeploy then deploy again, does Admin Console still work correctly ?

        4. If you deploy, then do "deploy --force=true" , does Admin Console still work correctly ?

        If the answer is No to any of the above, please attach a sample app, reopen the bug so I can look into this again.

        You mentioned "I have not yet tried GlassFish 3.1.1.". Please try the above step using latest promoted build available on http://dlc.sun.com.edgesuite.net/glassfish/3.1.1/promoted/

        Show
        Anissa Lam added a comment - - edited I am getting confused. Are you saying the issue comes back ? Lets start from the beginning. 1. If you deploy your app, does Admin Console still work correctly ? 2. If you undeploy your app, does Admin Console still work correctly ? 3. If you do deploy then undeploy then deploy again, does Admin Console still work correctly ? 4. If you deploy, then do "deploy --force=true" , does Admin Console still work correctly ? If the answer is No to any of the above, please attach a sample app, reopen the bug so I can look into this again. You mentioned "I have not yet tried GlassFish 3.1.1.". Please try the above step using latest promoted build available on http://dlc.sun.com.edgesuite.net/glassfish/3.1.1/promoted/
        Hide
        rdelaplante added a comment -

        I was only following up on my own hypothesis from May 26 in case anyone is interested. I suggested that the fix in this ticket may have been unnecessary because the root cause of the problem might be a bug in JSF which is now fixed. Knowing that your fix is in GlassFish 3.1.1 and not 3.1.0, I decided to test my hypothesis by replacing jsf-impl.jar in GlassFish 3.1.0 with a newer version that contains the fix I am talking about. That did not solve the problem, and therefore I was wrong. The bug in JSF is not related to this ticket.

        Show
        rdelaplante added a comment - I was only following up on my own hypothesis from May 26 in case anyone is interested. I suggested that the fix in this ticket may have been unnecessary because the root cause of the problem might be a bug in JSF which is now fixed. Knowing that your fix is in GlassFish 3.1.1 and not 3.1.0, I decided to test my hypothesis by replacing jsf-impl.jar in GlassFish 3.1.0 with a newer version that contains the fix I am talking about. That did not solve the problem, and therefore I was wrong. The bug in JSF is not related to this ticket.
        Hide
        Anissa Lam added a comment -

        I see. Thanks for clarifying this.

        Show
        Anissa Lam added a comment - I see. Thanks for clarifying this.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: