Custom Actions Not Available From Applications Integrated With OAAM (Doc ID 2238084.1)

Last updated on MARCH 02, 2017

Applies to:

Oracle Adaptive Access Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

I followed the OAAM developer guide "Developer's Guide for Oracle Adaptive Access Manager 11g Release 2 (11.1.2.2)" section 7 " Using the OAAM Extensions Shared Library to Customize OAAM" for creating custom action.

I created an action template and then created an action instance for it on post authentication check point. However when I test the scenario, I get an error in the log with action class load exception.

 

[2016-11-30T13:26:35.422+02:00] [oaam_server_server1] [ERROR] [] [oracle.oaam] [tid: DynamicActionsExecutor_0_8] [userId: <anonymous>] [ecid: caafdcfa9236537b:-4a51e97c:158b4de3f49:-8000-0000000000000a81,1:22144] [APP: oaam_sample#11.1.1.3.0] Unable to load dynamic action class. Check the class name and make sure the class is in classpath.[[
java.lang.ClassNotFoundException: com.bharosa.vcrypt.tracker.dynamicactions.impl.HelloWorld
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.bharosa.vcrypt.tracker.dynamicactions.DynamicActionsManager.loadActionClass(DynamicActionsManager.java:514)
at com.bharosa.vcrypt.tracker.dynamicactions.DynamicActionsManager.getDynamicActionClass(DynamicActionsManager.java:536)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor.executeAction(ActionExecutor.java:376)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor.executeActionsForRuntime(ActionExecutor.java:265)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor$ExecuteActionsRequest.exec(ActionExecutor.java:501)
at com.bharosa.common.util.RequestProcessorThreadPool.run(RequestProcessorThreadPool.java:308)
at java.lang.Thread.run(Thread.java:662)

]]
[2016-11-30T13:26:35.423+02:00] [oaam_server_server1] [ERROR] [] [oracle.oaam] [tid: DynamicActionsExecutor_0_8] [userId: <anonymous>] [ecid: caafdcfa9236537b:-4a51e97c:158b4de3f49:-8000-0000000000000a81,1:22144] [APP: oaam_sample#11.1.1.3.0] Id mapping for bharosa.arm.message.dynact.error.action.class.loaderror not found.
[2016-11-30T13:26:35.423+02:00] [oaam_server_server1] [ERROR] [] [oracle.oaam] [tid: DynamicActionsExecutor_0_8] [userId: <anonymous>] [ecid: caafdcfa9236537b:-4a51e97c:158b4de3f49:-8000-0000000000000a81,1:22144] [APP: oaam_sample#11.1.1.3.0] Error: executeAction(): Action Instance [HelloInstance], RequestId = [3_389ed900ffad880333279cf610cd6c951f13facac097d19a75693c6a0e55a9ab], RequestTime =[null], RuleContextMap = [{remoteIPAddr=192.168.23.20, browser_ip=192.168.23.20, browser_localLang=en, browser_localVariant=, BharosaAppId=default, browser_localCountry=}], RuleResult = [VCryptRulesResultImpl. actionList=[]; result='Allow; score=0; transactionLogId=null; deviceId=301; runtimeType=2; response=VCryptResponse{success=true, timeStamp=Wed Nov 30 13:26:35 EET 2016, responseCode='0', errorMessage='', errorMessageRBKey='null', errorMessageParams='null', server='hhamed-lnx.mydomain.com/10.171.250.165', extendedDataMap=null, sess='null', transactionResponse='null}; responseMap: runtimeTypeList ={2}], ActionContextMap = [{}][[
bharosa.arm.message.dynact.error.action.class.loaderror
at com.bharosa.vcrypt.tracker.dynamicactions.DynamicActionsManager.loadActionClass(DynamicActionsManager.java:524)
at com.bharosa.vcrypt.tracker.dynamicactions.DynamicActionsManager.getDynamicActionClass(DynamicActionsManager.java:536)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor.executeAction(ActionExecutor.java:376)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor.executeActionsForRuntime(ActionExecutor.java:265)
at com.bharosa.vcrypt.tracker.dynamicactions.ActionExecutor$ExecuteActionsRequest.exec(ActionExecutor.java:501)
at com.bharosa.common.util.RequestProcessorThreadPool.run(RequestProcessorThreadPool.java:308)
at java.lang.Thread.run(Thread.java:662)

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