-
1. Re: JBoss - Persistence JPA hibernate
wdfink Aug 13, 2011 6:32 AM (in response to faber81)1 of 1 people found this helpfulMaybe you have wrong annotations in your entity.
Could you localize the entity?
Maybe it helps if you enable 'org.hibernate' logging TRACE.
-
2. Re: JBoss - Persistence JPA hibernate
faber81 Aug 13, 2011 8:30 AM (in response to wdfink)In my entity I had a field "version" that generates an annotation @version.
I solved by changing that.
Thanks
Now I'm trying to solve this error
ERROR [org.apache.catalina.core.ContainerBase. [Jboss.web]. [Localhost]. [/VmcSmartServer]. [RESTEasy]] Servlet.service () for servlet RESTEasy Threwexception: org.jboss.resteasy.spi. UnhandledException:java.lang.ClassCastException: $ $vmc.webapp.server.persistence.base.bean.Group_ _javassist_32 can not be cast tojavassist.util.proxy.ProxyObject.
Any idea what could be?
-
3. Re: JBoss - Persistence JPA hibernate
wdfink Aug 14, 2011 5:43 AM (in response to faber81)No, not my part
But you might close the issue here because you get quicker an answer in the correct forum.
-
4. Re: JBoss - Persistence JPA hibernate
faber81 Aug 16, 2011 8:53 AM (in response to faber81)For information this error is generated from the file that is inside jBoss javaassit.jar.
In a Maven project, just enter
<exclusion>
<artifactId> javassist </ artifactId>
<groupId> javassist </ groupId>
</ exclusion>
or overwrite the jar