Also append a hash tag of the unit name to persistence.xml.
i.e for a persistence unit named 'xyz'

$ java  org.apache.openjpa.enhance.PCEnhancer -p persistence.xml#xyz

Ensure the following
 a) persistence.xml declares all the classes to be enhanced in <class>
clause
 b) the classpath contains all the classes to be enhanced
 c) the classpath contains the directory where persistence.xml resides

-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: 
http://openjpa.208410.n2.nabble.com/PCEnhancer-and-java-lang-ClassNotFoundException-tp6597934p6599059.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to