Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

multiple jars containing annotated entities

Eddie Fang

2008-09-06

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

I have two jars (and possibly more jars in the futures) that contain
annotated entities. I've tried to get them to play nice to no avail.
Currently, the persistence.xml is sitting at WEB-INF\classes\META-INF\, and
the file content points to the two jars with the <jar-file> tags. I enhance
them at build time (seperately) using a persistence.xml that *doesn't* point
to the two jars, so it just finds any annotated classes in the classpath.
When I try accessing them in the webapp, classes in one jar will work fine,
but the others will have an error

org.apache.openjpa.persistence.ArgumentException: No metadata was found for
type "null"

Any ideas? Thanks!

Eddie


--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.