Home

Third time it's a charm

Migration from Acegi to Spring Security

Once upon a time there was Acegi...moving forward to OSGi ready spring-security is as easy as:

  1. Add Spring-Security and Spring libraries to your Eclipse target platform
  2. Delete the Acegi libraries and add entries in the OSGi bundle MANIFEST.MF
  3. Delete the Spring libraries and add entries in the OSGi bundle MANIFEST.MF
  4. Require-Bundle: 
    org.springframework.context,
    org.springframework.core,
    org.springframework.beans,
    org.springframework.context,
    org.springframework.context.support,
    org.springframework.security,
    org.springframework.security.taglibs,
    org.springframework.web,
    org.springframework.web.servlet,
    org.springframework.transaction
  5. Run an Eclipse organize imports CTRL+SHIFT+O
  6. Replace org.acegi in Spring configuration files with org.springframework.security
That's it. The embedded libraries in the monolithic war have been replaced with OSGi bundles.



Add a comment