WTP project 'cannot reference itself' error [message #504355] |
Fri, 18 December 2009 03:35  |
Eclipse User |
|
|
|
I have small project consisting of one maven project and two maven modules. One of the modules is a webapp, and I'm using WTP to run all my web applications. Everything has been fine, until today when when the webapp started refusing to compile, citing:
Project 'sdx.client' cannot reference itself
If I remove the following line from the .classpath:
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
my project compiles again. From googling, I believe this is a WTP element, which is why I'm posting this issue here rather than in the m2eclipse forum.
Any ideas why the internal web container should believe that it has a circular reference to itself? Or suggestions as to what I can do about it?
Thanks,
Ian
|
|
|
|
Re: WTP project 'cannot reference itself' error [message #504400 is a reply to message #504355] |
Fri, 18 December 2009 12:15  |
Eclipse User |
|
|
|
Hi Nitin,
I have three entries in the Problems view:
Description Resource Path Location Type
Project 'sdx.client' cannot reference itself sdx.client Build path Build Path Problem
The project cannot be built until build path errors are resolved sdx.client Unknown Java Problem
A cycle was detected in the build path of project 'sdx.client' sdx.client Build path Build Path Problem
(the last one I can convert to a warning through preferences, but it still does allow me to build my project).
If I try to edit the build properties of my project, through 'Project explorer > build path > configure build path ...' I get an error message at the top of the dialogue: "Project 'sdx.client' cannot reference itself" and the OK button is disabled.
Ian
|
|
|
Powered by
FUDForum. Page generated in 0.07230 seconds