groovy - Default Grails '/' controller mapping not resolving properly -
this 1 has been driving me crazy today. since upgrading grails 1.2 , weblogic 10.3 default root mapping "/" stopped working. here's have...
i have url mapping:
"/"(controller:"igive", action:"index" )
i have controller named igivecontroller index closure
def index = { render "foo" }
when go application running in embedded tomcat , jetty http://localhost:8080/mycontext/ "foo" returned property. when build war , deploy weblogic 10.3 404.
i downgraded grails 1.1.2 , still didn't work on weblogic 10.3 error more descriptive
could not open servletcontext resource [/web-inf/grails-app/views/index.gsp]
so seems it's ignoring url mapping "/" other url mappings deeper working. clues??
i think more related weblogic - seeing same on weblogic 9.2 - not on tomcat or jetty. doesn't hit urlmapping:
"/"(controller: 'home', action: 'index')
i think weblogic being smart , converting / -> index.gsp comes 404.
there ugly workaround - add mapping this:
"/index.gsp"(controller: 'home', action: 'index')
and seems trick. have better way fix this???
Comments
Post a Comment