Yeah, after stuffing around a little more I realised it's something to do with the authentication call I'm making.
I get the error in my JUnit test but not when I deploy the app. I'm trying to authenticate using: ProviderManager providerManager = (ProviderManager) applicationContext.getBean("authenticationManager"); providerManager.authenticate(new TestingAuthenticationToken("dan", "blahblah", new GrantedAuthority[] { new GrantedAuthorityImpl("ROLE_BLOGGER") } )); Using the TestingAuthenticationProvider and the deployed version uses a DaoAuthenticationProvider. On Fri, 23 Jul 2004 22:11:06 -0700, March, Andres <[EMAIL PROTECTED]> wrote: > Could you be more specific about how you are authenticating the Subject? > Which provider are you using? > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > Of > > Daniel Washusen > > Sent: Friday, July 23, 2004 9:00 PM > > To: [EMAIL PROTECTED] > > Subject: [Acegisecurity-developer] A valid SecureContext was not > provided > > in the RequestContext > > > > Hi All, > > I'm attempting to use the MethodSecurityInterceptor to pretect method > > calls on a specific class. When I try and invoke my method a > > AuthenticationCredentialsNotFoundException exception is thrown with a > > message of "A valid SecureContext was not provided in the > > RequestContext". I've taken a look at the code that throws the > > exception and it looks like the ContextHolder.getContext() call > > returns null. > > > > Can anyone point me in the right direction? > > > > Cheers, > > Dan > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > Acegisecurity-developer mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idG21&alloc_id040&op=click > _______________________________________________ > Acegisecurity-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Acegisecurity-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer