Joined: Wed Jun 11, 2008 7:51 am Posts: 8
|
I'm using a JAX-WS service with an entity, everytime I use te annotation @ManyToOne in this entity I get the following error:
ERROR - ContextLoader.initWebApplicationContext(203) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inlineImplementor': Invocation of init method failed; nested exception is java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5
Caused by:
java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5
at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:171)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:61)
To prevent this from happening I use another class POJO similar the to the @Entity but without the annotations. Does anybody know a smarter way to do this?
|
|