在MyEclipse下配置了Weblogic 11后,每次啟動從報錯:
Critical> <Security> <BEA-090402> <Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have
been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.>
看了下描述,是用戶名及密碼什么的問題,我想起來,配置Weblogic 的域的時候將密碼改成了123456789,而第一次登陸http://localhost:7001/console卻 用的是 weblogic/weblogic登錄的,所以在MyEclipse中的用戶名和密碼都是用的默認值:weblogic/weblogic,找了下網上 的參考資料,最后將C:\bea\user_projects\domains\base_domain\servers\AdminServer \security目錄下的boot.properties文件里的username/password的值改成對應的weblogic /123456789,不必擔心寫成明文會泄露用戶名和密碼,運行一次后會自動被Weblogic用3DES加密的。再將C:\bea \user_projects\domains\base_domain\servers\AdminServer\data\下的ldap文件夾刪掉 (運行weblogic時會自動再次生成的).再將MyEclipse 中配置Weblogic 的用戶明及密碼進行對應的修改即可。然后從MyEclipse 啟動Weblogic ,不會報錯了。
