ClassNotFoundException in a simple spring application
I am trying to write a very small web-application using spring framework (MVC). I am using tomcat and eclipse.
When i run the application i get the following error:
Caused by: java.lang.ClassNotFoundException: controller.WelcomeController
But in fact WelcomeController.java exists under controller package, and also i can see that the class file WelcomeController.class exists under WEB-INF/classes/controller/ directory.
What might be the reason of the problem?
As far as i know eclipse is dealing with the classpath by itself, how can i check the classpath used by eclipse?
Thanks in advance.