dev@glassfish.java.net

re: asadmin authentication failure

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 11 Aug 2009 18:30:52 -0700

Bill,

1. I removed .asadminpass

2. I installed by unjarring glassfish.zip

3. I started the server.

4. Now it won't work, nothing authenticates. See below.


llcMP:~ llc$ asadmin help deploy
Deprecated syntax, instead use:
asadmin --help deploy [options] ...
Can't find man page for command: deploy
Command help failed.
llcMP:~ llc$
llcMP:~ llc$ export AS_DEBUG=true
llcMP:~ llc$
llcMP:~ llc$
llcMP:~ llc$ asadmin help deploy
CLASSPATH= /v3/glassfishv3/bin/../glassfish/modules/admin-cli.jar
Commands: [help, deploy]
params: {}
operands: [deploy]
help --host localhost --port 4848 --user admin --interactive=true --
echo=false --terse=false deploy
Command class: com.sun.enterprise.admin.cli.optional.DeployCommand
Failed to load command class: java.lang.ClassNotFoundException:
com.sun.enterprise.admin.cli.optional.DeployCommand
0 descriptor = jar:file:/Volumes/Spare4/work/v3/glassfishv3/glassfish/
modules/admin-cli.jar!/CLIDescriptor.xml
Deprecated syntax, instead use:
asadmin --help deploy [options] ...
params: {help=true}
operands: []
deploy --host localhost --port 4848 --user admin --interactive=true --
echo=false --terse=false --help=true
URI: /__asadmin/deploy?help=true
URL: com.sun.enterprise.admin.cli.util.HttpConnectorAddress_at_73265109
URL: http://localhost:4848/__asadmin/deploy?help=true
------- RAW RESPONSE ---------
Signature-Version: 1.0
message: Error authenticating
use-main-children-attribute: false
exit-code: FAILURE


------- RAW RESPONSE ---------
PROCESSING MANIFEST...
com.sun.enterprise.cli.framework.CommandException: remote failure:
Error authenticating

        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.handleResponse(RemoteCommand.java:557)
        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.handleResponse(RemoteCommand.java:530)
        at com.sun.enterprise.admin.cli.remote.RemoteCommand.access
$400(RemoteCommand.java:68)
        at com.sun.enterprise.admin.cli.remote.RemoteCommand
$1.doCommand(RemoteCommand.java:307)
        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.doHttpCommand(RemoteCommand.java:364)
        at
com
.sun
.enterprise
.admin
.cli.remote.RemoteCommand.executeRemoteCommand(RemoteCommand.java:271)
        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.executeCommand(RemoteCommand.java:247)
        at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:287)
        at
com
.sun
.enterprise
.admin
.cli.remote.RemoteCommand.executeAndReturnOutput(RemoteCommand.java:329)
        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.getManPage(RemoteCommand.java:428)
        at
com.sun.enterprise.admin.cli.HelpCommand.getSource(HelpCommand.java:127)
        at
com
.sun.enterprise.admin.cli.HelpCommand.executeCommand(HelpCommand.java:
87)
        at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:287)
        at
com
.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.java:
183)
        at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:128)
Caused by: com.sun.enterprise.admin.cli.remote.RemoteFailureException:
Error authenticating

        at
com
.sun
.enterprise
.admin.cli.remote.ManifestManager.processGeneric(ManifestManager.java:
112)
        at
com
.sun
.enterprise
.admin.cli.remote.ManifestManager.process(ManifestManager.java:68)
        at
com
.sun
.enterprise
.admin
.cli
.remote
.RemoteResponseManager.handleManifest(RemoteResponseManager.java:109)
        at
com
.sun
.enterprise
.admin
.cli.remote.RemoteResponseManager.process(RemoteResponseManager.java:83)
        at
com
.sun
.enterprise
.admin.cli.remote.RemoteCommand.handleResponse(RemoteCommand.java:542)
        ... 14 more


llcMP:~ llc$ cat ~/.asadminpass
# Do not edit this file by hand. Use login interface instead.