tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: EclipseLink + TomEE?
Date Fri, 06 Jul 2012 06:37:09 GMT
Hi,

Here the way to do with the snapshot
http://svn.apache.org/repos/asf/openejb/trunk/openejb/examples/tomee-jersey-eclipselink/pom.xml
 Le 6 juil. 2012 08:30, "Jean-Louis MONTEIRO" <jeanouii@gmail.com> a écrit :

> Guess David's purpose was not to delete EclipseLink jar if you wanna use it
> as you JPA provider.
> The first error reported (ClassCastException) is commonly related to
> duplicate classes in different classloaders. The point is that as a JEE
> Application Server, we already deliver the JPA API (as Tomcat delivers
> Servlet API) and you must not deliver your own API jar in your application.
>
> So definitely try looking if you don't have the JPA API comming with your
> EclipseLink provider (maybe a transitive dependency).
>
> If you still face issues, could you share a simple example to reproduce the
> error?
>
> Hope it helps.
> JLouis
>
>
> 2012/7/6 miweiss <horndinkle@yahoo.com>
>
> > Hmm.  Are you saying delete the EclipseLink JPA from my app?  I'm using
> JPA
> > to access my database.  And I know it won't work, because I've already
> done
> > that, and it said:
> >
> > SEVERE: Unable to deploy collapsed ear in war /ReachingRecovery:
> Exception:
> > Creating application failed:
> > C:\Users\Mimi\Documents\NetBeansProjects\ReachingRecovery\build\web:
> > java.util.concurrent.ExecutionException:
> java.lang.ClassNotFoundException:
> > org.eclipse.persistence.jpa.PersistenceProvider:
> > java.lang.ClassNotFoundException:
> > org.eclipse.persistence.jpa.PersistenceProvider
> > org.apache.openejb.OpenEJBException: Creating application failed:
> > C:\Users\Mimi\Documents\NetBeansProjects\ReachingRecovery\build\web:
> > java.util.concurrent.ExecutionException:
> java.lang.ClassNotFoundException:
> > org.eclipse.persistence.jpa.PersistenceProvider:
> > java.lang.ClassNotFoundException:
> > org.eclipse.persistence.jpa.PersistenceProvider
> >
> > I'm stumped.
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/EclipseLink-TomEE-tp4656073p4656076.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message