Each time I make a JPA project Eclipse reports that there are errors in my project but I do not understand why it does so. I added image and errors below:
In my case it was just old connection in Properties->JPA->Add connection. So refresh will not help. New connection for correct database will help when refresh will not.