My Oracle Support Banner

JDeveloper 12.2.1.4 - NoClassDefFoundError when running Java API code (Doc ID 2677178.1)

Last updated on APRIL 12, 2023

Applies to:

Identity Manager - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

Using OIM 12.2.1.4 / JDeveloper 12.2.1.4, the following exception is seen when running Java API code. The same code works fine on OIM 12.2.1.3 / JDeveloper 12.2.1.3.

OIM >> Testing Java API operation: create
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
             at oracle.iam.platform.OIMClient.<init>(OIMClient.java:105)
             at com.example.util.OIMUtil.connectOIM(OIMUtil.java:41)
             at com.example.OIMUser.<init>(OIMUser.java:33)
             at com.example.OIMUser.main(OIMUser.java:114)
Caused by: java.lang.ClassNotFoundException: org.springframework.jndi.JndiTemplate
             at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
             at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
             ... 4 more
[Java API | OIMUser]:  >> OIMUser constructor
OIM >> connectOIM
Process exited with exit code

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.