javax.security.auth.login.LoginException: unable to find LoginModule class: weblogic.security.auth.login.UsernamePasswordLoginModule

Error :
javax.security.auth.login.LoginException: unable to find LoginModule class: weblogic.security.auth.login.UsernamePasswordLoginModule
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
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:214)
at oracle.iam.platform.OIMClient.login(OIMClient.java:185)
at com.provision.processFailedTasksModified$OIMConnection.connection(processFailedTasksModified.java:117)
at com.provision.processFailedTasksModified$OIMConnection.getConnection(processFailedTasksModified.java:127)
at com.provision.processFailedTasksModified.main(processFailedTasksModified.java:20)
Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:276)
at oracle.iam.platform.OIMClient.getService(OIMClient.java:259)
at com.provision.processFailedTasksModified.main(processFailedTasksModified.java:20)
Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBException
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 5 more

Issue :  wlserver_10.3/server/lib/wlfullclient.jar is missing in ClassPath.
Solution : Add wlserver_10.3/server/lib/wlfullclient.jar into class path.

Ex : java -cp .:/$OIM_HOME/server/client/oimclient.jar:$middleware/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar:/$OIM_HOMEserver/apps/oim.ear/APP-INF/lib/commons-logging.jar:$middleware/wlserver_10.3/server/lib/wlfullclient.jar com/provision/processFailedTasksModified

2 comments:

  1. This is such an inspiring read! Your insights really resonate and make me think differently. Thank you for sharing!

    ReplyDelete
  2. Oracle Identity Manager Academy provides comprehensive training for managing and securing identities within an enterprise. As a beginner, you can leverage tools like rookiesideloader to streamline your learning and gain hands-on experience in identity management.

    ReplyDelete