Showing posts with label WebLogic Password. Show all posts
Showing posts with label WebLogic Password. Show all posts

Monday, August 15, 2011

Resetting the WebLogic Server Admin Password in Windows

Hello There,

Sometimes you will find that you have forgot the WebLogic Server Admin User password, however its simple task if you want to reset it, You just need to have access to the box where the WebLogic Server is Installed.
Follow the below steps to  reset the Admin User Password for WebLogic in Windows environment.

Step 1: Navigate to Domain

cd D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain

Step 2 : Set the Domain Environment

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain>cd bin
D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\bin>setDomainEnv.cmd

Step 3: Navigate to Security Directory

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain>cd security
D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security

06/30/2011  08:14 PM    <DIR>          .
06/30/2011  08:14 PM    <DIR>          ..
06/30/2011  08:14 PM             4,114 DefaultAuthenticatorInit.ldift
06/30/2011  08:14 PM             2,398 DefaultRoleMapperInit.ldift
06/30/2011  08:14 PM                64 SerializedSystemIni.dat
06/30/2011  08:14 PM            22,666 XACMLRoleMapperInit.ldift
             4 File(s)         29,242 bytes
             2 Dir(s)  78,963,396,608 bytes free

Step 4: Rename the DefaultAuthenticatorInit.ldift as below.

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security>rename DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit_old.ldift

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security

08/13/2011  01:03 AM    <DIR>          .
08/13/2011  01:03 AM    <DIR>          ..
06/30/2011  08:14 PM             4,114 DefaultAuthenticatorInit_old.ldift
06/30/2011  08:14 PM             2,398 DefaultRoleMapperInit.ldift
06/30/2011  08:14 PM                64 SerializedSystemIni.dat
06/30/2011  08:14 PM            22,666 XACMLRoleMapperInit.ldift
             5 File(s)         32,632 bytes
             2 Dir(s)  78,963,392,512 bytes free

Step 5 : Execute the below command :

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security>java weblogic.security.utils.AdminAccount weblogic sparkle123 .

Notice that there is a DOT (.) at the end of the command, that notifies that it will reset the password in current directory, the above command will create the file DefaultAuthenticatorInit.ldift as below.

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\security

08/13/2011  01:03 AM    <DIR>          .
08/13/2011  01:03 AM    <DIR>          ..
08/13/2011  01:03 AM             3,390 DefaultAuthenticatorInit.ldift
06/30/2011  08:14 PM             4,114 DefaultAuthenticatorInit_old.ldift
06/30/2011  08:14 PM             2,398 DefaultRoleMapperInit.ldift
06/30/2011  08:14 PM                64 SerializedSystemIni.dat
06/30/2011  08:14 PM            22,666 XACMLRoleMapperInit.ldift
             5 File(s)         32,632 bytes
             2 Dir(s)  78,963,392,512 bytes free

Step 6 :  Go to Security Folder of Admin Server

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\security>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\security

06/30/2011  08:15 PM    <DIR>          .
06/30/2011  08:15 PM    <DIR>          ..
06/30/2011  08:15 PM               189 boot.properties
             1 File(s)            189 bytes
             2 Dir(s)  78,963,376,128 bytes free

Edit the boot.properties file as below and save it.

password=sparkle123
username=weblogic

Step 7. Navigate to following Directory

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\data>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\data

06/30/2011  08:17 PM    <DIR>          .
06/30/2011  08:17 PM    <DIR>          ..
06/30/2011  08:17 PM    <DIR>          console
06/30/2011  08:15 PM    <DIR>          ldap
06/30/2011  08:15 PM    <DIR>          store
             0 File(s)              0 bytes
             5 Dir(s)  78,963,376,128 bytes free

Step 8 : Rename LDAP Directory as below, it will be recreated During WebLogic Server start-up.

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\data>rename ldap ldap_old

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\data>dir
Volume in drive D is Data
Volume Serial Number is A4F2-F499

Directory of D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\servers\AdminServer\data

08/13/2011  01:07 AM    <DIR>          .
08/13/2011  01:07 AM    <DIR>          ..
06/30/2011  08:17 PM    <DIR>          console
06/30/2011  08:15 PM    <DIR>          ldap_old
06/30/2011  08:15 PM    <DIR>          store
             0 File(s)              0 bytes
             5 Dir(s)  78,963,376,128 bytes free

Step 9 :Restart the Server as below.

D:\Oracle\Middleware\WebLogic\10.3.4.0\user_projects\domains\CustImageTestDomain\bin>startWebLogic.cmd
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\patch_wls1034\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\patch_ocp360\profiles\default\sys_manifest_
classpath\weblogic_patch.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\JDK160~1\lib\tools.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0
\WLSERV~1.3\server\lib\weblogic.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\modules\features\weblogic.server.modules_10.3.4.0.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\WLSERV~1.3\server\lib\webservices.ja
r;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\modules\ORGAPA~1.1/lib/ant-all.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\modules\NETSFA~1.0_1/lib/ant-contrib.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\WLSERV~1.3\
common\derby\lib\derbyclient.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\WLSERV~1.3\server\lib\xqrl.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\WLSERV~1.3\common\derby\lib\derbyclient.jar;D:\Oracle\MIDDLE~1
\WebLogic\1034~1.0\WLSERV~1.3\server\lib\xqrl.jar;D:\Oracle\MIDDLE~1\WebLogic\1034~1.0\patch_wls1034

:
:
<Aug 13, 2011 1:10:17 AM IST> <Warning> <Server> <BEA-002611> <Hostname "sdyade-lap.idc.oracle.com", maps to multiple IP addresses: 192.168.1.140, 10.177.62.215, 192.168.1.141>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.177.62.215:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 192.168.1.141:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "CustImageTestDomain" running in Development Mode>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Aug 13, 2011 1:10:17 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

Step 10 : Login to the WebLogic Server Console with New Password. 

You are Done..!!
Please let me know if you face any difficulty in changing the username or password for the WebLogic Server in case if you forget.

Thanks
Shailesh Dyade.

Tuesday, April 26, 2011

Only Username Expected in Production Mode of WebLogic ??

Hello Guys,

Sometime during experiments with WebLogic Server 9.x you might have seen the issue similar to the below while starting the Admin Server or Managed Servers.


[sdyade@sllinux4 bin]$ ./startWebLogic.sh

JAVA Memory arguments: -Xms256m -Xmx512m -verbose:gc
.
WLS Start Mode=Production
.
CLASSPATH=:/home/sdyade/oracle/bea923/patch_weblogic923/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/lib/tools.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic_sp.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/webservices.jar::/home/sdyade/oracle/bea923/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/xqrl.jar::
.
PATH=/home/sdyade/oracle/bea923/weblogic92/server/bin:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/jre/bin:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/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.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
BEA JRockit(R) (build R27.2.0-131-78843-1.5.0_10-20070320-1511-linux-ia32, compiled mode)
Starting WLS with line:
/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/bin/java    -Xms256m -Xmx512m -verbose:gc    -da -Dplatform.home=/home/sdyade/oracle/bea923/weblogic92 -Dwls.home=/home/sdyade/oracle/bea923/weblogic92/server -Dwli.home=/home/sdyade/oracle/bea923/weblogic92/integration  -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/sdyade/oracle/bea923/patch_weblogic923/profiles/default/sysext_manifest_classpath -Dweblogic.Name=prodisw_admin_222 -Djava.security.policy=/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic.policy   weblogic.Server
[INFO ][memory ] GC mode: Garbage collection optimized for throughput, initial strategy: Generational Parallel Mark & Sweep
[INFO ][memory ] heap size: 262144K, maximal heap size: 524288K, nursery size: 131072K
[INFO ][memory ] <s>-<end>: GC <before>K-><after>K (<heap>K), <pause> ms
[INFO ][memory ] <s/start> - start time of collection (seconds since jvm start)
[INFO ][memory ] <end>     - end time of collection (seconds since jvm start)
[INFO ][memory ] <before>  - memory used by objects before collection (KB)
[INFO ][memory ] <after>   - memory used by objects after collection (KB)
[INFO ][memory ] <heap>    - size of heap after collection (KB)
[INFO ][memory ] <pause>   - total pause time during collection (milliseconds)
<Apr 25, 2011 3:04:11 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n-schemas.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n_common.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n_system.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_common.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_schemas.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_system.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/wsrp-common.jar>
<Apr 25, 2011 3:04:11 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.2.0-131-78843-1.5.0_10-20070320-1511-linux-ia32 from BEA Systems, Inc.>
<Apr 25, 2011 3:04:13 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3  Mon Mar 10 08:28:41 EDT 2008 1096261 >
<Apr 25, 2011 3:04:14 PM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
<Apr 25, 2011 3:04:19 PM EDT> <Error> <Security> <BEA-090782> <Server is Running in Production Mode and Native Library(terminalio) to read the password securely from commandline is not found.>
<Apr 25, 2011 3:04:19 PM EDT> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now>
<Apr 25, 2011 3:04:19 PM EDT> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by <WLS Kernel>>
<Apr 25, 2011 3:04:19 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

Cause :

<Apr 25, 2011 3:04:19 PM EDT> <Error> <Security> <BEA-090782> <Server is Running in Production Mode and Native Library(terminalio) to read the password securely from commandline is not found.>

It looks like we are missing the library "terminalio' which looks for the password from command line, so to get this working we have work around as to use -Dweblogic.management.allowPasswordEcho=true in startup scripts for the servers, which will take the clear text passwords instead of blanks as seen while you input the passwords as below.


[sdyade@sllinux4 bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -verbose:gc
.
WLS Start Mode=Production
.
CLASSPATH=:/home/sdyade/oracle/bea923/patch_weblogic923/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/lib/tools.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic_sp.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/webservices.jar::/home/sdyade/oracle/bea923/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home/sdyade/oracle/bea923/weblogic92/server/lib/xqrl.jar::
.
PATH=/home/sdyade/oracle/bea923/weblogic92/server/bin:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/jre/bin:/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/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.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
BEA JRockit(R) (build R27.2.0-131-78843-1.5.0_10-20070320-1511-linux-ia32, compiled mode)
Starting WLS with line:
/home/sdyade/jrockit-R27.2.0-jre1.5.0_10/bin/java    -Xms256m -Xmx512m -verbose:gc    -da -Dplatform.home=/home/sdyade/oracle/bea923/weblogic92 -Dwls.home=/home/sdyade/oracle/bea923/weblogic92/server -Dwli.home=/home/sdyade/oracle/bea923/weblogic92/integration  -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/sdyade/oracle/bea923/patch_weblogic923/profiles/default/sysext_manifest_classpath -Dweblogic.Name=prodisw_admin_222 -Djava.security.policy=/home/sdyade/oracle/bea923/weblogic92/server/lib/weblogic.policy -Dweblogic.management.allowPasswordEcho=true  weblogic.Server
[INFO ][memory ] GC mode: Garbage collection optimized for throughput, initial strategy: Generational Parallel Mark & Sweep
[INFO ][memory ] heap size: 262144K, maximal heap size: 524288K, nursery size: 131072K
[INFO ][memory ] <s>-<end>: GC <before>K-><after>K (<heap>K), <pause> ms
[INFO ][memory ] <s/start> - start time of collection (seconds since jvm start)
[INFO ][memory ] <end>     - end time of collection (seconds since jvm start)
[INFO ][memory ] <before>  - memory used by objects before collection (KB)
[INFO ][memory ] <after>   - memory used by objects after collection (KB)
[INFO ][memory ] <heap>    - size of heap after collection (KB)
[INFO ][memory ] <pause>   - total pause time during collection (milliseconds)
<Apr 25, 2011 3:08:38 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n-schemas.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n_common.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/p13n/p13n_system.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_common.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_schemas.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/netuix_system.jar:/home/sdyade/oracle/bea923/weblogic92/platform/lib/wlp/wsrp-common.jar>
<Apr 25, 2011 3:08:39 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.2.0-131-78843-1.5.0_10-20070320-1511-linux-ia32 from BEA Systems, Inc.>
<Apr 25, 2011 3:08:40 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3  Mon Mar 10 08:28:41 EDT 2008 1096261 >
<Apr 25, 2011 3:08:42 PM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:lotus1234
<Apr 25, 2011 3:08:56 PM EDT> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /home/sdyade/oracle/bea923/license.bea>
<Apr 25, 2011 3:08:56 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Apr 25, 2011 3:08:56 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Apr 25, 2011 3:08:57 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file /home/sdyade/oracle/bea923/user_projects/domains/PRODISW/servers/prodisw_admin_222/logs/prodisw_admin_222.log is opened. All server side log events will be written to this file.>

Please let me know if this helps.

Thanks
~ Shailesh