users@glassfish.java.net

[gf-users] Glassfish 4.1.1 Issues

From: Venugopal - OIT, Deepu <deepu.venugopal_at_state.co.us>
Date: Fri, 29 Jul 2016 15:05:39 -0600

Dear Team,

We are using Glassfish 4.1.1.
We are not able to run most of asadmin commands as we are getting below
errors.
Could you please help us to fix this issue?

[glassfish_at_hssdrl491 bin]$ pwd
/apps/glassfish/dev/glassfish4/bin
[glassfish_at_hssdrl491 bin]$
[glassfish_at_hssdrl491 bin]$* ./asadmin list-nodes*
Unknown error
Command list-nodes failed.
[glassfish_at_hssdrl491 bin]$


If we try with help, we are getting *"Invalid cookie for
http://CLI_Session/ <http://CLI_Session/>:"*


[glassfish_at_hssdrl491 bin]$ *./asadmin list-nodes --help*
Invalid cookie for http://CLI_Session/:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Login</title>
<script type="text/javascript">
<!-- FIXME: add code to ensure we're the top-most frame -->
    if (document.getElementById('layout-doc') != null) {
        // Just refresh the page... login will take over
        window.location = window.location;
    }
</script>
    <style type="text/css">
        /* clickjacking defense */
        body { display : none; }
    </style>
<link rel="stylesheet" type="text/css"
href="/theme/com/sun/webui/jsf/suntheme/css/css_master.css" />
<script type="text/javascript">
djConfig={
    "isDebug": false,
    "parseWidgets": false,
    "debugAtAllCosts": false
};
</script>
<script type="text/javascript" src="/theme/META-INF/dojo/dojo.js"></script>
<script type="text/javascript" src="/theme/META-INF/json/json.js"></script>
<script type="text/javascript"
src="/theme/META-INF/prototype/prototype.js"></script>
<script type="text/javascript"
src="/theme/META-INF/com_sun_faces_ajax.js"></script>
<script type="text/javascript">
dojo.hostenv.setModulePrefix("webui.suntheme",
"/theme/com/sun/webui/jsf/suntheme/javascript");
dojo.require('webui.suntheme.*');
</script>
<link id="sun_link5" rel="stylesheet" type="text/css"
href="/resource/css/css_ns6up.css" />

</head>

<body id="body3" class="LogBdy" focus="loginform.j_username"
style="background-color: #FFFFFF;">
    <div id="header"class="LogTopBnd" style="background:
url('/theme/com/sun/webui/jsf/suntheme/images/login/gradlogtop.jpg')
repeat-x; height: 30px;"></div>
    <div class="middle" style="background-image:
url(/theme/com/sun/webui/jsf/suntheme/images/login/gradlogsides.jpg);background-repeat:repeat-x;background-position:left
top; background-color: #D4DCE1;">
        <div class="plugincontent" style="width1: 1px; visibility:
visible;">

<div style="height: 435px;background-image:
url(/resource/community-theme/images/login-backimage-open.png);
    background-repeat:no-repeat;background-position:left top; width: 720px;
margin: auto;">
    <div style="width: 460px; padding-top: 160px; margin-left: 310px;">
<img id="sun_image11"
src="/resource/community-theme/images/login-product_name_open.png;jsessionid=875dba2339b321e057578369af54"
alt="GlassFish Server Open Source Edition" height="42" width="329"
border="0" />
        <form method="POST" class="form" name="loginform"
action="j_security_check">
        <table role="presentation">
        <tr>
            <td><label for="Login.username" style="font-weight: bold;">User
Name:</label></td>
            <td><input type="text" name="j_username" id="Login.username"
tabindex="1" value=""></td>
        </tr>
        <tr>
            <td><label for="Login.password" style="font-weight:
bold;">Password:</label>
            <td><input type="password" name="j_password"
id="Login.password" tabindex="2">
        <tr>
            <td colspan="2" align="center">
                <input type="submit" class="Btn1"
                    value="Login"
                    title="Log In to GlassFish Administration Console"
tabindex="3"
                    onmouseover="javascript: if (this.disabled==0)
this.className='Btn1Hov'"
                    onmouseout="javascript: if (this.disabled==0)
this.className='Btn1'"
                    onblur="javascript: if (this.disabled==0)
this.className='Btn1'"
                    onfocus="javascript: if (this.disabled==0)
this.className='Btn1Hov'"
                    name="loginButton" id="loginButton">
                <input type="hidden" name="loginButton.DisabledHiddenField"
value="true" />
            </td>
        </tr>
        </table>
        </form>
    </div>
</div>

            <script type="text/javascript">
                if (false) {

//submitAndDisable(document.getElementById('loginButton'), 'Login');
                    document.getElementById('loginButton').form.submit();

//document.getElementById('loginButton').form.autocomplete="off";
                }
            </script>
        </div>
    </div>
    <div class="footer"
        style="background-image:
url(/theme/com/sun/webui/jsf/suntheme/images/login/gradlogbot.jpg);background-repeat:repeat-x;background-position:left
top; color: #FFFFFF; background-color: #4A5C68">
        <div id="copyright" style="width: 720px; margin-left: auto;
margin-right: auto; padding: 5px;">
            <span>Copyright © 2005, 2012, Oracle and/or its affiliates.
All rights reserved. This software and related documentation are provided
under a license agreement containing restrictions on use and disclosure and
are protected by intellectual property laws. Except as expressly permitted
in your license agreement or allowed by law, you may not use, copy,
reproduce, translate, broadcast, modify, license, transmit, distribute,
exhibit, perform, publish or display any part, in any form, or by any
means. Reverse engineering, disassembly, or decompilation of this software,
unless required by law for interoperability, is prohibited. If this is
software or related documentation that is delivered to the U.S. Government
or anyone licensing it on behalf of the U.S. Government, the following
notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including
any operating system, integrated software, any programs installed on the
hardware, and/or documentation, delivered to U.S. Government end users are
“commercial computer software†pursuant to the applicable Federal
Acquisition Regulation and agency-specific supplemental regulations. As
such, use, duplication, disclosure, modification, and adaptation of the
programs, including any operating system, integrated software, any programs
installed on the hardware, and/or documentation, shall be subject to
license terms and license restrictions applicable to the programs. No
other rights are granted to the U.S. Government. This distribution may
include materials developed by third parties. Portions may be derived from
Berkeley BSD systems, licensed from U. of CA. Oracle, Java and GlassFish
are registered trademarks of Oracle and/or its affiliates.</span>
        </div>
    </div>
    <script src="/resource/js/cj.js"></script>
</body>
</html>
Command list-nodes executed successfully.
[glassfish_at_hssdrl491 bin]$




Thanks
Deepu Venugopal

CBMS Project
Middleware Administrator
Email: deepu.venugopal_at_state.co.us <chirag.parekh_at_state.co.us>
Desk: 303-764-6958