报错如下:
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Jul , :: AM CST> <Notice> <WebLogicServer> <BEA-> <Server state changed to STARTING>
<Jul , :: AM CST> <Info> <WorkManager> <BEA-> <Initializing self-tuning thread pool>
<Jul , :: AM CST> <Notice> <Log Management> <BEA-> <The server log file /app/sinova/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Jul , :: AM CST> <Error> <Security> <BEA-> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: java.lang.ExceptionInInitializerError.
weblogic.security.service.SecurityServiceException: java.lang.ExceptionInInitializerError
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:)
Truncated. see log file for complete stacktrace Caused By: java.lang.ExceptionInInitializerError
at com.octetstring.vde.util.guid.GuidGenerator.nextGuidInBytes(GuidGenerator.java:)
at com.octetstring.vde.util.guid.Guid.<init>(Guid.java:)
at com.octetstring.vde.backend.standard.BackendStandard.add(BackendStandard.java:)
at com.octetstring.vde.backend.BackendHandler.add(BackendHandler.java:)
at com.octetstring.vde.util.LDIF.importLDIF(LDIF.java:)
Truncated. see log file for complete stacktrace Caused By: java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at com.octetstring.vde.util.guid.GuidParamGenerator.generateNodeID(GuidParamGenerator.java:)
at com.octetstring.vde.util.guid.GuidStateManager.initializeGUIDParameters(GuidStateManager.java:)
at com.octetstring.vde.util.guid.GuidStateManager.<init>(GuidStateManager.java:)
at com.octetstring.vde.util.guid.GuidStateManager.<clinit>(GuidStateManager.java:)
Truncated. see log file for complete stacktrace
>
<Jul , :: AM CST> <Notice> <Security> <BEA-> <Security initializing using security realm myrealm.>
<Jul , :: AM CST> <Critical> <WebLogicServer> <BEA-> <Server failed. Reason: There are nested errors: weblogic.security.service.SecurityServiceRuntimeException: [Security:]Security Services Unavailable
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:)
at weblogic.security.SecurityService.start(SecurityService.java:)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:) >
<Jul , :: AM CST> <Notice> <WebLogicServer> <BEA-> <Server state changed to FAILED>
<Jul , :: AM CST> <Error> <WebLogicServer> <BEA-> <A critical service failed. The server will shut itself down>
<Jul , :: AM CST> <Notice> <WebLogicServer> <BEA-> <Server state changed to FORCE_SHUTTING_DOWN>
解决办法:修改/etc/hosts配置,添加主机IP及对应主机名,然后重新启动。