Results 1 to 2 of 2

Thread: No context set in the ContextHolder before evaluating it

  1. #1
    Join Date
    Jan 2005
    Location
    Zurich
    Posts
    5

    Default No context set in the ContextHolder before evaluating it

    Hi Spring/Acegi-ies,

    I've just entered this forum, after I tried hard to understand my silly problem myself. Hope I don't steal too much of your time.
    I tried this simple introduction example to integrate Acegi (think it was Matt Raible who wrote it?) with Tomcat 5.0.28. I failed to make it work, of course.

    I dug down to find the following:
    AbstractSecurityInterceptor throws exception because ContextHolder.getContext() is null at line 280. I understand this. But I fail to understand where this should have been set before. It was the FilterSecurityInterceptor that intercepted the call, and no call to setContext was logged prior to it. My question that isn't quite answered by the refdoc: Where exactly is the first instance of the context to be created in the simple web filter scenario?

    I'd be happy about general remarks, too. I really try to understand this.

    Yeah, and you're right: Spring rocks!
    Smurve

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Line 280 of AbstractSecurityInterceptor in CVS doesn't throw an exception. Perhaps you could try the latest CVS, just so we can talk the same line numbers? There are CVS and building instructions at http://acegisecurity.sourceforge.net

    In terms of general comments, your AuthenticationProcessingFilter is where the SecureContext is first created. This is created in response to the AuthenticationProcessingFilterEntryPoint being called, which is called by SecurityEnforcementFilter. So it would seem your configuration isn't quite right. Could you post a copy of your configuration?

Similar Threads

  1. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  2. after login redirects incorrectly
    By ryan.tyer in forum Security
    Replies: 1
    Last Post: Oct 10th, 2005, 05:16 PM
  3. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  4. ContextHolder and Context Questions
    By eisenb in forum Security
    Replies: 2
    Last Post: Dec 20th, 2004, 08:51 AM
  5. Replies: 8
    Last Post: Dec 7th, 2004, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •