Probleme avec web.xml (spring security)
leo
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour,
Je voudrai implémenter spring security dans mon application jee, et quand je declare les filtres et le listener spring dans web.xml, l'application ne marche plus!
(j'utilise spring 2 et spring security 3.1.0 RELEASE)
voici web.xml:
application-context.xml:
je reçois l'erreur suivante :
GRAVE: Exception au démarrage du filtre springSecurityFilterChain
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
Je voudrai implémenter spring security dans mon application jee, et quand je declare les filtres et le listener spring dans web.xml, l'application ne marche plus!
(j'utilise spring 2 et spring security 3.1.0 RELEASE)
voici web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:application-context.xml
</param-value>
</context-param>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
application-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
</beans>
je reçois l'erreur suivante :
GRAVE: Exception au démarrage du filtre springSecurityFilterChain
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
A voir également:
- Probleme avec web.xml (spring security)
- Microsoft security essentials - Télécharger - Antivirus & Antimalwares
- Security health systray - Forum Antivirus
- Cube security box - Forum Réseaux sociaux
- Antivirus gratuit norton internet security - Télécharger - Antivirus & Antimalwares
- Désinstaller 360 total security - Forum Antivirus