Hi,
I've been experimenting with a new (for me) framework called Odata4j.
https://code.google.com/p/odata4j/

I initially tried the Odata Producer example on TomEE but there were exceptions.
Log excerpts:
SEVERE: Unable to deploy collapsed ear in war 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TrendingTopics]
org.apache.openejb.OpenEJBException: Creating application failed: 
/app/tomcat/webapps/TrendingTopics: org.apache.openejb.OpenEJBRuntimeException: 
javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse 
Persistence Services - 2.1.2.v20101206-r8635): 
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit 
[NorthwindServiceEclipseLink] failed.
Internal Exception: Exception [EclipseLink-7237] (Eclipse Persistence Services 
- 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Entity name must be unique in a persistence unit. Entity 
name [Employees] is used for the entity classes 
[org.odata4j.examples.producer.jpa.addressbook.Employees] and 
[org.odata4j.examples.producer.jpa.northwind.Employees].: 
javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse 
Persistence Services - 2.1.2.v20101206-r8635): 
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit 
[NorthwindServiceEclipseLink] failed.
Internal Exception: Exception [EclipseLink-7237] (Eclipse Persistence Services 
- 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Entity name must be unique in a persistence unit. Entity 
name [Employees] is used for the entity classes 
[org.odata4j.examples.producer.jpa.addressbook.Employees] and 
[org.odata4j.examples.producer.jpa.northwind.Employees].
at 
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:897)
at 
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:612)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1213)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
at 
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.openejb.OpenEJBException: 
org.apache.openejb.OpenEJBRuntimeException: 
javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse 
Persistence Services - 2.1.2.v20101206-r8635): 
org.eclipse.persistence.exceptions.EntityManagerSetupException


Then I tried the same example Tomcat 8 and it works.

I don't have the skills to hack the Odata4J framework, so I'm just curious if 
anyone else is working on testing this framework with TomEE?

miles
--
Miles Poindexter
Condé Nast
Service Oriented Architecture
[email protected]<mailto:[email protected]>
347-967-8944 / 212-790-6692

Reply via email to