<?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>Armbruster IT Blog &#187; hudson</title>
	<atom:link href="http://blog.armbruster-it.de/tag/hudson/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.armbruster-it.de</link>
	<description>Real world fun with Java, Grails, Groovy, Zope, Plone, Linux and much others.</description>
	<lastBuildDate>Fri, 30 Jul 2010 17:09:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solved a little trouble with Hudson and Grails</title>
		<link>http://blog.armbruster-it.de/2009/10/solved-a-little-trouble-with-hudson-and-grails/</link>
		<comments>http://blog.armbruster-it.de/2009/10/solved-a-little-trouble-with-hudson-and-grails/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:38:24 +0000</pubDate>
		<dc:creator>Stefan Armbruster</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[grails]]></category>
		<category><![CDATA[hudson]]></category>

		<guid isPermaLink="false">http://blog.armbruster-it.de/?p=51</guid>
		<description><![CDATA[A few months ago I started to use Hudson for continuous  integration. Installing and running Hudson is very simple and well documented. There&#8217;s a plugin for Grails available.
In most of my Grails projects, I&#8217;m using the Acegi Plugin. By default, this plugin utilizes EhCache for caching user data. In principal this is a good idea [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I started to use <a href="http://hudson.dev.java.net/">Hudson</a> for continuous  integration. Installing and running Hudson is very simple and well documented. There&#8217;s a <a href="http://wiki.hudson-ci.org/display/HUDSON/Grails+Plugin">plugin for Grails</a> available.</p>
<p>In most of my Grails projects, I&#8217;m using the <a href="http://www.grails.org/plugin/acegi">Acegi Plugin</a>. By default, this plugin utilizes EhCache for caching user data. In principal this is a good idea but it comes to trouble when using multiple Grails apps in Hudson. The default configuration uses /tmp/userCache.data for this cache. Since multiple apps use the same cache directory, it&#8217;s obvious that we get in trouble.</p>
<p>The most simple solution here is to completely disable the user cache. This can be easily done in grails-app/conf/SecurityConfig.groovy by adding</p>

<div class="wp_syntax"><div class="code"><pre class="groovy" style="font-family:monospace;">cacheUsers <span style="color: #66cc66;">=</span> <span style="color: #000000; font-weight: bold;">false</span></pre></div></div>

<p>Another (and probably better) option would be using a more sophisticated cache configuration e.g. by including the application&#8217;s name in the cache store dir. Or, even better, disable the cache in development and testing environment and configure it with a unique path name for production.</p>
<p>As mostly always: use the simplest solution that could probably work.</p>
<p>Over and out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.armbruster-it.de/2009/10/solved-a-little-trouble-with-hudson-and-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
