I'm totally a noob and i'm trying to follow a Spring beginners guide. In the dispatcher servlet declaration (named DefaulServlet) i get this error: cvc-complex-type.2.4.c: matching wildcard is strict but no declaration can be found for element context component scan.
The code in the xml file is
<?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"
xmlns:context="http://www.spingframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd">
<mvc:annotation-driven />
<context:component-scan base-package="com.packt.webstore" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
</beans>
The maven dependencies in the project are:
spring-webmvc-4.3.3.RELEASE
spring-aop-4.3.3.RELEASE
spring-beans-4.3.3.RELEASE
spring-context-4.3.3.RELEASE
spring-core-4.3.3.RELEASE
commons-logging-1.2
spring-expression-4.3.3.RELEASE
spring-web-4.3.3.RELEASE
jstl-1.2
javax.servlet-api-3.1.0
I'm really stuck here. Please help me.