Monday, March 9, 2009

Grails HTTPS problem

Today I secured some pages in Grails application using HTTPS. But when I tried to start application with using of a generated key store and SSL certificate for HTTPS:
grails run-app-https
I've got an exception:
Could not execute method PluginManagerHolder.
No such property: PluginManagerHolder for class: RunAppHttps_groovy
And application terminated immediately.
As I discovered later problem lied in RunAppHttps.groovy script which is located under GRAILS_HOME\scripts. You have to add missing import in it:
import org.codehaus.groovy.grails.plugins.PluginManagerHolder

That solved the problem. Enjoy!

No comments:

Post a Comment