Dec 19th, 2012, 10:58 AM
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
Dec 19th, 2012, 11:07 AM
Humm, why there is a white space between "t" and "h" after posted.
Originally Posted by Julie Chi
Dec 19th, 2012, 11:38 AM
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).
Dec 19th, 2012, 01:45 PM
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.
Originally Posted by Marten Deinum