I have two web projects, projA and projB in the workspace of eclipse. Both the projects use different database, and having lot of source file common in both project, also the hierarchy of the most of the package is same in both the projects. The sequence of the projects in the eclipse workspace is projA and then projB. The problem is that when I put breakpoint in the projB on file named sample.java, the debugging works on projA's sample.java. Does anybody have any solution?
I suggest you think about restructuring your code so that common code is in a separate project that both project A and project B refer to.
In other words, if you have a class called com.example.Sample that is required by both projects, put this in project C and update the properties of projects A and B so that their build path includes project C.