<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Error Solved</title>
	<atom:link href="http://solveme.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://solveme.wordpress.com</link>
	<description>Finally I solved the error</description>
	<lastBuildDate>Wed, 01 Jun 2011 12:36:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='solveme.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Error Solved</title>
		<link>http://solveme.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://solveme.wordpress.com/osd.xml" title="Error Solved" />
	<atom:link rel='hub' href='http://solveme.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Grails, Hibernate Event Listeners and ArrayStoreException</title>
		<link>http://solveme.wordpress.com/2011/05/24/grails-hibernate-event-listeners-and-arraystoreexception/</link>
		<comments>http://solveme.wordpress.com/2011/05/24/grails-hibernate-event-listeners-and-arraystoreexception/#comments</comments>
		<pubDate>Tue, 24 May 2011 13:15:38 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=140</guid>
		<description><![CDATA[The Problem Trying to register few Hibernate event listeners from plugin, But some how, registering the custom event listeners causes ArrayStoreException at runtime. In plugin class def doWithSpring = { sanitizeHtmlListner(SanitizeHtmlListner) hibernateEventListeners(HibernateEventListeners) { listenerMap = ['save':sanitizeHtmlListner] } } Listener class class SanitizeHtmlListner implements SaveOrUpdateEventListener { ----- } Exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization o f bean [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=140&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<p>Trying to register few Hibernate event listeners from plugin, But some how, registering the custom event listeners causes ArrayStoreException at runtime.</p>
<p><strong>In plugin class</strong><br />
<code></code></p>
<pre> def doWithSpring = {
	sanitizeHtmlListner(SanitizeHtmlListner)
	hibernateEventListeners(HibernateEventListeners) {
		listenerMap = ['save':sanitizeHtmlListner]
	}
    }</pre>
<p><strong>Listener class</strong><br />
<code></code></p>
<pre>class SanitizeHtmlListner implements SaveOrUpdateEventListener {
-----
}</pre>
<p><strong>Exception</strong><br />
<code></code></p>
<pre>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization o
f bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with nam
e 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFacto
ry': Invocation of init method failed; nested exception is java.lang.ArrayStoreException
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initi
alization of bean failed; nested exception is</pre>
<h3>Solution</h3>
<p>No solution is known,</p>
<p>This is a bug in Grails, which will not let you register SaveAndUpdateListener,  and if you do, you get this error. if you try with pre-insert, pre-update listeners it should work. I don&#8217;t know what other listeners are affected.</p>
<p>Reported <a href="http://jira.grails.org/browse/GRAILS-7576">http://jira.grails.org/browse/GRAILS-7576</a></p>
<p>See</p>
<p><a href="http://grails.1312388.n4.nabble.com/Hibernate-listeners-are-not-called-for-integration-tests-td3546387.html">http://grails.1312388.n4.nabble.com/Hibernate-listeners-are-not-called-for-integration-tests-td3546387.html</a><br />
<a href="http://grails.1312388.n4.nabble.com/Hibernate-event-listeners-td3483795.html">http://grails.1312388.n4.nabble.com/Hibernate-event-listeners-td3483795.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=140&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2011/05/24/grails-hibernate-event-listeners-and-arraystoreexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple grails CMS inspired from drupal</title>
		<link>http://solveme.wordpress.com/2011/04/13/a-simple-grails-cms-inspired-from-drupal/</link>
		<comments>http://solveme.wordpress.com/2011/04/13/a-simple-grails-cms-inspired-from-drupal/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 09:46:30 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[cms]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=136</guid>
		<description><![CDATA[I am working on creating a new CMS based on grails. The purpose is to use it for a new site I am going to launch in near future. Features I really like drupal, and I want not all but similar features in my CMS. Create/Edit/View/Delete nodes Spaces (eg news, announcements) Blocks Regions URL aliases [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=136&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am working on creating a new CMS based on grails. The purpose is to use it for a new site I am going to launch in near future.</p>
<p><strong>Features </strong><br />
I really like drupal, and I want not all but similar features in my CMS.</p>
<ul>
<li>Create/Edit/View/Delete nodes</li>
<li>Spaces (eg news, announcements)</li>
<li>Blocks</li>
<li>Regions</li>
<li>URL aliases</li>
<li>Make creating custom content type easy</li>
<li>Comments</li>
<li>Full text search</li>
<li>File upload</li>
</ul>
<p>No plugin architecture, revisions or full support for themes initially.</p>
<p><strong>Why not weceem or any other existing CMS</strong></p>
<p>Just because I want to develop my own so that I understand it and i have full flexibility.</p>
<p>If you have any comments/suggestions please comment here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=136&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2011/04/13/a-simple-grails-cms-inspired-from-drupal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>The future of Java servlets and web applications &#8211; JSR 340</title>
		<link>http://solveme.wordpress.com/2011/03/23/the-future-of-java-servlets-and-web-applications-jsr-340/</link>
		<comments>http://solveme.wordpress.com/2011/03/23/the-future-of-java-servlets-and-web-applications-jsr-340/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 06:37:08 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javaee7]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[servlet3]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=132</guid>
		<description><![CDATA[You must be aware of the Servlet 3.0 spec,  and what cool things it brings to the java web development. If not, you can read it here Introduction to servlet 3.0 new features. Servlet 3.0 was released as part of the JavaEE6 and brings many exciting features like Annotations, web framework playability, built in file upload [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=132&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You must be aware of the Servlet 3.0 spec,  and what cool things it brings to the java web development. If not, you can read it here <a title="servlet 3.0 new features" href="http://www.servletworld.com/servlet-tutorials/servlet3/new-features.html" target="_blank">Introduction to servlet 3.0 new features</a>. Servlet 3.0 was released as part of the JavaEE6 and brings many exciting features like Annotations, web framework playability, built in file upload support and comet support. That&#8217;s the present of java web applications, many containers like Tomcat 7.x and Glassfish V3 supports Servlet 3.0 Spec.</p>
<h3>The future of servlets</h3>
<p>There&#8217;s yet more goodness to come to servlets , A new specification request, <a href="http://jcp.org/en/jsr/detail?id=340" target="_blank">JSR 340</a> has been submitted, that will develop the new version 3.1 of java servlets.  The JSR 340 will be part of the JavaEE 7</p>
<p>Here&#8217;s the main theme of the Servlet 3.1 spec</p>
<ul>
<li>Cloud support : The main theme of the JavaEE7 would be to improve the platform for cloud</li>
<li>Multi tenancy support : Just like cloud, multi tenancy are becoming quite popular with the SAAS applications. So in the 3.1 version of the servlets, we will see a built in support for multi tenancy that will consider the things like security, session state, resources and other isolation requirements.</li>
<li>Improved support for asynchronous request processing.</li>
<li>Utilize the Java EE concurrency APIs for asynchronous support.</li>
<li>Security improvement based on the   security enhancements in servlet 3.0 spec.</li>
<li>Take the advantage of HTML 5,  support for web sockets.</li>
</ul>
<h2>Related links</h2>
<ul>
<li><a title="servlet 3.0 tutorial" href="http://www.servletworld.com/servlet-tutorials/servlet3/cook-book.html" target="_blank">Servlet 3.0 Cook Book </a></li>
<li><a href="http://jcp.org/en/jsr/detail?id=340" target="_blank">JSR 340</a></li>
<li><a href="http://www.infoq.com/news/2011/03/ee7_jsr" target="_blank">Infoq &#8211; JavaEE  7</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=132&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2011/03/23/the-future-of-java-servlets-and-web-applications-jsr-340/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>Does java miss a good HTML sanitizer ?</title>
		<link>http://solveme.wordpress.com/2011/02/17/does-java-miss-a-good-html-sanitizer/</link>
		<comments>http://solveme.wordpress.com/2011/02/17/does-java-miss-a-good-html-sanitizer/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 18:36:17 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=128</guid>
		<description><![CDATA[I have been looking for a good Java HTML sanitizer, that would let me sanitize user input based on a whitelist, and would escape other things. There are some examples here and there but none seems so complete as PHP, Ruby, Python and Pearl. Does java really miss a robust HTML sanitizer ? Do you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=128&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="yui_3_2_0_2_1297967329390112">I have been looking for a good Java HTML sanitizer, that would let me sanitize user input based on a whitelist, and would escape other things. There are some examples here and there but none seems so complete as PHP, Ruby, Python and Pearl.</div>
<div id="yui_3_2_0_2_1297967329390112">Does java really miss a robust HTML sanitizer ?</div>
<div></div>
<div>Do you know any good open source HTML sanitizer for java !</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=128&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2011/02/17/does-java-miss-a-good-html-sanitizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>Deleted MySql root user accidently? Recreate root account</title>
		<link>http://solveme.wordpress.com/2010/12/23/accidently-deleted-mysql-root-account/</link>
		<comments>http://solveme.wordpress.com/2010/12/23/accidently-deleted-mysql-root-account/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 18:10:44 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=123</guid>
		<description><![CDATA[Deleted MySql root user accidently? Follow the steps recreate the root user. If mysql service is already running, stop it. Open the command prompt and goto MYSQL_HOME/bin directory. Run following commands &#62; mysqld --skip-grant-tables Then start mysql console &#62; mysql –u=root Then run following commands &#62; GRANT CREATE, DROP ON *.* TO root@localhost IDENTIFIED BY [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=123&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Deleted MySql root user accidently?</strong></p>
<p>Follow the steps recreate the root user.</p>
<ol>
<li>If mysql service is already running, stop it.</li>
<li>Open the command prompt and goto MYSQL_HOME/bin directory.</li>
<li>Run following commands</li>
</ol>
<p><code><br />
&gt; mysqld --skip-grant-tables</code></p>
<p>Then start mysql console<br />
<code><br />
&gt; mysql –u=root</code></p>
<p>Then run following commands<br />
<code><br />
&gt; GRANT CREATE, DROP ON *.* TO root@localhost IDENTIFIED BY 'newpass' WITH GRANT OPTION;</code></p>
<p><code> </code></p>
<p><code>&gt; GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'newpass' WITH GRANT OPTION;</code></p>
<p>Then restart the mysql service and you are done.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=123&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2010/12/23/accidently-deleted-mysql-root-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>wireframesketcher &#8211; You will love this plugin</title>
		<link>http://solveme.wordpress.com/2010/11/03/wireframesketcher-you-will-love-this-plugin/</link>
		<comments>http://solveme.wordpress.com/2010/11/03/wireframesketcher-you-will-love-this-plugin/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 07:46:36 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=119</guid>
		<description><![CDATA[When some one said &#8216;A picture is worth a thousand words&#8217;, He said true. During the early phase of the projects, I frequently have to create screen mockups and send to client for review. I have been always doing this by hand (though i knew about the tools). But when I found about the wireframesketcher [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=119&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When some one said &#8216;A picture is worth a thousand words&#8217;, He said true. During the early phase of the projects, I frequently have to create screen mockups and send to client for review. I have been always doing this by hand (though i knew about the tools). But when I found about the <a href="http://wireframesketcher.com" target="_blank">wireframesketcher</a> I decided to give it a try, mainly because It worked within eclipse, and I am really quite satisfied by the results that now I will be using it for all the future projects.</p>
<p>If you are a developer and use eclipse, and you need to create screen mockups, then you must try this plugin.  Get the  <a href="http://wireframesketcher.com/install.html">trial version</a> of the plugin.</p>
<p>Wait for a complete review&#8230;. I will update with some example screens</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=119&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2010/11/03/wireframesketcher-you-will-love-this-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>mvn eclipce:eclipse gives error &#8211; Request to merge when &#8216;filtering&#8217; is not identical</title>
		<link>http://solveme.wordpress.com/2010/04/23/mvn-eclipceeclipse-gives-error-request-to-merge-when-filtering-is-not-identical/</link>
		<comments>http://solveme.wordpress.com/2010/04/23/mvn-eclipceeclipse-gives-error-request-to-merge-when-filtering-is-not-identical/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 10:01:32 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[appfuse]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=112</guid>
		<description><![CDATA[Description: You get the error Request to merge when &#8216;filtering&#8217; is not identical when running mvn eclipse:eclipse on a maven project Root cause: It&#8217;s because of the change in maven eclipse plugin solution: try this mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=112&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Description</strong>: You get the error <strong>Request to merge when &#8216;filtering&#8217; is not identical </strong>when running mvn eclipse:eclipse on a maven project</p>
<p><strong>Root cause</strong>: It&#8217;s because of the change in maven eclipse plugin</p>
<p><strong>solution</strong>: try this</p>
<blockquote><p>mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=112&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2010/04/23/mvn-eclipceeclipse-gives-error-request-to-merge-when-filtering-is-not-identical/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>Vote for google app engine Maven plugin</title>
		<link>http://solveme.wordpress.com/2010/01/08/google-app-engine-maven-plugin/</link>
		<comments>http://solveme.wordpress.com/2010/01/08/google-app-engine-maven-plugin/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 16:16:53 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[google app engine]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=103</guid>
		<description><![CDATA[Yes, Just like you, I am also looking for maven support in GAE. There is an unofficial GAE maven plugin here. But  It would be great if google release an official maven plugin and publish artifacts to central maven repository. Vote here if you are looking for maven support in GAE http://code.google.com/p/googleappengine/issues/detail?id=1296 Update: Finally My [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=103&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes, Just like you, I am also looking for maven support in GAE.</p>
<p>There is an unofficial GAE maven plugin <a href="http://code.google.com/p/maven-gae-plugin/">here</a>. But  It would be great if google release an official maven plugin and publish artifacts to central maven repository.</p>
<p>Vote here if you are looking for maven support in GAE</p>
<p><a href="http://code.google.com/p/googleappengine/issues/detail?id=1296">http://code.google.com/p/googleappengine/issues/detail?id=1296</a></p>
<p><strong>Update:</strong> Finally My trick did the work. I posted link to this issue on mailing lists and blogs related to Java/app engine on January 7.  Since then more than 100 people have voted for the issue.  And the issue is now accepted by google.</p>
<p>Now we can hope for a official appengine maven plugin in near future.</p>
<p><strong>Update 27-DEC-2010</strong></p>
<p>Congratulations !<br />
I just noticed that the issue has been fixed. App Engine 1.3.7 is now in Maven central and future versions will be pushed to central after each release.</p>
<p>See the link for <a href="http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html">How to use Maven with google plugin for eclipse</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=103&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2010/01/08/google-app-engine-maven-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>Freemarker sucks, dependency on javax.swing, Wouldn&#8217;t run on GAE</title>
		<link>http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-dependency-on-javax-swing/</link>
		<comments>http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-dependency-on-javax-swing/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 15:36:35 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[freemarker]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[velocity]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=89</guid>
		<description><![CDATA[I would say freemarker sucks. Yes it does. A template engine has dependency on javax.swing !! Isnt that surprising? Today, I was trying to deploy a Stripe/Freemarker hello world app on GAE and I got following. java.lang.NoClassDefFoundError: javax.swing.tree.TreeNode is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=89&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I would say freemarker sucks.<br />
Yes it does. A template engine has dependency on javax.swing !!<br />
Isnt that surprising?</p>
<p>Today, I was trying to deploy a Stripe/Freemarker hello world app on GAE and I got following.</p>
<p><code><br />
java.lang.NoClassDefFoundError: javax.swing.tree.TreeNode is a restricted class. Please see the Google  App Engine developer's guide for more details.<br />
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)<br />
at freemarker.core.TextBlock.isIgnorable(TextBlock.java:375)<br />
at freemarker.core.TemplateElement.postParseCleanup(TemplateElement.java:240)<br />
at freemarker.core.MixedContent.postParseCleanup(MixedContent.java:76)<br />
at freemarker.core.FMParser.Root(FMParser.java:2961)<br />
at freemarker.template.Template.(Template.java:149)<br />
at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:448)<br />
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:361)<br />
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)<br />
at freemarker.template.Configuration.getTemplate(Configuration.java:487)<br />
at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1465)<br />
at freemarker.core.Include.accept(Include.java:157)<br />
at freemarker.core.Environment.visit(Environment.java:210)<br />
at freemarker.core.MixedContent.accept(MixedContent.java:92)<br />
at freemarker.core.Environment.visit(Environment.java:210)<br />
at freemarker.core.Environment.process(Environment.java:190)<br />
at freemarker.template.Template.process(Template.java:237)<br />
at freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:452)<br />
at freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:391)<br />
.........<br />
........<br />
</code></p>
<p>Yes, you can not use freemarker on GAE, at least not without hacking it.</p>
<p>I found a patch here, seems that it would solve above exception.</p>
<p><a href="http://groups.google.com/group/google-appengine-java/browse_thread/thread/dd84e44f604498c4">http://groups.google.com/group/google-appengine-java/browse_thread/thread/dd84e44f604498c4</a></p>
<p>Who knows that it wouldn&#8217;t have dependency on more classes. we can just hope for good.</p>
<p><strong>updates</strong><br />
Nope, above solution isn&#8217;t  going to work all the time.<br />
I had a quick look at the code, I think that the culprit is here.</p>
<p><code><br />
abstract public class TemplateElement extends TemplateObject implements TreeNode<br />
</code></p>
<p>From the code, it seems that TemplateElement implements TreeNode<br />
Just because it needs contract similar to TreeNode but it does not have any thing to do with swing API. (You already knew that)<br />
Instead of implementing TreeNode, author could have created a new interface which exposes similar contract.</p>
<p>Do we implement any interface which exposes similar contract that we need? Context matters. EJB spec has some interface with methods that a servlet want doesn&#8217;t mean it can be implemented by a servlet.</p>
<p>Hope, devs would fix it in next release.<br />
The issue is discussed in mailing list here <a href="http://n4.nabble.com/Dependeny-on-javax-swing-td978818.html">http://n4.nabble.com/Dependeny-on-javax-swing-td978818.html</a></p>
<p>At the end, I would like to say, I like freemarker and that&#8217;s why I wrote even a hello world stripe application in freemarker.</p>
<p><strong>Update 26/03/2010</strong></p>
<p>Friends at freemarker has released a Freemarker GAE prerelease which can be downloaded <a href="http://sourceforge.net/projects/freemarker/files/" target="_blank">here</a>. It should work on GAE.  Any one interested in running freemarker on GAE should try it and report issues if any.</p>
<p>see  <a title="FreeMarker on Google App Engine" href="http://freemarker.blogspot.com/2010/02/freemarker-on-google-app-engine.html">freemarker on GAE </a>too.</p>
<p><strong>update 28/04/2010</strong></p>
<p>No, still freemarker-gae-pre2 will not work on GAE, I have tested it on GAE 1.3.2.  You will get one or both of the following exceptions<br />
<code><br />
java.lang.VerifyError: (class:  freemarker/ext/jsp/FreeMarkerJspApplicationContext, method:  signature:  ()V) Incompatible argument to function</code></p>
<p>OR<br />
<code><br />
java.lang.NoClassDefFoundError: Could not initialize class  freemarker.ext.jsp.PageContextFactory</code></p>
<p>See this <a href="http://groups.google.com/group/google-appengine-java/browse_thread/thread/290cea543765aa0a?hl=en">thread</a> and this <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=146529.3014.qm%40web95515.mail.in.yahoo.com&amp;forum_name=freemarker-user">thread </a>. The issue has been reported to GAE team <a href="http://code.google.com/p/googleappengine/issues/detail?id=3157">here </a>vote for it.</p>
<p>Waiting for the freemarker or GAE team to come up with explanation/solution.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=89&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-dependency-on-javax-swing/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
		<item>
		<title>DDD Without any ORM tool, is it possible !!</title>
		<link>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/</link>
		<comments>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:19:00 +0000</pubDate>
		<dc:creator>snimavat</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[patterns]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=86</guid>
		<description><![CDATA[DDD Without any ORM tool, is it possible !! When reading DDD book and trying out it on a sample project that doesn&#8217;t use any ORM tool. I came across a question, is it possible to strictly implement DDD without any ORM tool ! Is there any one here who has implemented DDD on any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=86&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DDD Without any ORM tool, is it possible !!</p>
<p>When reading DDD book and trying out it on a sample project that doesn&#8217;t use any ORM tool. I came across a question, is it possible to strictly implement DDD without any ORM tool !</p>
<p>Is there any one here who has implemented DDD on any real project that doesn&#8217;t use any ORM but pure JDBC only?</p>
<p>Before few days, I had a question on how to paginate and lazy load non root objects <a href="http://tech.groups.yahoo.com/group/domaindrivendesign/message/15925">http://tech.groups.yahoo.com/group/domaindrivendesign/message/15925<br />
</a><br />
Various alternatives and answers came up, but why do I need to find an alternative ! I don&#8217;t need to do any thing specific when using hibernate and just depend on the lazy loading support provided by it.</p>
<p>I want to paginate because I don&#8217;t want to load entire graph of few thousand objects into memory and when using hibernate and lazy loading that&#8217;s not an issue. With NO-ORM, I can achieve similar thing by hand coding dynamic proxies for lazy loading, and let repositories handle it.</p>
<p>However the second point is more important.</p>
<p>The second question is related to <strong>repositories, transitive persistence and dirty checking</strong>.<br />
The DDD book (Chapter 6 &#8211; repositories) says <strong>&#8220;it allows freely switching persistence strategies at any time.&#8221; </strong></p>
<p>Is it really possible and easy without modifying domain at all !</p>
<p><strong>How about dirty checking and persistence by reachability without any ORM ?</strong><br />
When you save/update an aggregate root, entire graph should be saved and/or updated. How the repository will determine which objects are modified/inserted or deleted?</p>
<p>Probably you will need some thing like isNew() isStale() inside every entities to find out if it needs to be included as part of insert/update. And set flags when ever any setter or any other method changes state of the object. I have seen similar thing in a project which uses DDD with JDBC.</p>
<p>Several answers came up</p>
<blockquote><p>Get the data from the database and determine updates, deletes, and inserts in code.</p></blockquote>
<blockquote><p>This may not be the best routine, but I use a boolean flag to determine what needs persisted. I have a property in each entity called .IsDirty. When anything inside the aggregate root needs persisted, I use the root&#8217;s repository and call root.Persist and I go through the root. The root repository then loops through each entity and tests the .IsDirty flag</p></blockquote>
<p>Do you see any pattern in this answers ?</p>
<ul>
<li>It says either modify your domain model or write some thing like your little ORM to do this things.</li>
<li>That says DDD is tightly bound to ORM and &#8220;Freely switching of persistence technology&#8221; means switching from one ORM to another (it could be your own).</li>
</ul>
<p><strong>How about Delete?</strong><br />
Lets say root has a collection of associated entities (In my example MessageFolder has Collection of messages)</p>
<p>I can do some thing like<br />
MessageFolder.remove(Message message)</p>
<p>That would remove message from the collection. When saving the MessageFolder, how the repository can find out what messages are deleted? Either message folder need to maintain a collection of removed messages or repository need to have old message folder for comparision. The first option forces me to modify MessageFolder, that mean domain model became aware of underlying persistence technology. The second option would need to load old entity which would affect performance.</p>
<p>It might be possible to switch to ORM from a No-ORM application but what about switching to NO-ORM from ORM !  Does that mean I will have to add custom behavior to my entities to figure out weather they are new or modified or deleted.</p>
<p>These are few questions that I am not able to answer my self and seeking some expert thoughts. If you have done DDD for a real life project that does not use any ORM, please comment.</p>
<p>Some people said CQRS and Domain events can solve this problem, however I am yet to find a working example.</p>
<p>There is a <a href="http://domaindrivendesign.org/examples#sampleApp">sample DDD application</a> created by DDD community. The sample application uses Hibernate in persistence layer.<br />
I wish some day DDD community would release a sample application that works on pure JDBC. As still there are lots of companies who use bare JDBC and no ORM at all.</p>
<p>Look at the thread <a href="http://tech.groups.yahoo.com/group/domaindrivendesign/message/16021">http://tech.groups.yahoo.com/group/domaindrivendesign/message/16021</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&amp;blog=4112608&amp;post=86&amp;subd=solveme&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/11/11/ddd-without-any-orm-tool-is-it-possible/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b431de3f99788d18e480ca0b101f2ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snimavat</media:title>
		</media:content>
	</item>
	</channel>
</rss>
