java.lang.NoClassDefFoundError: org.springframework.jndi.JndiTemplate at oracle.iam.platform.OIMClient

Exception :

Caused by: java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
at RoleAssignment.RoleAssignment.getUserAndChangePassword(RoleAssignment.java:143)
at RoleAssignment.RoleAssignment.execute(RoleAssignment.java:81)
at RoleAssignment.RoleAssignment.main(RoleAssignment.java:36)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.springframework.jndi.JndiTemplate
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:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

 

Resolution :

Supply below parameters in the code block:

String mw_home = “<¬†Middle-ware¬†Home>”;
System.setProperty(“XL.HomeDir”, mw_home + “/Oracle_IDM1/server”);
System.setProperty(“java.security.auth.login.config”, mw_home + “/server/config/authwl.conf”);
System.setProperty(“APPSERVER_TYPE”, “wls”);

Leave a Reply

Your email address will not be published. Required fields are marked *