Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Project cannot reference itself

Tags:

java

eclipse

I am not able to add Dynamic Web Module 3.0 facet due to this error. No idea what is wrong with my project settings.
This is a duplicate question but accepted answer provides a url as solution which no longer work.

like image 308
Himanshu Yadav Avatar asked Jun 25 '14 19:06

Himanshu Yadav


2 Answers

Deleted .classpath and project settings files from project folder. Then imported the maven project again.
It works fine after that.

like image 133
Himanshu Yadav Avatar answered Sep 28 '22 03:09

Himanshu Yadav


Please delete

< wb-resource deploy-path="/WEB-INF/classes" source-path="/"/ >

from org.eclipse.wst.common.component under .settings folder.

like image 42
Mohan Suresh Ramasamy Avatar answered Sep 28 '22 04:09

Mohan Suresh Ramasamy