Update :Now Working properly. Kindly follow the comments.
This is my Spring configuration file:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
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.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
">
<context:component-scan base-package="report.frontcontroller"/>
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:annotation-driven />
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix"> <value>/WEB-INF/</value></property>
<property name="suffix"> <value>.jsp</value></property>
</bean>
</beans>
All jars are included in this project, and the configuration file is shown above. I get errors for this part:
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:annotation-driven />
Errors: * Matching wildcard is strict but no declaration is found for
mvc:resource
andmvc:annotation
* Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/mvc/spring- mvc-3.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . Multiple annotations found at this line:* - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'. - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/mvc/spring- mvc.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .