My Oracle Support Banner

Plugin Registration And WeblogicImportMetadata Script Failing In OIM 12C (Doc ID 2394220.1)

Last updated on MAY 02, 2018

Applies to:

Identity Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Goal

Kindly advise cause and resolution for following errors which are creating issues while register plugins in OIM12c:

(1) while generating wlfullclient.jar getting following message:
-------------------------------------------------------------------------------------------------------------
Creating new jar file: wlfullclient.jar

wlfullclient.jar and jarbuilder are deprecated starting from the WebLogic 12.1.3 release.
---------------------------------------------------------------------------------------------------------


(2 While running the plugin registration command "ant -f pluginregistration.xml register" to register plugins in OIM 12c following error is being thrown:
---------------------------------------------------------------------------------------------------------------------
 [oracle@myoig plugin_utility]$ /opt/oracle/IAM12c/oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin/ant -f pluginregistration.xml register
Buildfile: /opt/oracle/IAM12c/idm/server/plugin_utility/pluginregistration.xml

register:
     [echo]
     [echo] *******************************************************************************
     [echo] REGISTRATION TOOL TO REGISTER
     [echo] *******************************************************************************
     [echo] This tool can be used to register or unregister plugins to OIM.
     [echo]
     [echo] Edit the ant.properties file to set the properties.
     [echo] Invoke the corresponding ant targets (register or unregister) to perform registration or unregistration correspondingly.
     [echo]
     [echo] Following are the additional system properties accepted by the utility. They would be prompted if not passed at the time of invoking the utility.
     [echo]
     [echo] OIM.Username (User ID of the oim user)
     [echo] ServerURL (URL of the server. WLS : t3://: WAS : corbaloc:iiop:: )
     [echo] PluginZipToRegister (Complete name with path of the plugin file. Required for registering a plugin.)
     [echo]
     [echo] Set the other properties in ant.properties file:
     [echo] wls.home/was.home
     [echo] oim.home
     [echo] login.config
     [echo]
     [echo]
     [echo] /opt/oracle/IAM12c/oracle_common/modules/org.springframework_3.1.0.jar:/opt/oracle/IAM12c/oracle_common/lib/java/shared/apache.commons.logging/1.0.3/commons-logging.jar:/opt/oracle/IAM12c/idm/server/platform/iam-platform-utils.jar:/opt/oracle/IAM12c/idm/server/platform/iam-platform-auth-client.jar:/opt/oracle/IAM12c/idm/server/platform/iam-platform-pluginframework.jar:/opt/oracle/IAM12c/idm/server/client/oimclient.jar:/opt/oracle/IAM12c/wlserver/server/lib/wlthint3client.jar:/opt/oracle/IAM12c/oracle_common/modules/oracle.jrf/jrf-api.jar
    [input] Enter the oim user id:
xelsysadm
    [input]Enter the oim user password:  

    [input] Enter the server url [WLS : t3://: WAS : corbaloc:iiop:: )]:
t3://myoing.example.com:14000                  
    [input] Enter name (complete file name with path) of the plugin file:

/opt/oracle/CreateUserPostProcessHandler.zip
-register-to-was-server:

-register-to-wls-server:
     [java] Java Result: 1
   [delete] Deleting: /opt/oracle/IAM12c/idm/server/plugin_utility/20180425132033.tmp
     [echo] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
     [echo] at org.springframework.jndi.JndiTemplate.(JndiTemplate.java:43)
     [echo] at oracle.iam.platform.OIMClient.(OIMClient.java:105)
     [echo] at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:210)
     [echo] Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
     [echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
     [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
     [echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
     [echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     [echo] ... 3 more
     [echo] classpath=/opt/oracle/IAM12c/oracle_common/modules/org.springframework_3.1.0.jar:/opt/oracle/IAM12c/idm/server/client/oimclient.jar:/opt/oracle/IAM12c/wlserver/server/lib/wlthint3client.jar:/opt/oracle/IAM12c/oracle_common/modules/oracle.jrf/jrf-api.jar
     [echo]
     [echo]
     [echo] was_home=null
     [echo]
     [echo]
     [echo] client_home=null
     [echo]
     [echo]
     [echo] xl_home=null
     [echo]
     [echo]
     [echo] mw_home=null
     [echo]
     [echo]
     [echo] newClasspath=/opt/oracle/IAM12c/oracle_common/modules/org.springframework_3.1.0.jar:/opt/oracle/IAM12c/idm/server/client/oimclient.jar:/opt/oracle/IAM12c/wlserver/server/lib/wlthint3client.jar:/opt/oracle/IAM12c/oracle_common/modules/oracle.jrf/jrf-api.jar.:/sample:null/ext/ojdbc14.jar:null/ext/ucp.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/lib/oimclient.jar:null/server/lib/wlfullclient.jar:null/ext/jakarta-commons/commons-logging.jar:null/ext/commons-logging.jar:null/ext/spring.jar:null/ext/spring.jar:null/server/lib/webserviceclient+ssl.jar:null/platform/iam-platform-utils.jar:null/server/lib/wlclient.jar:null/server/lib/weblogic.jar:null/platform/iam-platform-auth-client.jar:null/features/iam-features-system-configuration.zip:null/features/iam-features-identity.zip:null/features/iam-features-platformservice.zip:null/ext/log4j-1.2.8.jar:null/lib/XellerateClient.jar:null/lib/xlAPI.jar:null/lib/xlLogger.jar:null/lib/xlVO.jar:null/lib/xlUtils.jar:null/lib/xlCrypto.jar:null/lib/xlAuthentication.jar:null/lib/xlDataObjectBeans.jar:null/ext/oscache.jar:null/ext/javagroups-all.jar:null/lib/xlFvcUtil.jar:../../../iam/iam-lib/internal/jrf-api.jar:null/oracle_common/modules/oracle.jrf/jrf-api.jar:null/ext/jrf-api.jar:null/oracle_common/webservices/wsclient_extended.jar:null/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar

BUILD SUCCESSFUL
Total time: 3 minutes 2 seconds

---------------------------------------------------------------------------------------------------------------------------

(3) Also using WeblogImportMatadata script/utility in OIM/WLS 12c we are unable to import the eventhandler's xml file and its throwing following error:
-------------------------------------------------------------------------------------------------------------------------------------------------

Executing operation: importMetadata.

Problem invoking WLST - Traceback (innermost last):
File
"/scratch/haripnar/OIM_ST12/mw_home/idm/server/bin/weblogicImportMetadata.py",
 line 20, in ?
File
"/scratch/haripnar/OIM_ST12/mw_home/oracle_common/modules/internal/features/or
acle.fmwshare.pyjar.jar!/wlstScriptDir/mdsWLSTCommands.py", line 283, in
importMetadata
File
"/scratch/haripnar/OIM_ST12/mw_home/oracle_common/modules/internal/features/or
acle.fmwshare.pyjar.jar!/wlstScriptDir/mdsWLSTCommands.py", line 699, in
executeAppRuntimeMBeanOperation
File
"/scratch/haripnar/OIM_ST12/mw_home/oracle_common/modules/internal/features/or
acle.fmwshare.pyjar.jar!/wlstScriptDir/mdsWLSTCommands.py", line 661, in
getMDSAppRuntimeMBean
UserWarning: MDS-91020: MDS Application runtime MBean for "OIMMetadata"
is not available in server "oim_server1". Ensure server name and application
name are correct. "importMetadata" operation failure.
--------------------------------------------------------------------------------------------------------------------------------------------

Solution

To view full details, 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 a vibrant support community of peers and Oracle experts.