I'm trying to run a Spring MVC project in STS with Tomcat 6.0 server. But I have these 2 errors which I can't resolve:
Class 'org.springframework.jdbc.datasource.DriverManagerDataSource' not found [config set: projectName/web-context] root-context.xml /projectName/src/main/webapp/WEB-INF/spring Spring Beans Problem
Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: projectName/web-context] servlet-context.xml /projectName/src/main/webapp/WEB-INF/spring/appServlet Spring Beans Problem
I suspect this has to do with the build path. Any suggestions?
These problems were solved by right clicking project name in Package Explorer->Spring Tools->Add Spring Project Nature. (Don't know what really happened, only that problems were gone afterwards.)