<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Spring Community Forums - Grails</title>
		<link>http://forum.springsource.org/</link>
		<description>For developers familiar with Spring, this forum provides assistance with using the Grails web application development framework.</description>
		<language>en</language>
		<lastBuildDate>Wed, 22 May 2013 21:10:21 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.springsource.org/images/misc/rss.png</url>
			<title>Spring Community Forums - Grails</title>
			<link>http://forum.springsource.org/</link>
		</image>
		<item>
			<title>where can i download the latest spring-security-core plugin?</title>
			<link>http://forum.springsource.org/showthread.php?137715-where-can-i-download-the-latest-spring-security-core-plugin&amp;goto=newpost</link>
			<pubDate>Tue, 21 May 2013 14:54:37 GMT</pubDate>
			<description><![CDATA[sorry for being a dunce, but the new plugin portal doesn't have a download option, 
so i'm assuming that we follow to 'source' which is now...]]></description>
			<content:encoded><![CDATA[<div>sorry for being a dunce, but the new plugin portal doesn't have a download option,<br />
so i'm assuming that we follow to 'source' which is now often(always?) on github.<br />
<br />
some of these plugin areas in github have tags sections which have version tagged zips for download.<br />
<br />
spring-security-core doesn't seem to?<br />
<br />
looking for latest 1.2.7.3.<br />
<br />
was able to get it to download from a grails app via BuildConfig.groovy outside of corporate firewall,<br />
but i'm used to having to install these plugins manually into a local nexus corporate environment<br />
which requires downloading the zip file specifically first.<br />
<br />
any suggestions?<br />
<br />
i would be happy also to try to configure a proxy for our internal nexus, but it's not clear to me what url to use for grails plugins.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?76-Grails">Grails</category>
			<dc:creator>tony_k</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137715-where-can-i-download-the-latest-spring-security-core-plugin</guid>
		</item>
		<item>
			<title>GGTS 3.2 and Grails 1.2.1</title>
			<link>http://forum.springsource.org/showthread.php?137136-GGTS-3-2-and-Grails-1-2-1&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 19:01:24 GMT</pubDate>
			<description><![CDATA[Hi all, I'm newbie to Grails, and have been reading a lot but am totally loss. 
 
I have a project developed in Grails 1.2.1, can't upgrade due to...]]></description>
			<content:encoded><![CDATA[<div>Hi all, I'm newbie to Grails, and have been reading a lot but am totally loss.<br />
<br />
I have a project developed in Grails 1.2.1, can't upgrade due to customer budget restrictions. I'm trying to configure and develop it using GGTS 3.2, but can't keep receiving compilation errors.<br />
<br />
First of all, is my configuration possible?<br />
<br />
Second, I think there is a kind of incompatibility between Grails 1.2.1 and GGTS 3.2, this is the error I get:<br />
<br />
Error executing script Compile: grails.util.BuildSettings.getPluginClassesDir()Lja  va/io/File;<br />
java.lang.NoSuchMethodError: grails.util.BuildSettings.getPluginClassesDir()Lja  va/io/File;<br />
	at org.grails.ide.eclipse.runtime.GrailsBuildSettings  DependencyExtractor.getPluginClassesDir(GrailsBuil  dSettingsDependencyExtractor.java:63)<br />
	at org.grails.ide.eclipse.runtime.GrailsBuildSettings  DependencyExtractor.getDependencyData(GrailsBuildS  ettingsDependencyExtractor.java:217)<br />
	at org.grails.ide.eclipse.runtime.GrailsBuildSettings  DependencyExtractor.writeDependencyFile(GrailsBuil  dSettingsDependencyExtractor.java:201)<br />
	at org.grails.ide.eclipse.runtime.DependencyExtractin  gBuildListener.receiveGrailsBuildEvent(DependencyE  xtractingBuildListener.java:79)<br />
	at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32  4)<br />
	at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33  4)<br />
	at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)<br />
	at gant.Gant.withBuildListeners(Gant.groovy:344)<br />
	at gant.Gant.this$2$withBuildListeners(Gant.groovy)<br />
	at gant.Gant$this$2$withBuildListeners.callCurrent(Un  known Source)<br />
	at gant.Gant.dispatch(Gant.groovy:334)<br />
	at gant.Gant.this$2$dispatch(Gant.groovy)<br />
	at gant.Gant.invokeMethod(Gant.groovy)<br />
	at gant.Gant.processTargets(Gant.groovy:495)<br />
	at gant.Gant.processTargets(Gant.groovy:480)<br />
Error executing script Compile: grails.util.BuildSettings.getPluginClassesDir()Lja  va/io/File;<br />
<br />
Should I be using any other configuration? I downloaded 3 different versions of GGTS/STS, non working on capable of compiling this project.<br />
<br />
Any guidance will be appreciated.<br />
<br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?76-Grails">Grails</category>
			<dc:creator>gabripa</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137136-GGTS-3-2-and-Grails-1-2-1</guid>
		</item>
		<item>
			<title>No flash.message in try...catch?</title>
			<link>http://forum.springsource.org/showthread.php?137001-No-flash-message-in-try-catch&amp;goto=newpost</link>
			<pubDate>Fri, 03 May 2013 06:21:26 GMT</pubDate>
			<description><![CDATA[hi, 
 
i'm using grails 2.0.3 with java 1.6.0_45-b06 and groovy-compiler 1.8.6. 
in my controllers/services i'm using try...catch blocks when doing...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
i'm using grails 2.0.3 with java 1.6.0_45-b06 and groovy-compiler 1.8.6.<br />
in my controllers/services i'm using try...catch blocks when doing database stuff. i'd like to show a confirm-message, if an operation was successful or an error message if not. here's my code:<br />
<br />
controllers/services:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">SomeDomainObject.withTransaction { status -&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //doing db-stuff...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //....<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log.info(&quot;Log something&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flash.confirm = message(code: 'some.message.code')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch(e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; status.setRollbackOnly()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log.error(&quot;Log the error&quot; + e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flash.error = message(code: 'some.other.code')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
redirect action: 'anAction'</code><hr />
</div>view:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;g:if test='${flash.confirm}'&gt;<br />
&nbsp; &nbsp; &lt;div class='confirmDiv'&gt;${flash.confirm}&lt;/div&gt;<br />
&lt;/g:if&gt;<br />
&lt;g:if test='${flash.error}'&gt;<br />
&nbsp; &nbsp; &lt;div class='errorDiv'&gt;${flash.error}&lt;/div&gt; <br />
&lt;/g:if&gt;</code><hr />
</div>the logging does work perfectly, but no flash-message is shown...?! Neither the flash.confirm, nor the flash.error when provoking database operation to fail...<br />
i really have no idea at the moment, why no flash message is shown... and would be very thankful if someone has a clue!<br />
<br />
thanks a lot!</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?76-Grails">Grails</category>
			<dc:creator>tiny969</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137001-No-flash-message-in-try-catch</guid>
		</item>
		<item>
			<title>Excluding security for a single .gsp page</title>
			<link>http://forum.springsource.org/showthread.php?136986-Excluding-security-for-a-single-gsp-page&amp;goto=newpost</link>
			<pubDate>Thu, 02 May 2013 13:25:26 GMT</pubDate>
			<description>How can I exclude spring security for a single .gsp page 
my Config.groovy entries are as follows. The one marked in red should get excluded from...</description>
			<content:encoded><![CDATA[<div>How can I exclude spring security for a single .gsp page<br />
my Config.groovy entries are as follows. The one marked in red should get excluded from authentication.<br />
<br />
grails.plugins.springsecurity.rejectIfNoRule = true<br />
grails.plugins.springsecurity.securityConfigType = grails.plugins.springsecurity.SecurityConfigType.A  nnotation<br />
grails.plugins.springsecurity.successHandler.alway  sUseDefault=true<br />
<br />
grails.plugins.springsecurity.controllerAnnotation  s.staticRules = [<br />
	'/js/**':		    ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/css/**':          ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/images/**':       ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/type/**':         ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/json/**':         ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/test/**':         ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/login/auth':      ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	'/login/authfail':  ['IS_AUTHENTICATED_ANONYMOUSLY'],<br />
	<font color="#FF0000">'/login/authCARE':  [''],</font><br />
	'/**':              ['IS_AUTHENTICATED_FULLY']<br />
]</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?76-Grails">Grails</category>
			<dc:creator>baby001</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?136986-Excluding-security-for-a-single-gsp-page</guid>
		</item>
		<item>
			<title><![CDATA[How to Map a Simple Oracle "Legacy" Table into a Grails Domain Class?]]></title>
			<link>http://forum.springsource.org/showthread.php?136739-How-to-Map-a-Simple-Oracle-quot-Legacy-quot-Table-into-a-Grails-Domain-Class&amp;goto=newpost</link>
			<pubDate>Thu, 25 Apr 2013 19:59:15 GMT</pubDate>
			<description><![CDATA[Hi, everyone.  I am a very experienced java developer, and a somewhat experienced Spring developer, but am new to Grails.   
 
I'm trying to create a...]]></description>
			<content:encoded><![CDATA[<div>Hi, everyone.  I am a very experienced java developer, and a somewhat experienced Spring developer, but am new to Grails.  <br />
<br />
I'm trying to create a simple one-table one-class grails prototype app that reads from a simple pre-existing Oracle table.  <br />
<br />
I can see that the grails app is connecting to the database ok, but when I code the Datasource.groovy as dbCreate=&quot;update&quot;, it wants to add a new hibernate_sequence to the table, and gets this exception:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">C:\opt\grailsWorkspace\myapp&gt;grails run-app<br />
Welcome to Grails 1.3.7 - http://grails.org/<br />
Licensed under Apache Standard License 2.0<br />
Grails home is set to: C:\opt\grails<br />
<br />
Base Directory: C:\opt\grailsWorkspace\myapp<br />
Resolving dependencies...<br />
Dependencies resolved in 1154ms.<br />
Running script C:\opt\grails\scripts\RunApp.groovy<br />
Environment set to development<br />
&nbsp; [groovyc] Compiling 2 source files to C:\opt\grailsWorkspace\myapp\tar<br />
get\classes<br />
&nbsp;  [delete] Deleting directory C:\Users\bethridge\.grails\1.3.7\projects\myapp\tomcat<br />
Running Grails application..<br />
2013-04-25 14:41:10,410 [main] ERROR hbm2ddl.SchemaUpdate&nbsp; - Unsuccessful: creat<br />
e sequence hibernate_sequence<br />
2013-04-25 14:41:10,410 [main] ERROR hbm2ddl.SchemaUpdate&nbsp; - ORA-01031: insuffic<br />
ient privileges</code><hr />
</div>Thank goodness I didn't have the Oracle privilege to do such.  Otherwise, I imagine I would have just messed up a perfectly good Oracle table for our whole team!  (The Grails documentation in my Grails book was not very clear on that point.)<br />
<br />
If I change to dbCreate=&quot;validate&quot;, then I get this exception:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">org.springframework.beans.factory.BeanCreationException: Error creating bean wit<br />
h name 'messageSource': Initialization of bean failed; nested exception is org.s<br />
pringframework.beans.factory.BeanCreationException: Error creating bean with nam<br />
e 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while<br />
setting bean property 'sessionFactory'; nested exception is org.springframework.<br />
beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto<br />
ry': Invocation of init method failed; nested exception is org.hibernate.Hiberna<br />
teException: Missing sequence or table: hibernate_sequence<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at grails.web.container.EmbeddableServer$start.call(Unknown Source)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:15<br />
8)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:2<br />
80)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at RunApp$_run_closure1.doCall(RunApp.groovy:33)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.withBuildListeners(Gant.groovy:427)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.this$2$withBuildListeners(Gant.groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.dispatch(Gant.groovy:415)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.this$2$dispatch(Gant.groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.invokeMethod(Gant.groovy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.executeTargets(Gant.groovy:590)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at gant.Gant.executeTargets(Gant.groovy:589)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati<br />
ng bean with name 'transactionManager': Cannot resolve reference to bean 'sessio<br />
nFactory' while setting bean property 'sessionFactory'; nested exception is org.<br />
springframework.beans.factory.BeanCreationException: Error creating bean with na<br />
me 'sessionFactory': Invocation of init method failed; nested exception is org.h<br />
ibernate.HibernateException: Missing sequence or table: hibernate_sequence<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 23 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati<br />
ng bean with name 'sessionFactory': Invocation of init method failed; nested exc<br />
eption is org.hibernate.HibernateException: Missing sequence or table: hibernate<br />
_sequence<br />
&nbsp; &nbsp; &nbsp; &nbsp; ... 23 more<br />
Caused by: org.hibernate.HibernateException: Missing sequence or table: hibernat<br />
e_sequence</code><hr />
</div>....and the error makes sense, but the bottom line is that this is a PRE-EXISTING and in-production table, so I don't want Grails/Hibernate to create a new hibernate_sequence at all.  The table already has a perfectly good primary key.  I just want grails/hibernate to map to the existing primary key.  <br />
<br />
I've poked around my Grails books, the internet and this forum, but I don't see how to do this yet.<br />
<br />
In general, how am I supposed to configure for a simple legacy database scenario in Grails?<br />
<br />
Ben Ethridge</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?76-Grails">Grails</category>
			<dc:creator>benethridge</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?136739-How-to-Map-a-Simple-Oracle-quot-Legacy-quot-Table-into-a-Grails-Domain-Class</guid>
		</item>
	</channel>
</rss>
