I looked into the contents of ejb-persistence.jar - there is a
javax.persistence.SqlResultSetMapping class but there is no
javax.persistence.SqlResultSetMappings.
Quote:
java.lang.NoClassDefFoundError: javax/persistence/SqlResultSetMappings
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:191)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:348)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:295)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:216)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1001)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:840)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:161)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:624)
at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:126)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:180)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)