The ohs_createInstance Command On Windows 2016 Succeeds But Does Not Create Configuration Files and ohs_deleteInstance Fails.

(Doc ID 2351949.1)

Last updated on JANUARY 24, 2018

Applies to:

Oracle HTTP Server - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms


When running ohs_createInstance on Windows 2016 it appears to succeed however the correct files do not appear to be created for the instance.

An error similar to this may be shown in the DOMAIN_HOME/servers/AdminServer/AdminServer.out,

<Warning> <oracle.as.jmx.framework.wls.spi.JMXFrameworkProviderImpl> <BEA-000000> <Commit Error
oracle.as.jmx.framework.util.MissingConfigurationFileException: The configuration at URI "/C:<DOMAIN_HOME>/config/fmwconfig/components/OHS/testing/httpd.conf" cannot be loaded.
at oracle.as.jmx.framework.util.ExternalConfigHelper.getAndVerifyConfigURL(ExternalConfigHelper.java:76)
at oracle.as.jmx.framework.util.ExternalNonPMConfigObjectMBeanAssociationInfo.getAndVerifyConfigURL(ExternalNonPMConfigObjectMBeanAssociationInfo.java:113)
at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.init(NonPMConfigObjectMBeanAssociationInfo.java:457)
at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.init(NonPMConfigObjectMBeanAssociationInfo.java:470)
at oracle.as.jmx.framework.util.NonPMConfigObjectMBeanAssociationInfo.<init>(NonPMConfigObjectMBeanAssociationInfo.java:136)
at oracle.as.jmx.framework.util.ExternalNonPMConfigObjectMBeanAssociationInfo.<init>(ExternalNonPMConfigObjectMBeanAssociationInfo.java:60)
at oracle.as.jmx.framework.util.ExternalNonPMConfigObjectMBeanAssociationInfo.cloneMBeanLifeCycleHelper(ExternalNonPMConfigObjectMBeanAssociationInfo.java:119)
at oracle.as.jmx.framework.wls.spi.MBeanAddRemoveChanges.propagateChangeToROMBeanServer(MBeanAddRemoveChanges.java:198)
at oracle.as.jmx.framework.wls.spi.MBeanAddRemoveChanges.commitChange(MBeanAddRemoveChanges.java:186)
at oracle.as.jmx.framework.wls.spi.WLSConfigurationSessionManager.changesCommitted(WLSConfigurationSessionManager.java:628)

 

When trying to delete the instance it fails with an error,

Traceback (innermost last):
 File "<console>", line 1, in ?
 File "/C:<MIDDLEWARE_HOME>/ohs/plugins/wlst/ohs-wlst-dependencies.jar!/wlstScriptDir/OracleOHS.py", line 108, in ohs_deleteInstance
 File "C:<MIDDLEWARE_HOME>\ohs\plugins\wlst\ohs-wlst-dependencies.jar\wlstScriptDir/ohs_handler.py", line 349, in oracleohs_deleteOHSInstance
 File "C:<MIDDLEWARE_HOME>\wlserver\modules\com.oracle.weblogic.management.scripting.jar\weblogic/management/scripting/utils/modules/wlstModule.py", line 38, in invoke
 File "C:\Users\<username>\AppData\Local\Temp\2\wlst_module14403213330406276816.py", line 753, in wlstInvoke
 File "C:\Users\<username>\AppData\Local\Temp\2\wlst_module32941203385124343310.py", line 240, in raiseWLSTException
WLSTException: Error occurred while performing invoke : javax.management.RuntimeMBeanException

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms