Quantcast
Channel: PayMoon贝明实验室
Viewing all articles
Browse latest Browse all 130

spring security使用中的坑

$
0
0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#6' while setting bean property 'sourceList' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#6': Cannot create inner bean '(inner bean)#4ca65751' of type [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter] while setting constructor argument with key [8]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#4ca65751': Cannot resolve reference to bean 'myAuthenticationEntryPoint' while setting bean property 'authenticationEntryPoint'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myAuthenticationEntryPoint' defined in file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.<init>() org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.mybatis.spring.SqlSessionFactoryBean] for bean with name 'sqlSessionFactory' defined in file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/ApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.mybatis.spring.SqlSessionFactoryBean org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 58; The prefix "security" for element "security:filter-chain-map" is not bound. org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 28 in XML document from file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 93; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'bean'. org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 29 in XML document from file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 59; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'constructor-arg'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextPersistenceFilter' defined in file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml]: Cannot resolve reference to bean 'securityContextRepository' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'securityContextRepository' is defined org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 91 in XML document from file [/Users/yol/Documents/apache-tomcat-8.0.30/webapps/itsm-acl/WEB-INF/classes/spring/applicationContext-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 91; columnNumber: 54; Open quote is expected for attribute "class" associated with an element type "b:bean".

Viewing all articles
Browse latest Browse all 130

Trending Articles