<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dogan kaya berktas &#187; Grails</title>
	<atom:link href="http://doganberktas.com/tag/grails/feed/" rel="self" type="application/rss+xml" />
	<link>http://doganberktas.com</link>
	<description>is actually from a small planet somewhere in the vicinity of Betelgeuse</description>
	<lastBuildDate>Fri, 03 Sep 2010 14:30:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Weird Grails Deployment Problem &#8212; MissingMethodException yada yada</title>
		<link>http://doganberktas.com/2010/08/11/weird-grails-deployment-problem-missingmethodexception-yada-yada/</link>
		<comments>http://doganberktas.com/2010/08/11/weird-grails-deployment-problem-missingmethodexception-yada-yada/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 23:21:20 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[remotespots]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[eapps]]></category>
		<category><![CDATA[MissingMethodException]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=543</guid>
		<description><![CDATA[We host Remotespots on a Tomcat 6 server on eapps. As we changed the UI design, we deployed a new version of it yesterday, but the scaffold views seems broken with the following error: Error 500: Executing action [list] of controller [app.InvitationCodeController] caused exception: groovy.lang.MissingMethodException: No signature of method: static app.InvitationCode.list() is applicable for argument [...]]]></description>
			<content:encoded><![CDATA[<p>We host <a href="http://remotespots.com">Remotespots</a> on a Tomcat 6 server on eapps. As we changed the UI design, we deployed a new version of it yesterday, but the scaffold views seems broken with the following error:</p>
<pre>Error 500: Executing action [list] of controller [app.InvitationCodeController] caused exception: groovy.lang.MissingMethodException: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]]
Servlet: grails
URI: /app/grails/invitationCode/list.dispatch
Exception Message: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]]
Caused by: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]]
Class: script12814638559751136092009
At Line: [13]
</pre>
<p>With the Stack Trace:</p>
<pre>groovy.lang.MissingMethodException: No signature of method: static app.InvitationCode.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: [[action:list, controller:invitationCode, max:10]]

	at app.InvitationCodeController$_closure2.doCall(script12814638559751136092009.groovy:13)

	at app.InvitationCodeController$_closure2.doCall(script12814638559751136092009.groovy)

	at org.apache.shiro.web.servlet.ShiroFilter.executeChain(ShiroFilter.java:687)

	at org.apache.shiro.web.servlet.ShiroFilter.doFilterInternal(ShiroFilter.java:616)

	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)

	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)

	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)

	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)

	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)

	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)

	at java.lang.Thread.run(Thread.java:619)
</pre>
<p>Although it runs on the local server <strong>grails run-app</strong>, the same problem occurs with <strong>grails run-war</strong>, and also on the Tomcat 6 on eapps. So after a little Googling, here is the magical solution:</p>
<pre>grails clean</pre>
<p>This solves the problem <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>These are the links that can help:</p>
<ul>
<li><a href="http://jira.codehaus.org/browse/GRAILS-4951?focusedCommentId=231632#action_231632">http://jira.codehaus.org/browse/GRAILS-4951?focusedCommentId=231632#action_231632</a></li>
<li><a href="http://www.pubbs.net/201002/grails/62508-grails-user-no-signature-of-method-issue-with-list.html">http://www.pubbs.net/201002/grails/62508-grails-user-no-signature-of-method-issue-with-list.html</a></li>
<li><a href="http://en.wikipedia.org/wiki/The_Yada_Yada">Yada yada</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/08/11/weird-grails-deployment-problem-missingmethodexception-yada-yada/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weird Grails+Adobe+Mac OS X  Error</title>
		<link>http://doganberktas.com/2010/08/03/weird-grailsadobemac-os-x-error/</link>
		<comments>http://doganberktas.com/2010/08/03/weird-grailsadobemac-os-x-error/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 16:12:03 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[remotespots]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[ScriptingAdditions]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=526</guid>
		<description><![CDATA[2010-08-03 19:00:21.793 java[3891:60f] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:  dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.  Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper java: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers. Yes this seems to be a Mac issue, the solution [...]]]></description>
			<content:encoded><![CDATA[<pre>2010-08-03 19:00:21.793 java[3891:60f] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:  dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.  Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
java: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
</pre>
<p>Yes this seems to be a Mac issue, the solution is as follows:</p>
<h4>Solution 1: Update the Adobe Unit Types.osax to version 2.1.0.</h4>
<ol type="1">
<li>Click this link to <a href="http://kb2.adobe.com/cps/516/cpsid_51615/attachments/Adobe_Unit_Types.osax.zip">download the Adobe Unit Types.osax version 2.1.0 file</a>.</li>
<li>Choose /Library/ScriptingAdditions.</li>
<li>Move the existing Adobe Unit Types.osax file to a backup location.</li>
<li>Copy the downloaded version of the Adobe Unit Types.osax file to the   /Library/ScriptingAdditions folder. Select Yes to authenticate this   operation.</li>
<li>Restart your computer.</li>
</ol>
<p>This is from the link <a href="http://kb2.adobe.com/cps/516/cpsid_51615.html">http://kb2.adobe.com/cps/516/cpsid_51615.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/08/03/weird-grailsadobemac-os-x-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello RoR</title>
		<link>http://doganberktas.com/2010/07/13/hello-ror/</link>
		<comments>http://doganberktas.com/2010/07/13/hello-ror/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 00:19:13 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Grails Meetup Group]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Starbucks Corporation]]></category>
		<category><![CDATA[Web application frameworks]]></category>
		<category><![CDATA[web continuations]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=392</guid>
		<description><![CDATA[Ruby on Rails (RoR) is the new framework I have been playing with and so far I should say it is really amazing. It has all these intuitive approaches that you find out by just guessing. I can only compare it with a couple of other technologies like RIFE (ogrence.net) and Grails (remotespots.com). RIFE has [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Ruby on Rails (RoR) is the new framework I have been playing with and so far I should say it is really amazing. It has all these intuitive approaches that you find out by just guessing. I can only compare it with a couple of other technologies like RIFE (ogrence.net) and Grails (remotespots.com). RIFE has some neat features (template mechanism, web continuations, asynchronous mail queue, persistence layer, etc) but since the lead developer Geert Bevin stop actively developing it, it takes its place in the graveyard of dead tech. Then I try something different, Grails, which is a Groovy version of RoR. It is really good especially after Java Enterprise, convention over configuration is an excellent approach! But it is kind of very young, also Grails has this really fast development cycles, in a couple of month, I had to update my applications two times in which I spend hours to overcome plug-in dependencies, deployment issues, etc. ( one more thing, I can not find any other cool projects that uses Grails, even at <a href="http://www.meetup.com/java-161/">SF Bay Groovy and Grails Meetup Group</a> , actually I was the only one who is currently using Grails <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p style="text-align: center;"><a title="Ruby on Rails" href="http://flickr.com/photos/26572975@N00/177722693"><img class="aligncenter" src="http://farm1.static.flickr.com/74/177722693_8aca6c7e82.jpg" alt="" width="400" height="320" /></a></p>
<p style="text-align: justify;">Since finding a good starter document is a very important decision, I took my time to select my first RoR source. I went over the following books and decided to use the latter one:</p>
<ul>
<li>Ruby on Rails For Dummies</li>
<li>Sitepoint Simply Rails 2nd Edition</li>
<li>Beginning Ruby on Rails</li>
<li><a href="http://railstutorial.org/">The Ruby on Rails Tutorial Book</a></li>
</ul>
<p style="text-align: justify;">Although it is called as a tutorial, when you get the pdf dump, the 12 chapter tutorial is approximately 500 pages, which is literally a book.</p>
<p style="text-align: justify;">The language of the book is very clean and most of the time funny. You can easily develop the code when you are reading it.  You can also follow a test driven approach if you want, but you don&#8217;t have (I didn&#8217;t).</p>
<p style="text-align: justify;">I finished the book in 7 days with a daily 4 hours concentrated reading/coding sessions and with lots of Starbucks Misto (thanks <a href="http://foursquare.com/venue/614429">Starbucks Besevler</a> crew!).</p>
<p style="text-align: justify;">The final code is at <a href="http://github.com/dkberktas/kediler">Github</a>, and live demo site at <a href="http://kediler.heroku.com/">Heroku</a>.</p>
<p style="text-align: justify;">As a pointer for the further steps, the tutorial suggest some <a href="http://railstutorial.org/chapters/following-users#sec:extensions_to_the_sample_application">pointers</a> but I prefer to go on with my path, which requires ImageMagick and Paperclip, so next post will be about these two.</p>
<p style="text-align: justify;">See you next time!</p>
<p style="text-align: justify;">ps. I really like Heroku. Grails has something <a href="http://www.cloudfoundry.com/">similar</a> but to be honest, it is not that magical (as in iPad).</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/13/hello-ror/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrading Grails, GWT, grails-gwt plugin and beyond</title>
		<link>http://doganberktas.com/2010/04/12/upgrading-grails-gwt-grails-gwt-plugin-and-beyond/</link>
		<comments>http://doganberktas.com/2010/04/12/upgrading-grails-gwt-grails-gwt-plugin-and-beyond/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 08:45:32 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[remotespots]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Google Web Toolkit]]></category>
		<category><![CDATA[grails 1.2.2]]></category>
		<category><![CDATA[grails-gwt plugin]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web application frameworks]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=246</guid>
		<description><![CDATA[@Remotespots project was started a couple of months ago and and after some time all the technologies were updated to their current versions (Grails 1.2.2, GWT 2.0 which is a huge change from 1.7, and finally grails-gwt 0.5). Since we were busy w/ the features we ignored the upgrade but time has come to sent [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="Colegiata de Santa Cruz, Castañeda, Cantabria" href="http://flickr.com/photos/40418474@N00/2602703212"><img class="aligncenter" src="http://farm4.static.flickr.com/3116/2602703212_1eb2830ea3.jpg" alt="" /></a></p>
<p>@<a href="http://remotespots.com">Remotespots</a> project was started a couple of months ago and and after some time all the technologies were updated to their current versions (Grails 1.2.2, GWT 2.0 which is a huge change from 1.7, and finally grails-gwt 0.5). Since we were busy w/ the features we ignored the upgrade but time has come to sent Remotespots to the wild, and we want it to be ready to its limits. Below you can find the steps and obstacles we encountered during the upgrade process. (I switched to Ubuntu from Windows XP, my headphones are still not working but at least I can open Eclipse under 60 seconds! so the things below is tested on Ubuntu 9.04)</p>
<ul>
<li>Download and change GRAILS_HOME to new grails version (1.2.2)</li>
<li>Run grails upgrade</li>
<li>Run install-plugin gwt  (so that it installs 0.5)</li>
<li>First obstacle</li>
<pre>Error executing script CompileGwtModules: No such  property: usingGoogleGin  for class: _Events
gant.TargetMissingPropertyException: No such property: usingGoogleGin for class: _Events
        at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:329)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:344)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:334)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.processTargets(Gant.groovy:495)
        at gant.Gant.processTargets(Gant.groovy:480)</pre>
<p>To solve it, run grails clean command and empty ~\.grails\1.2.2\scriptCache  folder. I found this solution from this <a href="http://n4.nabble.com/Compile-GWT-Modules-Failing-td1579454.html">link</a>.</p>
<li>Another problem you are likely to see is
<pre>grails  GWT module ... may need to be (re)compiled</pre>
<p>To solve it, run grails compile-gwt-modules command and refresh firefox w/ ctrl+f5 OR alt+shift+r</li>
<li>Last thing to be careful is, after started the gwt client with the command <strong>grails run-gwt-client</strong>, since GWT 2.0 get rid of hosted mode (finally), to see the changes on your code w/out restarting the server,  add the suffix to the url <strong>?gwt.codesvr=127.0.0.1:9997</strong>, from this <a href="http://groups.google.com/group/grails-gwt/browse_thread/thread/d27432c32f26dad4">link</a>, you can find the solutions to the problems people have w/ the grails-gwt plugin.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/04/12/upgrading-grails-gwt-grails-gwt-plugin-and-beyond/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to basics &#8212; A simple beginning to Grails</title>
		<link>http://doganberktas.com/2009/12/11/back-to-basics-a-simple-beginning-to-grails/</link>
		<comments>http://doganberktas.com/2009/12/11/back-to-basics-a-simple-beginning-to-grails/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:50:15 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache Struts]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[grails tutorial]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java enterprise platform]]></category>
		<category><![CDATA[Java platform]]></category>
		<category><![CDATA[relaible product]]></category>
		<category><![CDATA[Rife]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Spring Framework]]></category>
		<category><![CDATA[Web application frameworks]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=138</guid>
		<description><![CDATA[I guess I can finally finish my search for a good server side companion (at least for now).  A couple years ago RIFE was my only choice but unfortunately, it didn&#8217;t work out well as I expected (RIFE is an open source project but partly because of developers like me  who uses the framework but [...]]]></description>
			<content:encoded><![CDATA[<p>I guess I can finally finish my search for a good server side companion (at least for now).  A couple years ago <a href="http://rifers.org/">RIFE </a>was my only choice but unfortunately, it didn&#8217;t work out well as I expected (RIFE is an open source project but partly because of developers like me  who uses the framework but doesn&#8217;t pay his gratitude by adding sth to it, RIFE for the time being a dead project (at least for me!))</p>
<p style="text-align: center;"><a title="English Speaker" href="http://flickr.com/photos/23515014@N04/2948892935"><img class="alignnone" src="http://farm4.static.flickr.com/3254/2948892935_67a1da4122.jpg" alt="" width="454" height="500" /></a></p>
<p>Anyway, for some time I consider turn back to good old J2EE, then wander on the land of some other Java enterprise frameworks (Spring MVC, Wicket, Struts 2, Hibernate etc ) then Google App engine Java with its in progress full stack framework like environment. Then I decide that all the ones mentioned above has steep learning curves and without feeling complely comfortable with them, It is imposible to develop sth quickly.</p>
<p>Then the obvious direction was rails. First give a try to Django, then read some about  RoR but both of them somehow scare me out. I need to learn a new language (which Django tutorial specificly warns about looking a good python tutorial before devlde into Django), on the other hand, Grails (my love!) just start the sentence with &#8220;don&#8217;t worry about the groovy, you can learn it along the way&#8221;.</p>
<p>Obviously, Grails is relatively new compared to two other alternative and it has (or used to have) to many bugs for a relaible product.</p>
<p>But trust me, it is easy to just start and kick the first alfa version of sth out is a joy.</p>
<p>&#8211;</p>
<p>Ok this post is suppose to be a yet another introduction to Grails tutorial, so&#8230;</p>
<p><strong>Steps to Get Started</strong></p>
<p>1.  install Grails (there is nothing I can add here &#8212; <a href="http://www.grails.org/Installation">http://www.grails.org/Installation</a>)</p>
<p>2. open command line and create a project with grails create-app Yeap</p>
<p>3. Go to the created directory cd Yeap</p>
<p>4. Type grails run-app</p>
<p>That&#8217;s it!</p>
<p>I&#8217;m currently using <a href="http://grails.org/plugin/shiro">Apache Shiro</a> plugin (previously JSecurity), <a href="http://code.google.com/p/derjanandhisblog/wiki/GWTGrailsTutorial">Gwt plugin</a>, Postgresql, Eclipse for the development, More posts related to these will be here soon (I hope)</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2009/12/11/back-to-basics-a-simple-beginning-to-grails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
