简体   繁体   English

spring gwt找不到元素'beans'的声明

[英]spring gwt Cannot find the declaration of element 'beans'

When i try to start , i got exception 当我尝试启动时,出现异常

<beans:beans xmlns="http://www.springframework.org/schema/security"
             xmlns:context="http://www.springframework.org/schema/context"
             xmlns:beans="http://www.springframework.org/schema/beans" 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-4.2.1.xsd
                        http://www.springframework.org/schema/security
                        http://www.springframework.org/schema/security/spring-security-3.2.4.xsd
                        http://www.springframework.org/schema/context
                        http://www.springframework.org/schema/context/spring-context-4.2.1.xsd"
        >


    <http auto-config="true">
        <intercept-url pattern="/securegwt/**" access="ROLE_USER" />
        <intercept-url pattern="/gwt/**" access="ROLE_USER" />
        <intercept-url pattern="/**/*.html" access="ROLE_USER" />
        <intercept-url pattern="/BuyerSide.html" access="IS_AUTHENTICATED_ANONYMOUSLY" />
    </http>

    <beans:bean id="customAuthenticationProvider"
                class="project.server.security.CustomAuthenticationProvider" />

    <authentication-manager alias="authenticationManager">
        <authentication-provider ref="customAuthenticationProvider" />
    </authentication-manager>

    <context:component-scan base-package="project"/>

</beans:beans>

Failed startup of context
> c.g.g.d.s.j.WebAppContextWithReload{/,file:/C:/Users/Denis/.IntelliJIdea14/system/gwt/NProject.b3f6e62/NProject.479fd482/run/www/},C:\Users\Denis\.IntelliJIdea14\system\gwt\NProject.b3f6e62\NProject.479fd482\run\www
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 9 in XML document from ServletContext resource
> [/WEB-INF/applicationContext.xml] is invalid; nested exception is
> org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 76;
> cvc-elt.1: Cannot find the declaration of element 'beans'.

Your XML header is referencing some invalid XSDs. 您的XML标头引用了一些无效的XSD。 Change this: 更改此:

xsi:schemaLocation="
                    http://www.springframework.org/schema/beans
                    http://www.springframework.org/schema/beans/spring-beans-4.2.1.xsd
                    http://www.springframework.org/schema/security
                    http://www.springframework.org/schema/security/spring-security-3.2.4.xsd
                    http://www.springframework.org/schema/context
                    http://www.springframework.org/schema/context/spring-context-4.2.1.xsd"

to this: 对此:

xsi:schemaLocation="
                    http://www.springframework.org/schema/beans
                    http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
                    http://www.springframework.org/schema/security
                    http://www.springframework.org/schema/security/spring-security-3.2.xsd
                    http://www.springframework.org/schema/context
                    http://www.springframework.org/schema/context/spring-context-4.2.xsd"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到元素&#39;beans&#39;的声明。 在春天 - Cannot find the declaration of element 'beans'. in spring 找不到元素&#39;beans&#39;的声明。 - Cannot find the declaration of element 'beans'. 找不到元素“beans”的声明 - Cannot find the declaration of element 'beans' 上下文初始化失败(找不到元素&#39;beans&#39;的声明)-Spring MVC - Context initialization failed (Cannot find the declaration of element 'beans') - Spring MVC ikvm java春季问题:找不到元素&#39;beans&#39;的声明。 - ikvm java spring issue: Cannot find the declaration of element 'beans'. Spring:-cvc-elt.1:找不到元素“ beans”的声明 - Spring :- cvc-elt.1: Cannot find the declaration of element 'beans' javax.servlet.ServletException:Servlet的Servlet.init()引发异常,并且找不到元素&#39;beans&#39;的声明 - javax.servlet.ServletException: Servlet.init() for servlet spring threw exception & Cannot find the declaration of element 'beans' 在Spring应用程序中遇到错误:cvc-elt.1:找不到元素&#39;beans&#39;的声明 - Getting an error in spring application: cvc-elt.1: Cannot find the declaration of element 'beans' Spring cvc-elt.1:找不到元素&#39;beans&#39;的声明和类似的问题 - Spring cvc-elt.1: Cannot find the declaration of element 'beans' and similar problems 使用spring获取错误消息“cvc-elt.1:找不到元素'beans'的声明。” - Getting error message with spring “cvc-elt.1: Cannot find the declaration of element 'beans'.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM