Posted under Eclipse
Permalink
Tags Bug, Eclipse, Gotcha
I had this issue when deleting and refetching a project from CVS into Eclipse.
It reported that it was unable to resolve a number of the persistence classes such as EntityManager and EntityManagerFactory, even though the libraries and the imports were all present correctly.
This was solved by removing the Java persistence facet from the project facets page, applying the change, and adding persistence back and reconfiguring it. The problem then disappeared.
This was one of several Eclipse ‘gotchas’ I have found where Eclipse reports errors which do not exist. Often, a reconfigure such as the above, or a restart/reload will sort it.
Leave a Reply
You must be logged in to post a comment.