Details

    • Type: Epic Epic
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.30 EE GA3, 6.2.10 EE GA1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      JDK 1.6.0_19 and above
    • Epic/Theme:
    • Similar Issues:
      Show 5 results 
    • Epic Status:
      Done

      Description

      Description:
      With JDK version 1.6.0_19 and above Glassfish admin console is not accessible if Liferay 6.1.30 EE is deployed. Page loading never finishes. Refreshing the page results in 404 error. In server.log the following error appears:

      [#|2014-01-28T12:07:09.420+0000|SEVERE|glassfish3.1.2|org.apache.jasper.servlet.JspServlet|_ThreadID=330;_ThreadName=Thread-2;|PWC6117: File "C:\Liferay\liferay-portal-6.2.10.1-ee-ga1\glassfish-3.1.2.2\lib\install\applications\__admingui\common\index.jsp" not found|#]

      That is true, because the file is one folder above in __admingui, however changing the URL accordingly (suggested on LPS-38988) doesn't solve the issue.

      I reproduced the issue with the following JDK versions (on Windows 8 machine, but the issue seems to be same on Linux):

      • JDK 1.6.0_26
      • JDK 1.7.0_01
      • JDK 1.7.0_51

      I couldn't reproduce the issue with JDK 1.6.0_18 on the same machine.

      Further details:
      a) On clean Glassfish 3.1.2.2 without any app deployed admin console works well.

      b) The issue is reproducible with community bundles using Glassfish 3.1.2.2, but not with other using e.g. Glassfish 3.1.2.

      c) The issue is the same when deploying Liferay 6.1.30 from war file into Glassfish 3.1.2.2.

      d) The issue is the same with Liferay 6.2.10 GA1. (Tested only with bundle.)

      e) It seems the issue was previously investigated on LPS-38988.

      UPDATE: Admin console doesn't work at all if Liferay is deployed with Glassfish 3.1.2.2.

        Issue Links

          Issues in Epic

            Activity

            Hide
            Igor Spasic added a comment -

            Just some info on this topic, found after searching.

            To change logging info edit: glassfish-3.1.2.2\domains\domain1\config\logging.properties

            and eg set the FINEST level:

            org.glassfish.admingui.level=FINEST 
            

            The log is:

            [#|2014-01-30T12:34:04.400+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName=Thread-
            81;|The Admin Console is already installed, but not yet loaded.|#]
            
            [#|2014-01-30T12:34:04.403+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName=Thread-
            81;|The Admin Console is starting. Please wait.|#]
            
            [#|2014-01-30T12:34:05.874+0000|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=320;_ThreadName=Thread-81;|Initializin
            g Mojarra 2.1.6 (SNAPSHOT 20111206) for context ''|#]
            
            [#|2014-01-30T12:34:06.909+0000|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=320;_ThreadName=Thread-81;|
            WEB0671: Loading application [__admingui] at [/]|#]
            
            [#|2014-01-30T12:34:06.909+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=320;_ThreadName=Thread-81;|COR
            E10010: Loading application __admingui done in 2,505 ms|#]
            
            [#|2014-01-30T12:34:06.910+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName=Thread-
            81;|The Admin Console application is loaded.|#]
            

            Log says that console is loaded. After I reload page:

            [#|2014-01-30T12:34:52.311+0000|SEVERE|glassfish3.1.2|org.apache.jasper.servlet.JspServlet|_ThreadID=321;_ThreadName=admin-thread-pool-4848(2);|PWC611
            7: File "D:\liferay-test\liferay-portal-6.2.0-ce-ga1\glassfish-3.1.2.2\lib\install\applications\__admingui\common\index.jsp" not found|#]
            

            Really, this file is missing.

            Other ppl having the same problem:
            + https://www.java.net/forum/topic/glassfish/glassfish/glassfish-view-admin-console-problem
            + https://netbeans.org/projects/www/lists/nbusers/archive/2013-09/message/160
            + https://www.java.net/node/699754
            + https://www.java.net/forum/topic/glassfish/glassfish/glassfish-311-admin-console-not-starting

            Something similar: https://java.net/jira/browse/GLASSFISH-9336

            Show
            Igor Spasic added a comment - Just some info on this topic, found after searching. To change logging info edit: glassfish-3.1.2.2\domains\domain1\config\logging.properties and eg set the FINEST level: org.glassfish.admingui.level=FINEST The log is: [#|2014-01-30T12:34:04.400+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName= Thread - 81;|The Admin Console is already installed, but not yet loaded.|#] [#|2014-01-30T12:34:04.403+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName= Thread - 81;|The Admin Console is starting. Please wait.|#] [#|2014-01-30T12:34:05.874+0000|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=320;_ThreadName= Thread -81;|Initializin g Mojarra 2.1.6 (SNAPSHOT 20111206) for context ''|#] [#|2014-01-30T12:34:06.909+0000|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=320;_ThreadName= Thread -81;| WEB0671: Loading application [__admingui] at [/]|#] [#|2014-01-30T12:34:06.909+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=320;_ThreadName= Thread -81;|COR E10010: Loading application __admingui done in 2,505 ms|#] [#|2014-01-30T12:34:06.910+0000|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=320;_ThreadName= Thread - 81;|The Admin Console application is loaded.|#] Log says that console is loaded. After I reload page: [#|2014-01-30T12:34:52.311+0000|SEVERE|glassfish3.1.2|org.apache.jasper.servlet.JspServlet|_ThreadID=321;_ThreadName=admin-thread-pool-4848(2);|PWC611 7: File "D:\liferay-test\liferay-portal-6.2.0-ce-ga1\glassfish-3.1.2.2\lib\install\applications\__admingui\common\index.jsp" not found|#] Really, this file is missing. Other ppl having the same problem: + https://www.java.net/forum/topic/glassfish/glassfish/glassfish-view-admin-console-problem + https://netbeans.org/projects/www/lists/nbusers/archive/2013-09/message/160 + https://www.java.net/node/699754 + https://www.java.net/forum/topic/glassfish/glassfish/glassfish-311-admin-console-not-starting Something similar: https://java.net/jira/browse/GLASSFISH-9336
            Hide
            Igor Spasic added a comment -

            Huh, here is a solution/workaround that works (!? i hope for me. I tested this with official 6.2 glassfish bundle.

            1) edit: glassfish-3.1.2.2\domains\domain1\config\server.policy and DELETE default content:

            grant {
            	permission java.security.AllPermission;
            }; 
            

            Once again, just delete above lines and keep the empty file.

            2) Start glassfish and go to admin console: http://localhost:4848/

            This time the console should appear.

            Why? Do we really wanna know I think the answer lies here:

            https://blogs.oracle.com/monzillo/entry/policy_files_the_securitymanager_and

            Show
            Igor Spasic added a comment - Huh, here is a solution/workaround that works (!? i hope for me. I tested this with official 6.2 glassfish bundle. 1) edit: glassfish-3.1.2.2\domains\domain1\config\server.policy and DELETE default content: grant { permission java.security.AllPermission; }; Once again, just delete above lines and keep the empty file. 2) Start glassfish and go to admin console: http://localhost:4848/ This time the console should appear. Why? Do we really wanna know I think the answer lies here: https://blogs.oracle.com/monzillo/entry/policy_files_the_securitymanager_and
            Hide
            Igor Spasic added a comment -

            Hi Ray,

            Setting "portal.security.manager.strategy=none" did the trick in Liferay 6.1.30. Thank you for the hint.

            István

            Show
            Igor Spasic added a comment - Hi Ray, Setting "portal.security.manager.strategy=none" did the trick in Liferay 6.1.30. Thank you for the hint. István

              People

              • Assignee:
                Igor Spasic
                Reporter:
                Istvan Sajtos
                Recent user:
                Randy Zhu
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development

                    Structure Helper Panel