My Oracle Support Banner

Getting ClassNotFoundException, when using JPA cache with more than one application. (Doc ID 1313222.1)

Last updated on MARCH 09, 2019

Applies to:

Oracle WebLogic Server - Version 10.3.3 and later
Information in this document applies to any platform.
***Checked for relevance on 6-May-2013***


ClassNotFoundException is thrown when using same JPA cache with more than one app as below.
Added the below attributes in persistence.xml file to enable cache:

<property name="openjpa.DataCache" value="true,true(Name=secondary-cache, CacheSize=100)"/>
<property name="openjpa.RemoteCommitProvider" value="sjvm" />


This is working fine with one application.
Once we deploy second JPA application with above properties we are seeing below exception.

<Feb 13, 2011 3:29:32 PM EST> <Warning> <Kodo> <BEA-2004002> <null java.lang.ClassNotFoundException:
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(
at weblogic.utils.classloaders.GenericClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at weblogic.utils.classloaders.GenericClassLoader.loadClass(


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

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