Announcement Announcement Module
Collapse
No announcement yet.
A substitue for org.springframework.security.annotation.SecuredMet hodDefinitionSource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A substitue for org.springframework.security.annotation.SecuredMet hodDefinitionSource

    Dear spring security experts:

    I'm attempting to migrate our 'legacy' app from using acegi security to spring security 3.1.3.RELEASE without adding any new feature first. I'm hoping all the 'backwards' are still supported.

    After about a week's 'treasures' searching and hard working, i've modified 226 files accordingly and finally have Maven build successfully. I'm using 3.1.3.RELEASE for springs , spring-security-core(acl) , except spring-security-core-tiger-2.0.8.RELEASE, the latest version in the repository .

    The runtime errors at jboss startup :
    "Error loading class [org.springframework.security.annotation.SecuredMet hodDefinitionSource]
    ...
    problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/intercept/method/AbstractFallbackMethodDefinitionSource"

    The error makes a sense to me, because org.springframework.security.annotation.SecuredMet hodDefinitionSource(spring-security-core-tiger-2.0.8.RELEASE) extends AbstractFallbackMethodDefinitionSource, the parent class is no longer available in v3, it's available in v2.

    I'm looking for a substitue for org.springframework.security.annotation.SecuredMet hodDefinitionSource(spring-security-core-tiger-2.0.8.RELEASE) from 3.1.3. Or any better ideas? Thanks. -Julie

  • #2
    Originally posted by Julie Chi View Post
    org.springframework.security.annotation.SecuredMet hodDefinitionSource(spring-security-core-tiger-2.0.8.RELEASE)
    Humm, why there is a white space between "t" and "h" after posted.

    Comment


    • #3
      You shouldn't be using the spring-security-core tiger stuff anymore... Remove it as it is now present as normal support (although the base classes may have been renamed).

      Comment


      • #4
        Originally posted by Marten Deinum View Post
        You shouldn't be using the spring-security-core tiger stuff anymore... Remove it as it is now present as normal support (although the base classes may have been renamed).
        Alright, I removed -tiger from pom. By looking into caller's code(org.springframework.security.access.intercept .aopalliance.MethodSecurityInterceptor), found the injected interface , then try to use the implementation class org.springframework.security.access.annotation.Sec uredAnnotationSecurityMetadataSource. The error is GONE! thanks.

        Comment

        Working...
        X