It’s obviously been a while since I’ve posted, so I wanted to provide an updated. I’ve been inured with too many things that have distracted me from my Rails project for a time, though I hope to return to it soon as I hope it will be profitable for me in more ways than one. I’ve lately been playing with Grails, the need arising at work for a quick and simple blog-like tool to provide status updates via RSS to an existing Java web application.

This exercise has been interesting and helped me see the great similarities between Grails and Rails, as well as some differences. Truthfully I haven’t spent much time with Grails, so I don’t have much to report yet, except that Groovy is and since it compiles to Java bytecode that makes it a lot easier to use at existing Java shops than Rails. On the other hand, for side projects that will live on the Internet on commodity hardware, be it shared or private, Rails is a great framework.

One thing I will make note of in the hope that it will be useful to someone else, is that if you are working with Grails and wanting to deploy a WAR to some servlet container that only implements Servlet Specification 2.3 you can do the following:

grails -Dservlet.version=2.3 war

This requires, I think, at least version 1.0.1 of Grails. I did it with version 1.0.1 and 1.0.3. Of equal or more importance, though, is to set the app.servlet.version property in the application.properties file to 2.3, since that is the value that will actually be used when generating the web.xml for your application (where it really matters).

Unfortunately I ran into other problems (NoSuchMethodError on org.apache.tools.ant.ProjectHelper.getImportStack()) which I have yet to get around. I was deploying to WebLogic 8.1.6 and, so far as I know, the only version of ant in the classpath is the version deployed with the WAR, which is 1.7.0.

I hope to play around with Grails more, preferably on a real project that might start small and grow into something valuable to someone. And I somehow have to find time to get back to my Rails side project.