Sunday, June 7, 2020

default-keystore.jks cannot be loaded

When Starting Integrated Server, File "default-keystore.jks" Cannot be Loaded


Upon starting up the Default Domain from JDeveloper 11.1.1.9.0, this error is shown in the logs:

<JMX FRAMEWORK Domain Runtime MBeanServer pooling thread> <<WLS Kernel>> <> <> <1531387211911> <BEA-000000> <<oracle.as.jmx.framework.LoggerHelper> <LoggerHelper> <log> <J2EE JMX-46714> oracle.as.jmx.framework.util.MissingConfigurationFileException: The configuration at URI "C:\Users\xxxxxxxx\Oracle\Middleware\userhome\xxxxxxx\system11.1.1.9.40.66.73\DefaultDomain\config\fmwconfig\mbeans\..\default-keystore.jks" cannot be loaded.
    at oracle.as.jmx.framework.util.ExternalConfigHelper.getAndVerifyConfigURL(ExternalConfigHelper.java:80)
    at oracle.as.jmx.framework.util.ExternalNonPMConfigObjectMBeanAssociationInfo.getAndVerifyConfigURL(ExternalNonPMConfigObjectMBeanAssociationInfo.java:140)
    at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.init(NonPMConfigObjectMBeanAssociationInfo.java:502)
    at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.init(NonPMConfigObjectMBeanAssociationInfo.java:523)
    at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.(NonPMConfigObjectMBeanAssociationInfo.java:163)
    at oracle.as.jmx.framework.util.ExternalNonPMConfigObjectMBeanAssociationInfo.(ExternalNonPMConfigObjectMBeanAssociati


Solution

create a empty file with name default-keystore.jks with below content at below location .

Content:

<?xml version="1.0" encoding="UTF-8" ?>
<defaultKeyStore>
</defaultKeyStore> 

Location:

C:\Users\xxxxxxxx\Oracle\Middleware\userhome\xxxxxxx\system11.1.1.9.40.66.73\DefaultDomain\config\fmwconfig\

Restart integrated server and error doesn't show up again.