can you try a class.forName on this class? First guess is that you have no access to class. Either the jar is not on the classfile, or it is not public... Or a subsequent dependency is missing.
LieGrue, strub --- On Thu, 1/27/11, Christopher Schmidt <[email protected]> wrote: > From: Christopher Schmidt <[email protected]> > Subject: em.getMetamodel exceptions > To: [email protected] > Date: Thursday, January 27, 2011, 12:54 PM > Hi, while calling em.getMetamodel > where em is the current EntityManager I > get the following INFO trace of all entities: > > Running XXX.persistence.popo.MyTest > 131 XXX INFO [main] > openjpa.Runtime - OpenJPA dynamically loaded a > validation provider. > 168 XXX INFO [main] > openjpa.Runtime - Starting OpenJPA 2.0.1 > 361 XXX INFO [main] > openjpa.jdbc.JDBC - Using dictionary class > "org.apache.openjpa.jdbc.sql.PostgresDictionary". > 1151 XXX WARN [main] > openjpa.MetaData - Meta class > "XXX.persistence.popo.Road_" for entity class > XXX.persistence.popo.Road can > not be registered with following exception > "java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: > XXX.persistence.popo.Road_" > 1155 XXX WARN [main] > openjpa.MetaData - Meta class > "XXX.persistence.popo.Location_" for entity > class XXX.persistence.popo.Location can not be registered > with following > exception "java.security.PrivilegedActionException: > java.lang.ClassNotFoundException: > XXX.persistence.popo.Location_" > . . . > > Any advice what can be the cause for this? > > -- > Christopher > twitter: @fakod > blog: http://blog.fakod.eu >
