It is certainly possible to use OpenJPA 2 with Spring 3. Two common issues are incorrect version in your persistence file (should be 2.0) and use of an older version of Spring.
-=- Jerry (via iPhone) On Nov 28, 2010, at 10:55 AM, "gkorland [via OpenJPA]" <[email protected]> wrote: > I tried creating an EntityManagerFactory with Spring 3 but I keep getting the > following error: > > Caused by: java.lang.NoSuchMethodError: > javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode; > > at > org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:457) > > at > org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:314) > > > It seems like the issue is that this method was added in JPA 2.0 while the > version supported by Spring is only OpenJPA 1.1.0 (which is I guess JPA 1.0 > compatible) > > I couldn't find on SpringSource repository newer version than 1.1.0. > Any ideas? > > Thanks, > Guy > > View message @ > http://openjpa.208410.n2.nabble.com/Error-running-on-Spring-3-tp5781867p5781867.html > To start a new topic under OpenJPA Users, email > [email protected] > To unsubscribe from OpenJPA Users, click here. -- View this message in context: http://openjpa.208410.n2.nabble.com/Error-running-on-Spring-3-tp5781867p5782103.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
