Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse bug: This project has the JPA facet, but no JPA project could be created

Tags:

After restarting Eclipse, I get the following error in my project:

This project has the JPA facet, but no JPA project could be created. See the error log for more details.

Nothing I've done (clean project, maven update, etc) will get rid of the error. My JPA Content icon remains greyed out.

enter image description here

It looks like this was a resolved bug at Eclipse bugs...but then why am I still getting it? Should I submit a bug report to Eclipse?

like image 375
AllieCat Avatar asked Jun 26 '13 19:06

AllieCat


4 Answers

This is a configuration problem of the project. To solve this problem go to the project properties, and in the node "project facets" unchecked JPA and apply the changes. Now you can checked JPA and apply again!

like image 136
Seb Avatar answered Oct 15 '22 08:10

Seb


For me all the above didnt worked.

So I tried Project Properties>Validate. It solved my problem.

like image 36
kaushikjain Avatar answered Oct 15 '22 08:10

kaushikjain


To get rid of this error in Eclipse Luna, I just did a right-click on the project and chose the "Validate" menu item.

like image 40
Hanz Avatar answered Oct 15 '22 07:10

Hanz


  1. Alt+Enter in the project
  2. Go for Project facets
  3. Uncheck JPA and accept
  4. Right click in the project, go for Validate
  5. Alt+Enter in the project
  6. Go for Project facets
  7. Check JPA` and accept
like image 40
f6rnando Avatar answered Oct 15 '22 06:10

f6rnando