Weblogic: Grails index.gsp not found
If you try to deploy a Grails application to Weblogic and try to go to “/” in the app you will get the message: “/index.gsp” not found.
This definitely affects Weblogic 9. and 10.x. I am unsure if it is a problem with later versions. The fix is a simple addition to the UrlMappings.groovy file. Add the line:
"/index.gsp"(view:"/index")
So that it looks like this:
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/"(view:"/index")
"500"(view:'/error')
"/index.gsp"(view:"/index")
}
}
See: GRAILS-8767