Friday, April 14, 2017

OIM plugin registration error Class not found: oracle.iam.platform.utils.ant.PasswordInputHandler

Error during plugin registration:

/u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/bin/ant -f pluginregistration.xml register

Class not found: oracle.iam.platform.utils.ant.PasswordInputHandler

 

Steps leading to the error:

[oracle@xxxxxxxx plugin_utility]$ /u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/bin/ant -f pluginregistration.xml register

Buildfile: 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://<host>:<port> WAS : corbaloc:iiop:<host>:<port> )

[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] /u01/app/oracle/product/fmw/Oracle_IDM1/ext/spring.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/ext/jakarta-commons/commons-logging.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/ext/internal/toplink.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/platform/iam-platform-context.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/platform/iam-platform-utils.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/platform/iam-platform-auth-client.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/platform/iam-platform-pluginframework.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/client/oimclient.jar:/u01/app/oracle/product/fmw/wlserver_10.3/server/lib/wlfullclient.jar:/u01/app/oracle/product/fmw/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar

[input] Enter the oim user id:

xelsysadm

 

BUILD FAILED

/u01/app/oracle/product/fmw/Oracle_IDM1/server/plugin_utility/pluginregistration.xml:72: Class not found: oracle.iam.platform.utils.ant.PasswordInputHandler

 

 

 

 

Solution: Rebuild the wljarbuilder.jar

cd $MW_HOME/wlserver_10.3/server/lib/

pwd

/u01/app/oracle/product/fmw/wlserver_10.3/server/lib/

java -jar wljarbuilder.jar

 

RE-Execute, no errors this time

[oracle@xxxxxxxxx plugin_utility]$ /u01/app/oracle/product/fmw/modules/org.apache.ant_1.7.1/bin/ant -f pluginregistration.xml register

Buildfile: 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://<host>:<port> WAS : corbaloc:iiop:<host>:<port> )

[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] /u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/spring.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/internal/toplink.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-context.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-utils.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/client/oimclient.jar:/u01/app/oracle/product/fmw/wlserver_10.3/server/lib/wlfullclient.jar:/u01/app/oracle/product/fmw/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar

[input] Enter the oim user id:

xelsysadm

[input]Enter the oim user password:

 

[input] Enter the server url [WLS : t3://<host>:<port> WAS : corbaloc:iiop:<host>:<port> )]:

t3://lzbvidmpdoimms1.na.lzb.hq:14000

[input] Enter name (complete file name with path) of the plugin file:

LzbOimExtensions.zip

 

-register-to-was-server:

 

-register-to-wls-server:

[delete] Deleting: /u01/app/oracle/product/fmw/Oracle_IDM1/server/plugin_utility/20170601174013.tmp

[echo]

[echo] classpath=/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/spring.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-context.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-utils.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/client/oimclient.jar:/u01/app/oracle/product/fmw/wlserver_10.3/server/lib/wlfullclient.jar:/u01/app/oracle/product/fmw/oracle_common/modules/oracle.jrf_11.1.1/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=/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/spring.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/ext/jakarta-commons/commons-logging.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-context.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-utils.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-auth-client.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/platform/iam-platform-pluginframework.jar:/u01/app/oracle/product/fmw/Oracle_IDM1/server/client/oimclient.jar:/u01/app/oracle/product/fmw/wlserver_10.3/server/lib/wlfullclient.jar:/u01/app/oracle/product/fmw/oracle_common/modules/oracle.jrf_11.1.1/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_11.1.1/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

[echo] Plugin com.lzb.identity.evt.handlers.SomAdminAdminRoleExtension version 1.0 Registered

 

BUILD SUCCESSFUL

Total time: 38 seconds

 

Other Possible causes of the issue include:

WL_HOME not set correctly; incorrect entries in ant.properties file