Javatpoint Logo

Error CSS Configuration in Spring MVC: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.

By: naveen*** On: Wed Jul 20 12:16:08 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">


<context:component-scan base-package="com.piwania" />

<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass">
<value>
org.springframework.web.servlet.view.tiles2.TilesView
</value>
</property>
</bean>

<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/tiles.xml</value>
</list>
</property>
</bean>



<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:annotation-driven />

</beans>


Error :

SEVERE: Servlet /minku threw load() exception
org.xml.sax.SAXParseException; lineNumber: 31; columnNumber: 69; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.
Up0Down

 
Image Created0Down

By: [email protected] On: Wed Jul 20 12:36:18 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No