OAM 11g: SDK - How to use the sample of OAM SDK with JDeveloper with oamasdk-api.jar? / Root cause of ServletException.java.lang.NoSuchMethodError: oracle.security.am.common.aaaclient.ObAAAServiceClient.<init> (Doc ID 1409826.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

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

Goal

How to use the sample http://docs.oracle.com/cd/E21764_01/doc.1111/e12491/as_api.htm of OAM SDK with JDeveloper ?

calling of this class will bring this problem stack (class newcoClient used the oamasdk.jet and where called from the Servlet newcoServlet )

]] Root cause of ServletException.
java.lang.NoSuchMethodError: oracle.security.am.common.aaaclient.ObAAAServiceClient.<init>(Ljava/lang/String;[CILjava/lang/String;Ljava/lang/String;[C[CZIJJLjava/lang/Integer;Ljava/util/List;Ljava/util/List;)V
at oracle.security.am.asdk.AccessClient.createClient(AccessClient.java:798)
at oracle.security.am.asdk.AccessClient.initialize(AccessClient.java:610)
at oracle.security.am.asdk.AccessClient.<init>(AccessClient.java:527)
at oracle.security.am.asdk.AccessClient.createDefaultInstance(AccessClient.java:234)
at newcoClient.setupAccessClient(newcoClient.java:54)
at newcoClient.authenticate(newcoClient.java:79)
at newcoServlet.doGet(newcoServlet.java:26)
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:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
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