grails 1.3.6 アプリを 2.2.4 にアップグレードしています。1.3.6 では、アプリは を押すことによってアクセスされlocalhost:8080/APPNAME
ます。これにより、ファイルが でレンダリングされますgrails-app/views/index.gsp
。
アプリを 2.2.4 にアップグレードした後、ヒットlocalhost:8080/APPNAME'
すると次のエラーが返されます。
HTTP Status 404 - "/index.gsp" not found.
.
私の URLMappings ファイルは次のとおりです。
class UrlMappings
{
static mappings =
{
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/"(view:"/index")
//"500"(view:'/error')
"500"(controller: 'pacErrors', action: 'handleErrors')
}
}
URL 呼び出しを介してコントローラーに直接アクセスできるため、サーバーは稼働しているように見えます。