简体   繁体   中英

Tomcat 403 error calling '/' in Grails app

This must be a very simple issue but I can't work it out. I've deployed a Grails 2.2.5 application, which has been working successfully under Tomcat 6, to Tomcat 7, and everything works fine except for the root URL, which gives a 403 error. Eg, '/myapp/booking/list' works just fine, but '/myapp/' gives the error. There have been no changes in the code or configuration from the web application which is working 100% OK on Tomcat 6. I'm a bit puzzled.

As ever, turned out to be a bit of stupidity on my part. On looking into the code again, I realised that I was actually calling an action in a HomeController.groovy, which checked for a specific string in the host and returned a 403 if it didn't find it. Duh!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM