Migrate application from 1.0 to 1.1

17 views
Skip to first unread message

Phil

unread,
Oct 27, 2010, 5:40:01 AM10/27/10
to play-framework
Hi,
I'm trying to migrate my application from play 1.0 to 1.1(RC3).
It relies on heavily customized CRUD and Secure modules and a jdbc
module.
But the exception seems to be related to the JPAPlugin, maybe because
I used a lot JPASupport which is now deprecated.

I got the following exception on the first query :
2010-10-27 11:23:21 WARN ~ You're running Play! in DEV mode
2010-10-27 11:23:21 INFO ~ Listening for HTTP on port 4848 (Waiting a
first request to start) ...
2010-10-27 11:23:27 INFO ~ Connected to jdbc:hsqldb:mem:playembed
2010-10-27 11:23:27 ERROR ~

@649p9m55e
Internal Server Error (500) for request GET /

JPA error
A JPA error occurred (Unable to build EntityManagerFactory): component
property not found: id

play.exceptions.JPAException: Unable to build EntityManagerFactory
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:226)
at play.Play.start(Play.java:426)
at play.Play.detectChanges(Play.java:520)
at play.Invoker$Invocation.init(Invoker.java:100)
at Invocation.HTTP Request(Play!)
Caused by: org.hibernate.MappingException: component property not
found: id
at org.hibernate.mapping.Component.getProperty(Component.java:291)
at
org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:
2364)
at
org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:
2249)
at
org.hibernate.cfg.AnnotationBinder.bindComponent(AnnotationBinder.java:
2201)
at
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:
1948)
at
org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:
769)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:
733)
at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:
636)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:
359)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:
1206)
at
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:
1459)
at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:
193)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
1086)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:
890)
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:224)
... 4 more

Any hit :)?

Regards,
Philippe

Guillaume Bort

unread,
Oct 27, 2010, 1:26:03 PM10/27/10
to play-fr...@googlegroups.com
JPASupport has just been renamed, so it shouldn't be a problem. DO you
have embedded component classes somewhere?

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com

Reply all
Reply to author
Forward
0 new messages