My Oracle Support Banner

java.lang.NoClassDefFoundError: oracle/toplink/sessions/Session when running an ADF Toplink Web app. (Doc ID 430117.1)

Last updated on AUGUST 06, 2020

Applies to:

Oracle Containers for J2EE - Version 10.1.2.0.0 to 10.1.3.0.0 [Release AS10gR2 to AS10gR3]
Oracle JDeveloper - Version 10.1.2.1.0 to 10.1.3.2.0 [Release Oracle10g]
Information in this document applies to any platform.
Oracle JDeveloper - Version: 10.1.2.1 to 10.1.3.2
This problem can occur on any platform.

Symptoms

When running an ADF TopLink Web application that was deployed to an OC4J container, the following error stack is displayed:

500 Internal Server Error
java.lang.NoClassDefFoundError: oracle/toplink/sessions/Session
 at oracle.adf.model.generic.toplink.DataControlFactoryImpl.getPersistenceManager(DataControlFactoryImpl.java:92)
 at oracle.adf.model.generic.toplink.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:55)
 at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:63)
 at oracle.adf.model.BindingContext.get(BindingContext.java:411)
 at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:274)
 at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:255)
 at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:368)
 at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
 at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)
 at oracle.jbo.uicli.binding.JUMethodIteratorDef$1.<init>(JUMethodIteratorDef.java:345)
 at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:61)
 at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:52)
 at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java:197)
 at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:273)
 at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:40)
 at oracle.adf.model.BindingContext.get(BindingContext.java:427)
 at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:274)
 at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:255)
 at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:368)
 at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:596)
 at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)
 at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)
 at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)
 at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
 at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
 at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
 at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
 at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
 at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534) 

 

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
Cause
Solution

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