1 Reply Latest reply on Aug 14, 2012 5:40 AM by Arun.M

    Error while connecting to OIM through JDeveloper

    Arun.M
      Hi All,

      I am trying to configure OIM customization through JDeveloper. As per the documentation had set the environment variables and ran the class to test the connection, but was getting error message:

      javax.security.auth.login.LoginException: Security Exception
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:856)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
           at Thor.API.Security.LoginHandler.weblogicLoginHandler.login(weblogicLoginHandler.java:61)
           at oracle.iam.platform.OIMClient.login(OIMClient.java:134)
           at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
           at com.oracle.idm.samples.SampleClass1.main(SampleClass1.java:24)
      Caused by: java.lang.SecurityException
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:857)
           ... 9 more
      Process exited with exit code 0.


      Based on this error, Had added an entry: "permission java.security.AllPermission;" in xl.policy, after this when I again ran the class I am getting below error message:
      java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionService
           at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:169)
           at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:207)
           at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
           at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
           at com.oracle.idm.samples.SampleClass1.main(SampleClass1.java:24)
      Process exited with exit code 0.

      Had added all the plaftform related jars.

      Can some one please let me know how to resolve this issue.


      Thanks in advance...


      Regards
      Arun