tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@gmail.com>
Subject Re: EclipseLink + TomEE?
Date Fri, 06 Jul 2012 01:36:58 GMT

On Jul 5, 2012, at 6:05 PM, miweiss wrote:

> I'm having trouble starting TomEE, and it's because of this error:
> 
> <code>
> 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.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

> I don't see any JPA libraries (okay, except that one - I've already deleted
> it) in the TomEE distribution, so I don't understand what's going on.  Can
> somebody help?

Looks like you have the JPA API library in our webapp.  Delete that and you should get further.

Note the server itself needs the JPA API and it's located in the javaee-api jar. OpenJPA is
optional and it is safe to delete that.


-David


Mime
View raw message