26

Though I have all my source in proper packages.It couldn't find at the time of Building Project.Normally it shows links everything.But at the time of Build Project or Autobuild while directly running project.

The import ecnet.rd.config cannot be resolved 

like it shows for all the internal imports.But external imports like imports from JAR files are working.

P.S :

My Eclipse latestly crashed but it was working well after that, Once again this kind of things are happening.

Please help to find the way to solve this.

sunleo
  • 10,589
  • 35
  • 116
  • 196

3 Answers3

42

In my experience, it is usual with Eclipse to have the build messed up. Make sure Build automatically is checked and Clean. If it doesn't work, restart Eclipse and do again.

Also as Tech Junkie comments below, try also Clean all projects.

m0skit0
  • 25,268
  • 11
  • 79
  • 127
19

I've seen this happen and another approach to take which is similar to m0skit0 solution (if you are using Eclipse) is to right click on the project, select maven, select update project, make sure clean projects and refresh workspace are checked, and hit ok.

George
  • 1,478
  • 17
  • 28
4

After hours of struggle, creating a new Eclipse workspace, reimporting the projects and resetting up the same tomcat instance worked.

Probably the eclipse settings got messed up, and the deploy wasn't being done correctly anymore.

Mihai Morcov
  • 193
  • 1
  • 7