<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2132782353872423143</id><updated>2011-11-27T15:46:21.588-08:00</updated><title type='text'>Grails Tips!</title><subtitle type='html'>A site with home cooked tipe for Grails / Groovy  users.

These are mostly what I found out through trial and error, googling and discussing with developers.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2132782353872423143.post-2585543075996131368</id><published>2009-01-15T02:03:00.000-08:00</published><updated>2009-01-15T02:06:44.863-08:00</updated><title type='text'>FLOSS Support in Sri Lanka</title><content type='html'>&lt;ul&gt;&lt;li&gt;The Linux Center - &lt;cite&gt;http://thelinuxcenter.lk/&lt;/cite&gt;&lt;/li&gt;&lt;li&gt;Ceylon Linux - http://www.ceylonlinux.com/&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Fossmart - http://www.fossmart.net/&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2132782353872423143-2585543075996131368?l=grailstips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/2585543075996131368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://grailstips.blogspot.com/2009/01/floss-support-in-sri-lanka.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/2585543075996131368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/2585543075996131368'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/2009/01/floss-support-in-sri-lanka.html' title='FLOSS Support in Sri Lanka'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2132782353872423143.post-7783924498728958010</id><published>2008-12-29T20:44:00.000-08:00</published><updated>2008-12-29T20:53:17.052-08:00</updated><title type='text'>Ultra Lightweight IDE to edit Groovy/GSP</title><content type='html'>This is what it looks like.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XThHJOc8NjU/SVmoOZlzL2I/AAAAAAAAE8I/nt0-lvdUV10/s1600-h/Screenshot-ItemController.groovy+%28-sandbox-NetBeansProjects-crop-trunc-Cultivations-grails-app-controllers%29+-+gedit.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 252px;" src="http://4.bp.blogspot.com/_XThHJOc8NjU/SVmoOZlzL2I/AAAAAAAAE8I/nt0-lvdUV10/s320/Screenshot-ItemController.groovy+%28-sandbox-NetBeansProjects-crop-trunc-Cultivations-grails-app-controllers%29+-+gedit.png" alt="" id="BLOGGER_PHOTO_ID_5285440603037052770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Tired of bulky IDE's draining out your computer.&lt;br /&gt;&lt;br /&gt;Gedit can turn out to be a lovely IDE with the bare essentials we need.&lt;br /&gt;(Basically syntax highlighting and the file browser pane)&lt;br /&gt;&lt;br /&gt;Here's what I configured.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Groovy/GSP syntax highlighting for Gedit.&lt;/li&gt;&lt;/ul&gt;An excellent tutorial explains this at http://noor.ojuba.org/2008/06/gedit-with-groovy/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Enable the File Browser Plugin in Gedit in Preferences&gt;Plugins&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Heres a screen shot of what it all looks like.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This plus the usual grails commands&lt;br /&gt;as per&lt;br /&gt;&lt;br /&gt;http://grails.org/Quick+Start&lt;br /&gt;&lt;br /&gt;make developing grails apps a breeze even on lower end PC's.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2132782353872423143-7783924498728958010?l=grailstips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/7783924498728958010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://grailstips.blogspot.com/2008/12/ultra-lightweight-ide-to-edit-groovygsp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/7783924498728958010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/7783924498728958010'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/2008/12/ultra-lightweight-ide-to-edit-groovygsp.html' title='Ultra Lightweight IDE to edit Groovy/GSP'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_XThHJOc8NjU/SVmoOZlzL2I/AAAAAAAAE8I/nt0-lvdUV10/s72-c/Screenshot-ItemController.groovy+%28-sandbox-NetBeansProjects-crop-trunc-Cultivations-grails-app-controllers%29+-+gedit.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2132782353872423143.post-1306776659860020161</id><published>2008-12-28T19:46:00.000-08:00</published><updated>2008-12-30T03:13:10.071-08:00</updated><title type='text'>Tomcat Out Of Memory</title><content type='html'>Tomcat keeps running out of memory with jasperserver and a grails app.&lt;br /&gt;&lt;br /&gt;Increasing the memory as per http://grails.org/FAQ#Application%20Servers&lt;br /&gt;increasing the memory seems to help.&lt;br /&gt;&lt;br /&gt;Added the following line to the top of my catalina.sh&lt;br /&gt;&lt;br /&gt;export JAVA_OPTS="-Xms512M -Xmx512M -XX:MaxPermSize=1024m"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Apparently MaxPermSize is seperate from the -xMx heap setting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://wiki.caucho.com/-XX:MaxPermSize&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2132782353872423143-1306776659860020161?l=grailstips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/1306776659860020161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://grailstips.blogspot.com/2008/12/tomcat-out-of-memory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/1306776659860020161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/1306776659860020161'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/2008/12/tomcat-out-of-memory.html' title='Tomcat Out Of Memory'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2132782353872423143.post-8999049902441344047</id><published>2008-12-11T00:50:00.000-08:00</published><updated>2008-12-11T00:51:40.407-08:00</updated><title type='text'>Grails - Acegi - Set a custom after Logout page</title><content type='html'>Crate a new action with the following code and set it as the action for your logout button.&lt;br /&gt;&lt;br /&gt;(in this example the after logout paage is itemPrice/listDOA)&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;import javax.servlet.http.HttpSession&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;class LogoutController {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;action {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; HttpSession s = request.getSession()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        s.invalidate()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        redirect(controller:"itemPrice", action:"listDOA") // this is the new after&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2132782353872423143-8999049902441344047?l=grailstips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/8999049902441344047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://grailstips.blogspot.com/2008/12/grails-acegi-set-custom-after-logout.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/8999049902441344047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/8999049902441344047'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/2008/12/grails-acegi-set-custom-after-logout.html' title='Grails - Acegi - Set a custom after Logout page'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2132782353872423143.post-3551986035402217701</id><published>2008-12-11T00:41:00.001-08:00</published><updated>2008-12-11T00:49:42.570-08:00</updated><title type='text'>Charts in Jasper Reports with the Grails Jasper Plugin</title><content type='html'>Including jasper reports in your grails application is trivial with the &lt;a href="http://www.grails.org/Jasper+Plugin"&gt;jasper grails plugin.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However, if you need to include a 'chart' in your jasper report, grails complains about a missing jfreechart lbrary ...&lt;br /&gt;&lt;br /&gt; I get the error,&lt;br /&gt;----------------------------&lt;br /&gt;Grails Runtime Exception&lt;br /&gt;Error Details&lt;br /&gt;Message: org/jfree/chart/plot/&lt;div id=":1ny" class="ArwC7c ckChnd"&gt;&lt;wbr&gt;PlotOrientation&lt;br /&gt;Caused by: java.lang.&lt;wbr&gt;NoClassDefFoundError: org/jfree/chart/plot/&lt;wbr&gt;PlotOrientation&lt;br /&gt;Class: JasperService&lt;br /&gt;At Line: [92]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This is because it can't find the jfreechart library required by jasper reports to create the chart.&lt;br /&gt;&lt;br /&gt;The following solution worked for me.&lt;br /&gt;&lt;br /&gt;Obtain jfreecharts from&lt;br /&gt;&lt;br /&gt;http://www.jfree.org/&lt;br /&gt;&lt;br /&gt;and the copy the following lib files found in the doanloaded jfreecharts archive'slib dir to the grails  lib dir.&lt;br /&gt;&lt;br /&gt;jcommon-1.0.14.jar  jfreechart-1.0.11.jar&lt;br /&gt;&lt;br /&gt;(i got the latest versions and it works with grails 1.0.3 )&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2132782353872423143-3551986035402217701?l=grailstips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://grailstips.blogspot.com/feeds/3551986035402217701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://grailstips.blogspot.com/2008/12/charts-in-jasper-reports-with-grails.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/3551986035402217701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2132782353872423143/posts/default/3551986035402217701'/><link rel='alternate' type='text/html' href='http://grailstips.blogspot.com/2008/12/charts-in-jasper-reports-with-grails.html' title='Charts in Jasper Reports with the Grails Jasper Plugin'/><author><name>srimal</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_XThHJOc8NjU/SUDXuD1e6uI/AAAAAAAADbQ/Z_sc8xRhrtQ/S220/profile.jpg'/></author><thr:total>3</thr:total></entry></feed>
