Announcement Announcement Module
Collapse
No announcement yet.
MethodSecurityInterceptor dependency on AspectJ in spring security 2.0.5 Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MethodSecurityInterceptor dependency on AspectJ in spring security 2.0.5

    Hi
    During migration from spring framework 2.0 and Acegi 1.0 to spring 2.5 and spring security 2.0.5 i have encountered the following Exception, when starting server.

    Code:
    java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
    	at org.springframework.security.intercept.method.MethodDefinitionSourceEditor.setAsText(MethodDefinitionSourceEditor.java:72)
    	at org.springframework.beans.TypeConverterDelegate.convertValue(TypeConverterDelegate.java:269)
    	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:190)
    	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:139)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:771)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:604)
    here is my definition of interceptor
    Code:
    <bean id="methodSecurityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
    		<property name="authenticationManager">
    			<ref local="authenticationManager"/>
    		</property>
    		<property name="accessDecisionManager">
    			<ref local="accessDecisionManager"/>
    		</property>
    		<property name="objectDefinitionSource">
    			   <value>com.something.ServiceStub.*=PERM_BLABLA</value>
    		</property>
    	</bean>
    As far as I have seen in other posts this issue should be resolved in spring security 3.0.0 M1, but i don't won't to upgrade to milestone version.
    How can i overcome this problem ?

    thanks in advance
    Last edited by dpolonsky; Jul 26th, 2009, 07:49 AM.

  • #2
    Originally posted by dpolonsky View Post
    How can i overcome this problem ?
    It's just a ClassNotFoundException so if you add the aspectj jar it will go away. 3.0 shouldn't be any different.

    Comment


    • #3
      Thanks !
      yep it was all about jar. I end up adding only aspectjrt.jar, as it he is the one that has the signature class and its only 114 kb vs 12 mb

      Comment

      Working...
      X