java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException

后端 未结 1 341
后悔当初
后悔当初 2021-01-03 11:14

I\'m new to JavaEE.

I created enterprise application project in NETBEANS 7.2.1 with glassfish server 3.1.

When I try to clean and build I get following error

相关标签:
1条回答
  • 2021-01-03 11:46

    Well I had the same problem, I am using netbeans 7.3.1 and when I create a facade database in my class library I was getting the error (using JAva 7 and Glassfish 4)

    The problem I was having was when you use the insert code and automatic bean creation it adds the Java EE 6 API library . I deleted the library and add the Java EE 7 API. It worked for me.

    0 讨论(0)
提交回复
热议问题