Logging in Grails
Posted by pebuchmann on 11 Jun 2010 | Tagged as: Software Development
Tutorial about logging in Grails
Posted by pebuchmann on 11 Jun 2010 | Tagged as: Software Development
Tutorial about logging in Grails
Posted by pebuchmann_super on 05 Jul 2009 | Tagged as: Software Development
I have been wondering all along how it is possible to call a method that is not defined anywhere in that class and get something reasonable done, e.g. the method on the Cairngorm delegate that conducts the call to the server. After playing around with Grails I became aware of the fact that this mechanism [...]
Posted by pebuchmann_super on 11 Jun 2009 | Tagged as: Software Development
When deploying a new version of my application (actually I started an entire project from scratch) I continuously bounced my head against this “You don’t have the permission…” exception. I finally added the following lines to my Configuration/config.groovy file: google.appengine.application=”myproject” google.appengine.email=”myname@gmail.com” google.appengine.password=”XXX” where myproject is the part that appears in the url, like myproject.appspot.com.
Posted by pebuchmann_super on 08 Jun 2009 | Tagged as: Software Development
Here are the directions for a patch in a great Screencast by Tomás Lin that makes authentication work in a Grails Application on Google’s App-Engine: google.appengine.sessionEnabled = true // default true google.appengine.enableSsl = true // default true google.appengine.security.useHttps = ["/secure", "/shoppingcart/*", "/admin"] google.appengine.security.requireAdmin = ["/admin", "/notsecuredadmin"] google.appengine.security.requireLogin = ["/admin", "/", "/yabbadabbadoo"] Don’t forget to apply [...]
Posted by pebuchmann_super on 07 Jun 2009 | Tagged as: Software Development
A blog entry about running grails on Google’s App Engine. Among other things the methods that are provided by the App-Engine plugin are listed. The added domain class MetaClass methods are: save get delete findAll withTransaction withPersistenceManager (to execute code with access to the PersistenceManager) isJdoPersistent, isJdoDeleted, isJdoDetached, isJdoDirty, isJdoNew, isJdoTransactional, getJdoTransactionalObjectId, getJdoVersion, getJdoObjectId, and [...]
Posted by pebuchmann_super on 06 Jun 2009 | Tagged as: Software Development
When using the above script the compiler apparently cannot find the Key class for the Google Data Store. A workaround is to simply add the following jar directly to the Classpath: $APPENGINE_HOM/lib/user/appengine-api-1.0-sdk-1.2.1.jar