Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory



Error :

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.jndi.JndiTemplate.<init>(JndiTemplate.java:43)
at oracle.iam.platform.OIMClient.<init>(OIMClient.java:106)
at com.provision.processFailedTasksModified$OIMConnection.connection(processFailedTasksModified.java:115)
at com.provision.processFailedTasksModified$OIMConnection.getConnection(processFailedTasksModified.java:127)
at com.provision.processFailedTasksModified.main(processFailedTasksModified.java:20)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
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 : Missing $OIM_HOMEserver/apps/oim.ear/APP-INF/lib/commons-logging.jar

Solution : Add $OIM_HOMEserver/apps/oim.ear/APP-INF/lib/commons-logging.jar into classpath.


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

No comments:

Post a Comment

About OIM

Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...

Popular Posts