The same thing happened with Netbeans 7.1. Work on a project that works great for several months. Now I changed the bean, which is saved with javax.persistence, and now this exception is thrown. Reverted my small changes, cleared and compiled the project, rebooted the entire system: there are still exceptions. The curious thing: the created .war works fine in Tomcat on another machine.
UPDATE :
Today I had a problem again and I couldn’t remember how to solve it, but I found this post again.;)
After half an hour, I found a solution: just change the value of the serialVersionUID
property, serialVersionUID
application, and then you can change the value to its original value and redeploy again → work. It seems that Tomcat holds this class somewhere deep inside - deleting working directories has not led to success.
source share