Results 1 to 2 of 2

Thread: cvc-elt.1: Cannot find the declaration of element 'beans'.

  1. #1
    Join Date
    Jun 2012
    Posts
    3

    Default cvc-elt.1: Cannot find the declaration of element 'beans'.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <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"
    	xsi:schemalocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.1.xsd">
    	<context:annotation-config />
    	<context:component-scan base-package="com.cuy.recipe.controllers" />
    	<bean
    		class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
    	<bean
    		class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
    	<bean
    		class="org.springframework.web.servlet.view.InternalResourceViewResolver"
    		name="viewResolver">
    		<property name="viewClass"
    			value="org.springframework.web.servlet.view.JstlView" />
    		<property name="prefix" value="/WEB-INF/pages/" />
    		<property name="suffix" value=".jsp" />
    	
    
    
    	</bean>
    </beans>
    Last edited by Tommac; Jun 30th, 2012 at 12:41 PM.

  2. #2
    Join Date
    Jun 2012
    Posts
    3

    Default I think this is because I am using 3.2 jars ... how do I link in the 3.2 schema?

    I think this is because I am using 3.2 jars ... how do I link in the 3.2 schema?

    Quote Originally Posted by Tommac View Post
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <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"
    	xsi:schemalocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.1.xsd">
    	<context:annotation-config />
    	<context:component-scan base-package="com.cuy.recipe.controllers" />
    	<bean
    		class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
    	<bean
    		class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
    	<bean
    		class="org.springframework.web.servlet.view.InternalResourceViewResolver"
    		name="viewResolver">
    		<property name="viewClass"
    			value="org.springframework.web.servlet.view.JstlView" />
    		<property name="prefix" value="/WEB-INF/pages/" />
    		<property name="suffix" value=".jsp" />
    	
    
    
    	</bean>
    </beans>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •