ok, I forgot to attach the patch, here it is.
________________________________________
PHP & ASP .Net 3.5 web developer
Java & C# desktop developer
www.mohamnag.com



On Sun, Nov 21, 2010 at 10:54 PM, Mohammad Naghavi <[email protected]>wrote:

> Hi there,
> as I'm trying hard to move JPA Entity meta data to separated xml files,
> trying to compile the apache-james-mailbox-jpa project from command line
> gives me this:
>
> 1182  James  WARN   [main] openjpa.Enhance - Type "class
> org.apache.james.mailbo
> x.jpa.mail.model.openjpa.AbstractJPAMailboxMembership$MailboxIdUidKey"
> loaded by
>  java.net.urlclassloa...@6a4d37e5 has no metadata; enhancing as
> persistence awar
> e. If you intended for "class
> org.apache.james.mailbox.jpa.mail.model.openjpa.Ab
> stractJPAMailboxMembership$MailboxIdUidKey" to be persistence-capable, then
> this
>  means that OpenJPA could not find any metadata for "class
> org.apache.james.mail
> box.jpa.mail.model.openjpa.AbstractJPAMailboxMembership$MailboxIdUidKey".
> This c
> an happen if the directory containing your metadata is not in your
> CLASSPATH, or
>  if your metadata files are not named properly. See the documentation on
> metadat
> a placement for more information.
>
> and all the tests fail not finding the named queries. I have places
> the persistence.xml file pointing to mailbox.xml for meta data in
> src/main/resources like the screenshot:
> http://yfrog.com/6z78330626p
>
> and that they are also copied to target correctly. does anyone have any
> idea why JPA isn't finding the meta data?
> I have also generated a patch that you can apply for the changes I made to
> IMAP code checked out from the head revision. I attach it to this mail.
>
> Thanks,
> MN
> ________________________________________
> PHP & ASP .Net 3.5 web developer
> Java & C# desktop developer
> www.mohamnag.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to