0

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?

2
  • you should accept your own answer if it indeed solved your problem Commented Mar 24, 2012 at 15:47
  • 1
    No problem, it's preferrable to actually edit an existing answer as to not cause an inflation of answers. Commented Mar 27, 2012 at 8:56

3 Answers 3

3

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.)

Sign up to request clarification or add additional context in comments.

1 Comment

Really helped me. I already added Spring project nature in my project. What I did remove and then again add Spring Project Nature solved my problem
1

For me it was resolved by disabling Maven Workspace Resolution. Most of these kind of minor issues were caused because of enabling Maven Workspace Resolution.

Id suggest to do yourself a favor by disabling it.

Comments

0

I had the same problem. I resolved this issue deleting this mapping in the spring config-file. The class didn't exist, but the mapping remained. The mapping was old. Delete the old mapping in the spring config-file and spring will work.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.