Class 'org.springframework.http.converter.ResourceHttpMessageConverter' not found - how to correct?
- by Ash Kim
Eclipse STS is reporting I have problem with my spring project.
It's a fresh project generated from the Spring Web MVC Project Template (File-New-Spring Template Project-Spring Web MVC ).
When I create the project it has no problems - it's only once I modify the pom (by adding the hibernate dependencies) that STS then picks up the spring problem.
Strangely if I revert the pom the problem remains.
Also I can run the project on a spring tc server and all works correctly.
Any ideas how I can satisfy this problem report?
"Class
'org.springframework.http.converter.ResourceHttpMessageConverter'
not found"
mvc-config.xml /src/main/webapp/WEB-INF/spring line
9 Spring Beans Problem
mvc-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<mvc:annotation-driven /> <!-- <= PROBLEMATIC LINE REPORTED BY STS -->
<!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans>