openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schmidt <fakod...@googlemail.com>
Subject Re: em.getMetamodel exceptions
Date Thu, 27 Jan 2011 13:16:18 GMT
The class XXX.persistence.popo.Road_ does not exist...
XXX.persistence.popo.Road does exist and works fine.

Forgot to say that I use two persistence Units and therefore two
EntityManagerFactories.

Christopher

On Thu, Jan 27, 2011 at 2:08 PM, Mark Struberg <struberg@yahoo.de> wrote:

> 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 <fakod666@googlemail.com> wrote:
>
> > From: Christopher Schmidt <fakod666@googlemail.com>
> > Subject: em.getMetamodel exceptions
> > To: users@openjpa.apache.org
> > 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
> >
>
>
>
>


-- 
Christopher
twitter: @fakod
blog: http://blog.fakod.eu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message