Welcome to the JavaRanch, Sri!
Tomcat doesn't care about Eclipse, but Eclipse can be made to care about Tomcat using one of several plugins. The one that's built into the
J2EE build of Eclipse is the one I like least, however.
I'm moving this thread to the Eclipse (IDEs) forum.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.