openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: PCEnhancer and java.lang.ClassNotFoundException
Date Wed, 20 Jul 2011 16:33:40 GMT
Firstly the error shows OpenJPA has now found the persistence.xml.

I do not know whether this is the right forum on helping you to set a
classpath right, but let me try:

Classpaths in Java helps to resolve/find bytecodes of a class. If you are
using a class whose fully-qualified name is resourceMgr.model.Client, and
its bytecodes reside in a file say

Then the correct classpath to load that resourceMgr.model.Client class is


As you have posted your classpath (the lines are broken for readability)

java -classpath 
    -p persistence.xml#Accounts 

This classpath entry 

should be

Pinaki Poddar
Chair, Apache OpenJPA Project
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message