Hi, I found some other posts about this but they were all for an earlier version and didn’t resolve my issue.
I’m trying to use Spring Security 2.0 in my project but I get the following error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Based on suggestions from the Spring forums, I pulled the spring.handlers and spring.schemas files from the jar and, after each build, copied them into WebRoot/WEB-INF/classes/META-INF.
That just changes the issue to this:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 7 in XML document from ServletContext resource [/WEB-INF/webapp-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘http’.
I’ve looked at the spring-security-2.0.4.xsd file in the jar, which definitely has the ‘http’ declaration. I’ve tried to put it a few places in my project, but the issue won’t go away.
Is there a workaround for this?