欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

部署weblogic 12c时遇到的问题

程序员文章站 2024-03-17 16:34:28
...

在部署ogg veridata 12.2.1.4的过程中,需要安装weblogic server,期间启动weblogic server时遇到如下错误:

./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms256m -Xmx1024m
.
CLASSPATH=/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common/modules/features/com.oracle.db.jdbc7-dms.jar:/tools/jdk1.8.0_291/lib/tools.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/modules/features/oracle.wls.common.nodemanager.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common/modules/internal/features/jrf_wlsFmw_oracle.jrf.wls.classpath.jar::/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/common/derby/lib/derbynet.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/common/derby/lib/derbyclient.jar:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/common/derby/lib/derby.jar
.
PATH=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/bin:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server/bin:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/tools/jdk1.8.0_291/jre/bin:/tools/jdk1.8.0_291/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/home/oracle/bin:/tools/jdk1.8.0_291/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin:/usr/local/bin:/usr/bin:/oracle/app/11.2.0/grid/bin:/home/oracle/dba/dba
.
***************************************************
*  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 WLS with line:
/tools/jdk1.8.0_291/bin/java -server   -Xms256m -Xmx1024m -cp /mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Djava.security.policy=/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true  -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dopss.version=12.2.1.3 -Digf.arisidbeans.carmlloc=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/carml -Digf.arisidstack.home=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common/modules/oracle.ossoiap,/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common/modules/oracle.oamprovider,/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common/modules/oracle.jps -Doracle.mds.filestore.preferred= -Dadf.version=12.2.1.3.0 -Dweblogic.jdbc.remoteEnabled=true -Dcommon.components.home=/mysql/oracle_veridata/Middleware/Oracle_Home/oracle_common -Djrf.version=12.2.2 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain -Doracle.server.config.dir=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig -Doracle.veridata.home=/mysql/oracle_veridata/Middleware/Oracle_Home/veridata -Doracle.veridata.domain.home=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain -Doracle.veridata.version=12.2.1.4.0  -javaagent:/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server -Dweblogic.home=/mysql/oracle_veridata/Middleware/Oracle_Home/wlserver/server  -Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder    -Djava.util.logging.manager=oracle.core.ojdl.logging.ODLLogManager  weblogic.Server
<Jun 9, 2021 2:39:49 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.> 
<Jun 9, 2021 2:39:49 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.> 
<Jun 9, 2021 2:39:49 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.291-b10 from Oracle Corporation.> 
Jun 09, 2021 2:39:49 PM oracle.security.jps.wls.JpsBootStrapService start
INFO: JPS bootstrap service started.
Jun 09, 2021 2:39:49 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory validateFileLocation
INFO: JPS Config: /mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/jps-config.xml
<Jun 9, 2021 2:39:49 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.> 
<Jun 9, 2021 2:39:50 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621> 
<Jun 9, 2021 2:39:50 PM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.> 
Enter username to boot WebLogic server:Oracle123
Enter password to boot WebLogic server:
<Jun 9, 2021 2:39:57 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
<Jun 9, 2021 2:39:57 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 
<Jun 9, 2021 2:39:57 PM CST> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.> 
Jun 09, 2021 2:39:58 PM oracle.security.jps.wls.JpsDefaultService start
INFO: JPS default service started.
Jun 09, 2021 2:39:58 PM oracle.security.jps.JpsStartup startWithRetry
INFO: Jps initializing.
<Jun 9, 2021 2:39:58,058 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=1030776207
Current log file=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log
Rotation dir=/mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/logs
 is opened. All server side log events will be written to this file.> 
Jun 09, 2021 2:39:58 PM oracle.security.jps.internal.idstore.util.LibOvdUtil pushLdapNamesToLibOvd
INFO: Pushed ldap name and types info to libOvd. Ldaps : DefaultAuthenticator:idstore.ldap.provideridstore.ldap.
Jun 09, 2021 2:40:00 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 5.2.5.Final
Jun 09, 2021 2:40:01 PM oracle.security.jps.az.internal.runtime.policy.AbstractPolicyImpl initializeReadStore
INFO: Property for read store in parallel: oracle.security.jps.az.runtime.readstore.threads = null
Jun 09, 2021 2:40:01 PM oracle.security.jps.internal.common.util.JpsCommonUtil initPolicyProvider
INFO: Initializing OPSS Java Policy Provider.
Jun 09, 2021 2:40:01 PM oracle.security.jps.internal.common.util.JpsCommonUtil initPolicyProvider
INFO: OPSS Java Policy Provider initialized.
Jun 09, 2021 2:40:01 PM oracle.security.jps.internal.common.util.JpsCommonUtil initPolicyProvider
INFO: OPSS Java Policy Provider is set as the system-wide Policy object.
Jun 09, 2021 2:40:01 PM oracle.security.jps.JpsStartup startWithRetry
INFO: Jps started.
<Jun 9, 2021 2:40:01,559 PM CST> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm> 
<Jun 9, 2021 2:40:01,910 PM CST> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm> 
<Jun 9, 2021 2:40:02,425 PM CST> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm> 
<Jun 9, 2021 2:40:02,438 PM CST> <Critical> <Security> <BEA-090403> <Authentication for user Oracle123 denied.> 
<Jun 9, 2021 2:40:02,450 PM CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: A MultiException has 4 exceptions.  They are:
1. weblogic.security.SecurityInitializationException: Authentication for user Oracle123 denied.
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.security.SecurityService
3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.nodemanager.adminserver.NodeManagerMonitorService errors were found
4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.nodemanager.adminserver.NodeManagerMonitorService

A MultiException has 4 exceptions.  They are:
1. weblogic.security.SecurityInitializationException: Authentication for user Oracle123 denied.
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.security.SecurityService
3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.nodemanager.adminserver.NodeManagerMonitorService errors were found
4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.nodemanager.adminserver.NodeManagerMonitorService

        at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:89)
        at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:250)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:358)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
        Truncated. see log file for complete stacktrace
Caused By: weblogic.security.SecurityInitializationException: Authentication for user Oracle123 denied.
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:1158)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.postInitialize(CommonSecurityServiceManagerDelegateImpl.java:1272)
        at weblogic.security.service.SecurityServiceManager.postInitialize(SecurityServiceManager.java:586)
        at weblogic.security.SecurityService.start(SecurityService.java:130)
        at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
        Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090938]Authentication failure: The specified user failed to log in. javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User specified user denied
        at com.bea.common.security.utils.ExceptionHandler.throwFailedLoginException(ExceptionHandler.java:62)
        at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:381)
        at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:117)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:114)
        Truncated. see log file for complete stacktrace
> 
<Jun 9, 2021 2:40:02,461 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> 
<Jun 9, 2021 2:40:02,461 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> 
<Jun 9, 2021 2:40:02,462 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> 
Stopping Derby server...
Derby server stopped.

这里,weblogic用户的密码没有输入错误,但却提示因为密码不对认证失败。

最后发现需要配置boot.properties文件来记录密码才可以:

$ cd /mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer
$ mkdir security
$ cd security
$ vi boot.properties
username=weblogic
password=xxxxx

最后,以后台方式启动:

nohup /mysql/oracle_veridata/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/startWebLogic.sh >nohup.out 2>&1 &