Hi Eddie, Where are the jar files on the file system? The paths found in the jar-file attribute should be relative to the persistence root of your persistence unit. In your case the persistence root would be WEB-INF/classes.
Also, which web container and version of OpenJPA are you using? -mike On Sat, Sep 6, 2008 at 4:25 PM, Eddie Fang <[EMAIL PROTECTED]> wrote: > > 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 > > > -- > View this message in context: > http://n2.nabble.com/multiple-jars-containing-annotated-entities-tp950451p950451.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > >
