2

I have upgraded my application from Grails 2 to 3 and have a problem with unhandled exceptions that I didn't get before.

In UrlMappings I have listed some urls and where to redirect, but if I would misspell a name I get an unhandled exception.

"/page" (controller: 'page', action: 'getPage')
"/" ( view: 'index' )   
"500" (view:'/error')

So if I would go to myHomePage/ I would redirect to index, but if I would go to myHomePage/pages I would get "OOPS! an unhandled exception occurred". In Grails 2 I would get a not found (404).

Anyone who have a suggesstion or know how to fix this?

madde
  • 89
  • 1
  • 7

1 Answers1

0

Try this in application.yml

grails:
    web:
        servlet:
            path: /*

Based on the answer to this question: grails 3 war in JBoss EAP 6.2.0 does not work

Community
  • 1
  • 1
DAC
  • 707
  • 1
  • 6
  • 20