Another relatively common way to get this error is if the classloader can't load the OpenJPA product derivations. You should have services/org.apache.openjpa.lib.conf.ProductDerivation on the classpath. That file should contain these entries (with a copy of the Apache license between them):
org.apache.openjpa.jdbc.conf.JDBCProductDerivation org.apache.openjpa.persistence.jdbc.JDBCPersistenceProductDerivation org.apache.openjpa.persistence.PersistenceProductDerivation org.apache.openjpa.slice.ProductDerivation If the product derivations are missing OpenJPA won't pick up the default table name for your entity class (actually more things are going wrong but the table name is the most visible symptom). HTH -mike On Thu, Feb 12, 2009 at 9:04 AM, Milinda Pathirage < [email protected]> wrote: > Thanks, I'll try it and let you know if there is any problem. > > Milinda > > On Thu, Feb 12, 2009 at 7:52 PM, Pinaki Poddar <[email protected]> wrote: > > > > > It is "openjpa.jdbc.SynchronizeMappings" > > > > > > Pinaki Poddar wrote: > > > > > > Hi, > > > Try in the given sequence > > > 1. Declare all the known persistent entities in <class> clause of > > > persistence.xml > > > 2. Ask OpenJPA to map the known classes to database (also in > > > persistence.xml) > > > <property name="openjpa.SynchronizeMappings" value="buildSchema"/> > > > > > > > > > > -- > > View this message in context: > > > http://n2.nabble.com/org.apache.openjpa.persistence.ArgumentException%3A-No-table-was-given--for-persistent-type-tp2313758p2315114.html > > Sent from the OpenJPA Users mailing list archive at Nabble.com. > > > > > > > -- > http://mpathirage.com > http://wso2.org "Oxygen for Web Service Developers" > http://wsaxc.blogspot.com "Web Services With Axis2/C" >
