Configuration problem: spring-security-web classes are not available. You need ...
I'm working with STS 2.6.1 and Spring security 3.1.0 RC2
Here my spring security config:
In the line <security:http> above, STS writes the error "Configuration problem: spring-security-web classes are not available. You need these to use <http>".
<?xml version="1.0" encoding="UTF-8"?>
secured-annotations="enabled" jsr250-annotations="enabled" />
<security:anonymous enabled="false" />
<security:user name="dd" authorities="ROLE_USER" />
I'm sure all the spring security jar libraries are available (all the other XML security tags work fine) and located in WEB-INF/lib directory. Refresh project, clean project already done. Could you please help me?
I have the same issue at design time, but it works for me at runtime
I get the same error at design time in the context xml file.
I think this is because of spring security 3.1, as another project where I used 3.0 did not have this issue.
I am using STS 2.8.0
Got it to work eventually
Initially I thought I had an issue with spring security 3.1, but actually it was because I was importing too many dependencies using maven.
Importing just a few required spring jars, cleaning and rebuilding the project solved the issue, and I no longer get the error in my application context xml file