Announcement Announcement Module
Collapse
No announcement yet.
problem with SecurityNamespaceHandler Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with SecurityNamespaceHandler

    hi,

    i m trying to upgrade my old app with spring security 3.1.RELEASE, but got bunch of problems, here is the one i cannot resolve:

    nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.security.config.SecurityNamesp aceHandler] for namespace [http://www.springframework.org/schema/security] does not implement the [org.springframework.beans.factory.xml.NamespaceHan dler] interface:
    org.springframework.beans.FatalBeanException: Class [org.springframework.security.config.SecurityNamesp aceHandler] for namespace [http://www.springframework.org/schema/security] does not implement the [org.springframework.beans.factory.xml.NamespaceHan dler] interface

    i used to use spring security 2.0.5.RELEASE and spring 2.5.6.SEC01, i checked my pom.xml, all spring related jar are updated to 3.1.0.RELEASE, and my security.xml is simple as the following:

    <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/schem...-beans-3.1.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-3.1.xsd">
    <security:http auto-config='true'>
    <security:intercept-url pattern="/**" access="ROLE_USER" />
    </security:http>
    </beans>

    anyone can tell me what's wrong? Thanks!

  • #2
    Please use code tags. I suggest you check your full class path and also the server. I suspect there is either an old jar somewhere or a duplicate jar which is loaded by a different class loader (class identity is determined by classname and class loader, same class in different class loaders leads to class cast exceptions!).

    Comment

    Working...
    X