tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miweiss <horndin...@yahoo.com>
Subject EclipseLink + TomEE?
Date Fri, 06 Jul 2012 01:05:59 GMT
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
org.apache.openejb.OpenEJBException: 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
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:909)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:506)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:634)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:588)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
	at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.openejb.OpenEJBException:
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
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:635)
	... 19 more
Caused by: java.util.concurrent.ExecutionException:
java.lang.ClassCastException:
org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to
javax.persistence.spi.PersistenceProvider
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:262)
	at java.util.concurrent.FutureTask.get(FutureTask.java:119)
	at
org.apache.openejb.assembler.classic.PersistenceBuilder.createEmf(PersistenceBuilder.java:169)
	at
org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:150)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:629)
	... 19 more
Caused by: java.lang.ClassCastException:
org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to
javax.persistence.spi.PersistenceProvider
	at
org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:40)
	at
org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:27)
	... 5 more
</code>

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?

Thanks!


--
View this message in context: http://openejb.979440.n4.nabble.com/EclipseLink-TomEE-tp4656073.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message