一、在Linux服务器上启动weblogic管理服务器时报错
通过命令:nohup /weblogic路径/startWebLogic.sh >> /日志路径/admin.log 2>&1 &启动weblogic时,日志主要报错如下:
<Aug 2, 2023 2:26:17 PM CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Aug 2, 2023 2:26:37 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Aug 2, 2023 2:26:37 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.241-b07 from Oracle Corporation.>
<Aug 2, 2023 2:26:37 PM CST> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
<Aug 2, 2023 2:26:38 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.3.0 Thu Aug 17 13:39:49 PDT 2017 1882952>
<Aug 2, 2023 2:26:38 PM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
<Aug 2, 2023 2:26:38 PM CST> <Error> <Security> <BEA-090782> <Server is running in Production Mode and the System Console to read the password securely from the command line was not found. The System Console is not present if stdin, stdout, or stderr is redirected when starting WebLogic Server.>
<Aug 2, 2023 2:26:38 PM CST> <Notice> <WebLogicServer> <BEA-000388> <JVM called the WebLogic Server shutdown hook. The server will force shutdown now.>
<Aug 2, 2023 2:26:38 PM CST> <Notice> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by <WLS Kernel>.>
<Aug 2, 2023 2:26:38 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
Stopping Derby server...
Derby server stopped.
失败原因为:Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
解决办法是在weblogic路径下的user_projects/domains/域名/services/AdminServer中看是否有security文件夹,没有新建一个,在security文件夹中创建文件boot.properties文件,文件内容如下:
username=weblogic登录名
password=weblogic登录密码
然后重启weblogic服务。
二、在Linux上启动新建的服务器时报错
通过命令:ohup /weblogic路径/startManagedWebLogic.sh 服务器名 http://127.0.0.1:7001 >> /日志路径/admin.log 2>&1 &启动新建的服务器,其中7001是管理服务AdminServer的端口号,不是新建服务器的端口号。
服务器是在weblogic控制台中的域结构->环境->服务器中创建的。
日志报错主要内容如下:
<Aug 2, 2023 3:35:06 PM CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Aug 2, 2023 3:35:26 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Aug 2, 2023 3:35:26 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.241-b07 from Oracle Corporation.>
<Aug 2, 2023 3:35:26 PM CST> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
<Aug 2, 2023 3:35:26 PM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
<Aug 2, 2023 3:35:26 PM CST> <Error> <Security> <BEA-090782> <Server is running in Production Mode and the System Console to read the password securely from the command line was not found. The System Console is not present if stdin, stdout, or stderr is redirected when starting WebLogic Server.>
<Aug 2, 2023 3:35:26 PM CST> <Notice> <WebLogicServer> <BEA-000388> <JVM called the WebLogic Server shutdown hook. The server will force shutdown now.>
<Aug 2, 2023 3:35:26 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
失败原因为:Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
和启动AdminServer服务器时相同,解决办法如下:
在weblogic路径下的user_projects/domains/域名/services/服务器名/中看是否有security文件夹,没有新建一个,在security文件夹中创建文件boot.properties文件,文件内容如下:
username=weblogic登录名
password=weblogic登录密码
然后重启服务器。