Hi, You probably added the jpa api with eclipselink jars. It is in javaee-api jar so simply remove the eclipselink jpa api.
Romain Le 27 avr. 2012 19:51, "José Luis Cetina" <maxtorz...@gmail.com> a écrit : > (eclipselink 2.3.2.jar, eclipselink-jpa-modelgen_2.3.2.jar, > javax.persistence_2.0.3.jar) > > if i try to use eclipselink as provider i get this exception: > > Caused by: org.apache.tomee.catalina.TomEERuntimeException: > org.apache.openejb.OpenEJBException: Creating application failed: > C:\Users\maxtorzito\Documents\NetBeansProjects\grupokx\build\web: > java.util.concurrent.ExecutionException: java.lang.ClassCastException: > org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to > javax.persistence.spi.PersistenceProvider: java.lang.ClassCastException: > org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to > javax.persistence.spi.PersistenceProvider > > > > persistence.xml: > . > . > <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> > . > . > > > > > -- > ------------------------------------------------------------------- > *SCJA. José Luis Cetina* > ------------------------------------------------------------------- >