java - Spring security error occured processing XML -
i have error :
error occured processing xml org.springframework.beans.factory.support.beandefinitionbuilder.setsource(ljava/lang/object;)lorg/springframework/beans/factory/support/beandefinitionbuilder;'. see error log more details
this security.xml:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:security="http://www.springframework.org/schema/security" 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-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"> <!-- déclaration du propertyplaceholderconfigurer --> <!-- déclaration de la datasource --> <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource"> <property name="driverclassname" value="com.mysql.jdbc.driver" /> <property name="url" value="jdbc:mysql://localhost:3306/app_logistique" /> <property name="username" value="root" /> <property name="password" value="root" /> </bean> <security:http> <security:intercept-url pattern="/login.jsp*" filters="none"/> <security:intercept-url pattern="/logo*" filters="none"/> <security:intercept-url pattern="/objis.css" filters="none"/> <security:intercept-url pattern="/**" access="role_participant,role_formateur,role_maintenance,role_commercial"/> <security:intercept-url pattern="/index.jsp" access="role_commercial"/> <security:form-login login-page='/login.jsp'/> </security:http> <security:authentication-provider user-service-ref='myuserdetailsservice' /> <bean id="myuserdetailsservice" class="org.springframework.security.userdetails.jdbc.jdbcdaoimpl"> <property name="datasource" ref="datasource"/> <property name="usersbyusernamequery" value="select username, password, enabled users username = ?"/> <property name="authoritiesbyusernamequery" value="select username, authority authorities username = ?"/> </bean> </beans>
Comments
Post a Comment