Trouble with Tomcat 6 and Spring Security
Spring Security requires privileged access under the Java security manager to function. Tomcat 6, on Ubuntu at least, comes with the security manager enabled and this causes an exception to be thrown when the Spring Security filter is triggered.
Quick hack solution : turn off the Java security manager.
sudo nano /etc/init.d/tomcat6:
TOMCAT6_SECURITY=no (instead of yes)
Better solution : assign the correct privileges via the Java security manager policy files (stored in /etc/tomcat6/policy.d).
Share this Post




