Hello,
Here are the steps i followed
1. created a web project
2. scaffold spring crud application (derby database)
Every thing worked fine (Ran the application on server worked perfect!)
Later decided to add spring security
3. Scaffold Spring security and then got the error in the generated code
SpringSecurityTest-generated-security-context.xml
Error:
spring-security-web classes are not available. You need these to use <filter-chain-map>
SpringSecurityTest-generated-security-context.xml /SpringSecurityTest/resources line 18 Spring Beans Problem
Here is the piece of code that is generated
18<http auto-config=”true” >
19 <intercept-url pattern=’/pages/login.jsp’ filters=’none’/>
20 <intercept-url pattern=”/*” access=”IS_AUTHENTICATED_REMEMBERED” />
21 <form-login login-page=”/pages/login.jsp” authentication-failure-url=”/pages/login.jsp?login_error=true” />
22 <logout logout-success-url=”/pages/logout-redirect.jsp” invalidate-session=”true” />
23 <remember-me key=”SpringSecurityTestRMKey” user-service-ref=”userDetailsService” />
24 </http>
Note: But when i run the application its working fine (but curios about the error I googled the error and found that I have to add the following in manifest
Import-Library: org.springframework.spring;version=”[3.0.0.RELEASE,3.0.2.RELEASE]”
Adding this in the manifest did not solved my problem, can any one please help me