[英]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.