Spring MVC_Erro no servlet-context.xml

1 resposta
fabiorodrigo.puc

Boa Noite Galera,

Acabei de criar um projeto web usando o framework Spring MVC, mas estou com problemas no arquivo Servlet-Context.xml.
Ele exibe o seguinte erro: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found

Servlet-Context.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
	
	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven />

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**" location="/resources/" />

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
	<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix" value="/WEB-INF/views/" />
		<beans:property name="suffix" value=".jsp" />
	</beans:bean>
	
	<context:component-scan base-package="br.com.medsoft" />
	
	
	
</beans:beans>

1 Resposta

WRYEL

fabiorodrigo.puc:
Boa Noite Galera,

Class ‘org.springframework.web.servlet.view.InternalResourceViewResolver’ not found

O erro é claro, não encontrou a classe especificada. Não lembro em qual jar fica, mas, acredito em em uma dessas duas:

fonte: http://www.vaannila.com/spring/spring-mvc-tutorial-1.html

[]'s

Criado 30 de março de 2012
Ultima resposta 2 de abr. de 2012
Respostas 1
Participantes 2