Results 1 to 4 of 4

Thread: A substitue for org.springframework.security.annotation.SecuredMet hodDefinitionSource

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    14

    Default 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. #2
    Join Date
    Nov 2007
    Posts
    14

    Default

    Quote 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.

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #4
    Join Date
    Nov 2007
    Posts
    14

    Default

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •