I am having this error in my grails log:
Error | ERROR mapping.DefaultUrlMappingEvaluator$UrlMappingBuilder - URL mapping argument [exception] with value [(*)] must be a valid class
It is not stopping the application, but I would like to know why is happening. I have detected that is because the URLMapping.groovy:
"500"(controller:"securator", action:"error500", exception:InternalServerErrorException)
"401"(controller:"securator", action:"error401", exception:IllegalAccessException)
"403"(controller:"securator", action:"error403", exception:AccessDeniedException)
If I remove the last exception, the error disappear:
, exception:AccessDeniedException
Anyone has any ideas?, how can I use a valid class (I thought that AccessDeniedException was a valid class)?
Thanks in advance.
I finally resolved, I change the exception to ForbiddenException. It looks good and no error thrown.