You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
I warred up a play app and tested on GlassFish v3.1 and it all worked.
Deployed to a GlassFish Server v2.1.1, hosted elsewhere, and got the
follow stack trace on deployment:
Exception sending context initialized event to listener instance of
class play.server.ServletWrapper
java.lang.NoSuchMethodError:
javax.persistence.OneToMany.orphanRemoval()Z
at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:
1912)
at
org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:
796)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:
707)
at org.hibernate.cfg.Configuration
$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:
3977)
at org.hibernate.cfg.Configuration
$MetadataSourceQueue.processMetadata(Configuration.java:3931)
at
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
1368)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:
1345)
at
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:
1477)
at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:
193)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
1096)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:
900)
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:229)
at
play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:
425)
at play.Play.start(Play.java:495)
at play.Play.init(Play.java:292)
at play.server.ServletWrapper.contextInitialized(ServletWrapper.java:
74)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4655)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
5364)
at com.sun.enterprise.web.WebModule.start(WebModule.java:345)
at
com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:
58)
at
com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:
304)
at
com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:
341)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Any ideas?
Thanks,
db
db
unread,
Sep 27, 2011, 10:10:54 PM9/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
For those that are interested, a work around for that exception is to
override the JPA1 API in your GlassFish installation. You can do this
by copying the "hibernate-jpa-2.0-api-1.0.0.Final.jar" to the GF_HOME/
lib/endorsed directory, but further exceptions are thrown.