- This topic has 2 replies, 2 voices, and was last updated 16 years ago by Loyal Water.
-
AuthorPosts
-
Cal HolmanParticipantI am having an issue resolving an caution error thrown in validation with the Spring Security schema. Not sure if this is an Eclipse or MyEclipse issue. The application works fine, so Spring is able to resolve the namespace – or does not care. I am using orher Spring namespaces and do not get this error:
“Unable to locate Spring NamespaceHandler for element ‘security:authentication-provider’ of schema namespace ‘http://www.springframework.org/schema/security'”
This error shows up on the security:http element as well
They are only caution alerts.
My 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:security=”http://www.springframework.org/schema/security”
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”><security:authentication-provider>
<security:user-service>
<security:user name=”myuserid” password=”mypassword” authorities=”ROLE_USER, ROLE_ADMIN” />
</security:user-service>
</security:authentication-provider><security:http auto-config=”true” access-denied-page=”/accessDenied.jsp”>
<security:intercept-url pattern=”/login.htm*” filters=”none”/>
<security:intercept-url pattern=”/admin/*” access=”ROLE_ADMIN” />
<security:form-login login-page=”/logon.htm” authentication-failure-url=”/login.jsp?login_error=1″ default-target-url=”/home.htm”/>
<security:logout logout-success-url=”/home.htm”/>
</security:http></beans>
Loyal WaterMemberI would suggest you cross post this query on the Spring forums as well. I’ll check this issue with my dev team till then.
Loyal WaterMemberMoving to Off Topic >> Software Development.
-
AuthorPosts