Error 'Native library(terminalio) to read password securely from commandline not found'

Error 'Native library(terminalio) to read password securely from commandline not found'

Error 'Native library(terminalio) to read password securely from commandline not found'

Titleimage

Posted by Patrick Hamou on 2016:04:19 19:35:16

Applies To

Oracle Fusion Middleware - Version 11.1.1.0.0 and later
Oracle WebLogic Server - Version 10.3 and later
Microsoft Windows x64 (64-bit)
Linux x86-64
Oracle Application Server 10g Enterprise Edition - Version: 11.1.1.0.0
Checked for relevance on 08-Jan-2014

Symptoms

  • Fusion Middleware 11.1.1.1.0 installed on x64bit Linux or Windows
  • 64bit JDK and 64bit WLS installed correctly
  • 64bit Portal/Forms/Reports/Discover binaries are installed
  • Forms and Reports only is configured
  • After install everything is up and running correctly
  • All components are then stopped, and AdminServer is started again
  • Attempting to start a managed Server i.e WLS_FORMS or WLS_REPORTS, via $MIDDLEWARE_HOME/user_projects/domains/domain_name/bin/startManagedWebLogic.sh
  • This fails after entering the weblogic username. For example:
$ ./startManagedWebLogic.sh WLS_FORMS
JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=512m
WLS Start Mode=Production
CLASSPATH=/u01/middleware/patch_wls1031/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/middleware/jdk1.6.0_14/lib/tools.jar:
etc.....
etc.....
PATH=/u01/middleware/wlserver_10.3/server/bin:/u01/middleware/modules/org.apache.ant_1.7.0/bin:/u01/middleware/jdk1.6.0_14/jre/bin:/u01/middleware/jdk1.6.0_14/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin

***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
starting weblogic with Java version:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
Starting WLS with line:
/u01/middleware/jdk1.6.0_14/bin/java -server -Xms256m -Xmx512m
-XX:MaxPermSize=512m -Dweblogic.Name=WLS_FORMS
-Djava.security.policy=/u01/middleware/wlserver_10.3/server/lib/weblogic.policy -da -Dplatform.home=/u01/middleware/wlserver_10.3
-Dwls.home=/u01/middleware/wlserver_10.3/server
etc.....
etc.....
-Dwlw.logErrorsToConsole=false
-Dweblogic.ext.dirs=/u01/middleware/patch_wls1031/profiles/default/sysext_manifest_classpath weblogic.Server
<Sep 30, 2009 11:09:25 AM BST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 14.0-b16 from Sun Microsystems Inc.>
<Sep 30, 2009 11:09:25 AM BST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
<Sep 30, 2009 11:09:37 AM BST> <Error> <Security> <BEA-090783> <Server is Running in Development Mode and Native Library(terminalio) to read the password securely from commandline is not found.>
<Sep 30, 2009 11:09:37 AM BST> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now>
<Sep 30, 2009 11:09:37 AM BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
$
  • This issue does not occur on 32bit Linux or Windows

Cause

Bug 9094115 Native Library(terminalio) To read Password Securely From Commandline Not Found

Solution

To implement the solution execute the following steps:

There are two workarounds to this problem:

Either (Linux and Windows)

1. Navigate to $MIDDLEWARE_HOME/user_projects/domains/<domain_name>/servers/<managed_server>/security/. If the /security folder does not exist then create it. Then create a boot.properties file in the /security folder that contains:

username=weblogic
password=<password>

2. Then run startManagedWeblogic.sh and it will not ask for the username/password on startup

OR (Linux only):

1. Edit the /user_projects/domains/<DOMAIN_NAME>/bin/setDomainEnv.sh and change:

<MIDDLEWARE_HOME>/wlserver_10.3/server/native/linux/i686

to:

<MIDDLEWARE_HOME>/wlserver_10.3/server/native/linux/x86_64

OR:

1.Run the startManagedWebLogic.sh script with:

startManagedWebLogic.sh <managed_server> -Dweblogic.management.allowPasswordEcho=true.

 

Posted by Patrick Hamou on 2016:04:19 19:35:16

Return to Blog