Getting class not found error running java application using OIM libraries
Hi,
I have created a java application in which I access OIM libraries to fetch user list and then assign user roles. As i run the application it generates exception and program crashes. However, I am using the same libraries in OIM adapters and it is working fine. Following is the exception message i am getting.
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)