What JPA Spec version are you using in your persistence.xml?
The OpenJPA Eclipse plugin is using OpenJPA 1.2.1 right now, which means
it only supports JPA 1.0 apps....
-Donald
On 5/19/10 5:52 AM, stlecho wrote:
>
> I've installed the OpenJPA Eclipse Enhancement Builder but I'm receiving
> underneath error message within Eclipse.
>
> I would be pleased if someone could help me to fix this issue :o)
>
> <error>
> Errors occurred during the build.
> Errors running builder 'OpenJPA PC-Enhancer Project Builder' on project
> 'jpa-proto3'.
> OpenJPA Enhancement Builder failed with message
> 'java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file javax/persistence/CascadeType' for class:
> C:/slecho/FODFin/STIRON/L2-M5/Eclipse/workspace/jpa-proto3/target/classes/be/minfin/fgov/jpa/proto3/entity/ViesMessage.class
> Absent Code attribute in method that is not native or abstract in class
> file javax/persistence/CascadeType
> OpenJPA Enhancement Builder failed with message
> 'java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file javax/persistence/CascadeType' for class:
> C:/slecho/FODFin/STIRON/L2-M5/Eclipse/workspace/jpa-proto3/target/classes/be/minfin/fgov/jpa/proto3/entity/ViesMessage.class
> Absent Code attribute in method that is not native or abstract in class
> file javax/persistence/CascadeType
> </error>
>
> <code>
> @MappedSuperclass
> public abstract class ViesMessage<RESP extends ViesResponse> extends
> IdentityObject {
> @OneToMany(cascade=CascadeType.ALL,
> mappedBy="message",targetEntity=VATRResponse.class)
> protected List<RESP> responses;
> </code>
>
> <code>
> @MappedSuperclass
> public abstract class ViesResponse<MSG extends ViesMessage> extends
> IdentityObject {
> @ManyToOne(cascade=CascadeType.ALL)
> public MSG message;
> </code>