The above solution works fine but it creeps up again and again. An easier solution is to right click on the concerned project in Eclipse and choose Validate.
For me, none of these worked. The solution for me was deleting the following file while Eclipse was stopped:
/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/myprojectname/.markers
Here is another thing you could try, only this worked for me :(
Go to project properties > Project facets > there tick "Java" and "Utility Module" ... apply This works if your project is referenced from other projects ..otherwise you could play with those options ...see which one works for you.
try adding this line in the .project
file
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
Or refer to this discussion: for instance, make sure there is no duplicate entries in .sessions/org.eclipse.wst.common.component
As noted in the comment by larf311, the actual answer in this instance was:
delete the "
.settings/org.eclipse.wst.common.component
" file.
Simple. ;)
Removing the .markers file resolved this issue for me. I would upvote that solution, except that I don't have the "reputation" to do so. :(
This just means that the project configuration of wtp are old, or there's a conflict between modules. go to Projct ->properties -> project facets. Then click the following: dynamic web project ver 2.5, java 5 or 6 and javascript toolkit (not sure if its necessary). You will notice that there have been changes to .settings file. check in the new changes, and everytime someone checks out the project it should be okay
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With