This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Circular dependency in RAD 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Circular dependency in RAD 7.0" Watch "Circular dependency in RAD 7.0" New topic
Author

Circular dependency in RAD 7.0

Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
Hi All,

I am trying to migrate an ear from wsad 5.1 to rad 7.0 environment.I was getting a circular dependency because of which building of projects couldn't be carried out I circumvented the problem by changing the settings of RAD .But, as my migrated code will be eventually be running in some other instance of RAD this setting will not be of help .Does anyone has any idea how to get out of error due to circular dependency?


Thanks & Regards,
Abhisek
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Abhisek,
Get rid of the dependency. If you have control over the code, extract the lower level code into a separate project.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
Hi Jeanne,

Thanks fo the reply actually I went for those settings because of the reason that I am not very sure of what basically a circular dependency is all about,for me if project A has project B checked in Project References and Project B has Project A checked in Project references then it is a circular dependency but in my case the situation is quite different.

Project A is dependent upon Project B,Poject C and Project D.

Project B and C are not dependent upon any project.

Project D depends again upon Project B and Project C

Does this situation qualify as a circular dependency.

Please suggest how to remove the dependency.

Thanks & Regards,
Abhisek
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

No that's not a circular dependency. There are two non circular paths.
A > D > B >C or A > D > C > B

There are two possibilities here:
1) There is another dependency. (This is likely - I recommend you double check - make sure you are looking at the projects build path and not just the project references.)
2) RAD is confused. Try forcing a "clean" project on B and C and then rebuild the whole workspace.
Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
Hi Jeanne,

Thanks a lot for the advice. I will let you know once I get back to code.I now feel basically this (circular dependency)is an error because the compiler is getting confused which project to compile first and which to compile second,am I right?
 
Consider Paul's rocket mass heater.
 
subject: Circular dependency in RAD 7.0
 
Similar Threads
Migrating from RAD 7.0 to RAD 7.5
Editor does not contain a main type.
IBM 0255 test
Project import from (Serena) PVCS to RAD 7.0
Running more than one instance of IBM Portal 5.1 server over RAD7.0