Deploying Grails to GlassFish

ALT DESCR

The standard development command for Grails, "grails run-app" will use an embedded Jetty (also see the NetBeans Quickstart) but the standard arrangement for deployment is to create a WAR via "grails war" and then deploy the WAR in your favorite container.

The Grails Deployment Page has a full list of supported containers, including GlassFish v2 and v3. The combination works very well; actually, one of the earliest references to the GlassFish+Grails combo was from Glen Smith, the author of Grails in Action and a quick look at the Grails USERS mailing list shows GlassFish as the 3rd more popular container, after Jetty and Tomcat, but there are some unwanted interactions between the logging frameworks used by Grails and those included in GlassFish.

Fortunately, a few weeks ago Reiner Saddey wrote about how to deploy Grails Applications on containers while using Native Logging. He later provided Specific Instructions for JBoss and now has added the Instructions for GlassFish . It all boils to adding and removing adaptors between Log4J and JSR-47; life would be simpler if we had a single, standard, widely adopted Java Logging Framework...

Earlier entries on Grails are tagged Grails.

Comments:

Did you mean Grails in Action as in http://www.manning.com/dallen/?

Posted by guest on March 31, 2010 at 07:26 PM PDT #

Oops, no I meant Glen, but the title of the book is \*Grails\* in Action. Corrected. Thanks, - eduard/o

Posted by Eduardo Pelegri-Llopart on April 01, 2010 at 12:13 AM PDT #

Post a Comment:
Comments are closed for this entry.