OAAM Custom Implmentation of Password Reset Fails with "java.lang.ClassNotFoundException: Class bytes found but defineClass() failed" (Doc ID 1640796.1)

Last updated on JUNE 07, 2017

Applies to:

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

Goal

Followed the steps on https://docs.oracle.com/cd/E40329_01/dev.1112/e27206/extend.htm#CIHEAGJD, and placed the jar as explained in the documentation. But in the logs I see the ClassNotFoundException.
 
oaam_server#11.1.2.0.0] Error loading plugin instance for className=com.aptec.nyu.oaam.userpassword.CustomPasswordManager[[
java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for:java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.aptec.nyu.oaam.userpassword.CustomPasswordManager'
       at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:276)
       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:169)
       at com.bharosa.uio.util.UIOUtil.getPlugin(UIOUtil.java:2369)
       at com.bharosa.uio.processor.integration.DefaultIntegrationProcessor.getPlugin(DefaultIntegrationProcessor.java:306)
       at com.bharosa.uio.processor.integration.DefaultIntegrationProcessor.getPasswordManager(DefaultIntegrationProcessor.java:202)
       at com.bharosa.uio.util.UIOUtil.getPasswordManager(UIOUtil.java:2289)
       at com.bharosa.uio.util.UIOUtil.getPasswordPolicyText(UIOUtil.java:2215)
       at com.bharosa.uio.processor.task.ChangePasswordTaskProcessor.process(ChangePasswordTaskProcessor.java:182)
       at com.bharosa.uio.processor.task.AbstractTaskProcessor.execute(AbstractTaskProcessor.java:64)
       at com.bharosa.uio.actions.ChangePasswordAction.bharosaExecute(ChangePasswordAction.java:158)
       at com.bharosa.uio.actions.UIOBaseAction.execute(UIOBaseAction.java:84)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
       at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
       at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
       at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
       at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
       at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
       at java.security.AccessController.doPrivileged(Native Method)
       at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
       at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
       at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
       at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
       at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

 

Solution

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