Weird Grails Deployment Problem — MissingMethodException yada yada
We host Remotespots on a Tomcat 6 server on eapps. As we changed the UI design, we deployed a new version of it yesterday, but the scaffold views seems broken with the following error:
Error 500: Executing action [list] of controller [app.InvitationCodeController] caused exception: groovy.lang.MissingMethodException: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]] Servlet: grails URI: /app/grails/invitationCode/list.dispatch Exception Message: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]] Caused by: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]] Class: script12814638559751136092009 At Line: [13]
With the Stack Trace:
groovy.lang.MissingMethodException: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]] at app.InvitationCodeController$_closure2.doCall(script12814638559751136092009.groovy:13) at app.InvitationCodeController$_closure2.doCall(script12814638559751136092009.groovy) at org.apache.shiro.web.servlet.ShiroFilter.executeChain(ShiroFilter.java:687) at org.apache.shiro.web.servlet.ShiroFilter.doFilterInternal(ShiroFilter.java:616) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at java.lang.Thread.run(Thread.java:619)
Although it runs on the local server grails run-app, the same problem occurs with grails run-war, and also on the Tomcat 6 on eapps. So after a little Googling, here is the magical solution:
grails clean
This solves the problem
These are the links that can help:
One Comment
→






Worked for me too. Thanks for the tip!