Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9052041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:04:03+00:00 2026-06-16T13:04:03+00:00

I have problem with infinite loop in Grails app when rejectIfNoRule = true I

  • 0

I have problem with infinite loop in Grails app when rejectIfNoRule = true
I try to open home page ‘/’ and I am redirected to ‘/login/auth’ with an error

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many
redirects.

It seems like the source of the problem is located in initialize method in org.codehaus.groovy.grails.plugins.springsecurity.RequestmapFilterInvocationDefinition.java where following exception is silenced.

Exception initializing; this is ok if it's at startup and due to GORM not being initialized yet since the first web request will re-initialize. Error message is "Cannot load Requestmaps, \"requestMap.className\" property is not set

Unfortunately the first request is this one with infinite loop so how can I initialize Requestmap for GORM?

Environment:

  • Groovy Version: 2.0.6
  • Grails 2.2.0
  • JVM: 1.7.0_07 Vendor: Oracle Corporation
  • OS: Linux
  • spring-security-core:1.2.7.3
  • spring-security-ui:0.2

My Config.groovy:

  • grails.plugins.springsecurity.securityConfigType = “Requestmap”
  • grails.plugins.springsecurity.rejectIfNoRule = true

Requestmaps:

new Requestmap(url: '/js/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
new Requestmap(url: '/css/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
new Requestmap(url: '/images/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
new Requestmap(url: '/login/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
new Requestmap(url: '/logout/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
new Requestmap(url: '/', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:04:05+00:00Added an answer on June 16, 2026 at 1:04 pm

    Error message is “Cannot load Requestmaps, \”requestMap.className\” property is not set

    This is the reason for your error – when you’re storing request maps in the database you need an entry in Config.groovy telling the spring security plugin the name of the Requestmap domain class

    grails {
      plugins {
        springsecurity {
          securityConfigType = SecurityConfigType.Requestmap
    
          // fully qualified class name of the Requestmap class
          requestMap.className = 'com.example.Requestmap'
    
          // these next two are the defaults but good to make them explicit anyway
          requestMap.urlField = 'url'
          requestMap.configAttributeField = 'configAttribute'
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem: scriptA.cgi is sitting in an infinite loop and handling an open socket to
I have a problem with jQuery, for some reason, that code makes infinite loop:
I try to solve this question, but I have an infinite loop and don't
I running into an infinite loop problem. I have two numeric up/down controls (Height
I have a problem understanding how the try{} catch(Exception e){...} works! Let's say I
I am trying to use GridStore of mongodb, I have a wierd infinite loop
Can anyone please help. I have a problem where I need to loop through
I have a stored procedure that i thought was caught in an infinite loop,
I am including the facebook login into my web page but I have a
iPhone Development: I want to have an infinite loop constantly checking an NSMutableArray and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.