users@glassfish.java.net

asadmin create-domain error under MacOs X

From: Filippo Diotalevi <filippo.diotalevi_at_gmail.com>
Date: Mon, 19 Feb 2007 20:53:28 +0100

Hi,
  probably after the latest update of the JDK 1.5 (build 1.5.0_07-164)
under MacOsX 10.4.8 the asadmin create-domain stopped working
(Glassfish version: V1 UR1 P01)

The error I get is:
FATAL ERROR in native method: Bad global or local ref passed to JNI
        at com.sun.enterprise.cli.framework.CliUtil.getPassword(Native Method)
        at com.sun.enterprise.cli.commands.S1ASCommand.getInteractiveOption(S1ASCommand.java:777)
        at com.sun.enterprise.cli.commands.S1ASCommand.getInteractiveOptionWithConfirmation(S1ASCommand.java:742)
        at com.sun.enterprise.cli.commands.S1ASCommand.getPassword(S1ASCommand.java:704)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.getAdminPassword(CreateDomainCommand.java:136)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.runCommand(CreateDomainCommand.java:171)
        at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:155)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:63)


and looks like it's a confirmed bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6423857

In the comments of the bug I see the sentence:
"I have been running on Mac OS X without the native code, which
defaults 'asadmin' to not using it, making the passwords be
cleartext."

Does this sentence describe a viable workaround to use asadmin on
MacOsX? If it's the case, how can I configure asadmin to "run on Mac
OS X without the native code"?

Many thanks

--
filippo