When Using a 64-bit JDK With Oracle GlassFish Server The Passwords Entered In CLI Are Displayed In The Clear
Last updated on FEBRUARY 24, 2017
Applies to:Oracle GlassFish Server - Version 2.1.1 and later
Microsoft Windows x64 (64-bit)
When using a 64-bit JDK, the GlassFish Server won't mask the passwords entered in CLI (asadmin), so they will be displayed in the clear.
Steps to reproduce the problem:
1) Install 64-bit JDK.
2) Install GF 2.1.1 and have it use the JDK installed above.
3) Run an asadmin command that requires entering a password, such as create-domain or start-domain. When prompted for the password, type it in and it will be displayed in clear:
C:\Sun\AppServer\bin>asadmin.bat start-domain domain2
Starting Domain domain2, please wait.
Default Log location is C:\Sun\AppServer\domains\domain2\logs\server.log.
Please enter the master password>mpassword
Redirecting output to C:/Sun/AppServer/domains/domain2/logs/server.log
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms