Class 'org.springframework.http.converter.ResourceHttpMessageConverter' not found - how to correct?
Posted
by Ash Kim
on Stack Overflow
See other posts from Stack Overflow
or by Ash Kim
Published on 2010-06-09T03:39:52Z
Indexed on
2010/06/09
3:42 UTC
Read the original article
Hit count: 321
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>
© Stack Overflow or respective owner