<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Wicket/Spring/Hibernate configuration</title>
	<atom:link href="http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/</link>
	<description>A comprehensive guide for Java developers building Wicket-based web applications</description>
	<lastBuildDate>Wed, 07 Jul 2010 23:51:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joonas</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-668</link>
		<dc:creator>Joonas</dc:creator>
		<pubDate>Tue, 06 Apr 2010 12:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-668</guid>
		<description>@Erik: Do not use an interceptor. Simple as that; you&#039;ll be much better off using event listeners. If you really have to use the interceptor (which quickly becomes a god-like class) then you can always implement ApplicationContextAware interface and manually fetch beans from that.

Btw, sounds a bit strange that your interceptor would have to have a sessionFactory reference. Perhaps its there by mistake?</description>
		<content:encoded><![CDATA[<p>@Erik: Do not use an interceptor. Simple as that; you&#8217;ll be much better off using event listeners. If you really have to use the interceptor (which quickly becomes a god-like class) then you can always implement ApplicationContextAware interface and manually fetch beans from that.</p>
<p>Btw, sounds a bit strange that your interceptor would have to have a sessionFactory reference. Perhaps its there by mistake?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-667</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Fri, 26 Mar 2010 13:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-667</guid>
		<description>I have been trying this for a while now but I can&#039;t get it to work. I removed hibernate3-maven-plugin from the pom and copied the above code (with corrections). The sessionFactory and the interceptor have a cyclic dependency: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;sessionFactory&#039; defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean &#039;interceptor&#039; while setting bean property &#039;entityInterceptor&#039;; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name &#039;interceptor&#039; defined in class path resource [applicationContext.xml]: Unsatisfied dependency expressed through bean property &#039;sessionFactory&#039;: : Error creating bean with name &#039;sessionFactory&#039;: FactoryBean which is currently in creation returned null from getObject; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name &#039;sessionFactory&#039;: FactoryBean which is currently in creation returned null from getObject
I have searched a lot on the Spring forum and seen some advice on cyclic dependencies, like BeanPostProcessor, but I can&#039;t get it to work. Does anyone here have the same experience and have solved the problem?</description>
		<content:encoded><![CDATA[<p>I have been trying this for a while now but I can&#8217;t get it to work. I removed hibernate3-maven-plugin from the pom and copied the above code (with corrections). The sessionFactory and the interceptor have a cyclic dependency:<br />
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#8217;sessionFactory&#8217; defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean &#8216;interceptor&#8217; while setting bean property &#8216;entityInterceptor&#8217;; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name &#8216;interceptor&#8217; defined in class path resource [applicationContext.xml]: Unsatisfied dependency expressed through bean property &#8217;sessionFactory&#8217;: : Error creating bean with name &#8217;sessionFactory&#8217;: FactoryBean which is currently in creation returned null from getObject; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name &#8217;sessionFactory&#8217;: FactoryBean which is currently in creation returned null from getObject<br />
I have searched a lot on the Spring forum and seen some advice on cyclic dependencies, like BeanPostProcessor, but I can&#8217;t get it to work. Does anyone here have the same experience and have solved the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandros Karypidis</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-663</link>
		<dc:creator>Alexandros Karypidis</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-663</guid>
		<description>For those of you that want to work with Wicket 1.4.6:

There dependency on &quot;wicket-spring-annot&quot; is no longer required. Simply remove it. This package was used only in Wicket 1.3.

Its purpose was to add annotation support due to the fact that Wicket 1.3 could run on JDK 1.4, which did not have annotations. Starting with Wicket 1.4, JDK 5 (or later) is required and therefore the annotation support is not needed.

Remove the  on that and it should work with Wicket 1.4 as well.</description>
		<content:encoded><![CDATA[<p>For those of you that want to work with Wicket 1.4.6:</p>
<p>There dependency on &#8220;wicket-spring-annot&#8221; is no longer required. Simply remove it. This package was used only in Wicket 1.3.</p>
<p>Its purpose was to add annotation support due to the fact that Wicket 1.3 could run on JDK 1.4, which did not have annotations. Starting with Wicket 1.4, JDK 5 (or later) is required and therefore the annotation support is not needed.</p>
<p>Remove the  on that and it should work with Wicket 1.4 as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-606</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 18 Oct 2009 19:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-606</guid>
		<description>Great setup tutorial, tobad it doesn&#039;t work! :-(</description>
		<content:encoded><![CDATA[<p>Great setup tutorial, tobad it doesn&#8217;t work! :-(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buddy</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-577</link>
		<dc:creator>buddy</dc:creator>
		<pubDate>Tue, 18 Aug 2009 22:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-577</guid>
		<description>what is the name and path of the first file you created? it&#039;s very difficult for a newbie to figure it out.</description>
		<content:encoded><![CDATA[<p>what is the name and path of the first file you created? it&#8217;s very difficult for a newbie to figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-567</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 04 Aug 2009 22:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-567</guid>
		<description>Hello Antoine, I am having similar problems. Did you ever get this to working?</description>
		<content:encoded><![CDATA[<p>Hello Antoine, I am having similar problems. Did you ever get this to working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antoine</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-548</link>
		<dc:creator>Antoine</dc:creator>
		<pubDate>Mon, 13 Jul 2009 21:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-548</guid>
		<description>Nice, haven&#039;t got your example working yet using 1.4-rc6;

- for wicket-spring-annot version doesn&#039;t work, seems like there are only versions for the 1.3 branch, so setting the version to 1.3.6 instead of ${wicket.version} should do the trick

- something seems to have gone wrong with the interceptor bean: 

    

replacing the com.mycompany by org.springframework.orm.hibernate3 does not seem to be enough so guess something else went missing


finally, it is not mentioned the first file is applicationContext.xml</description>
		<content:encoded><![CDATA[<p>Nice, haven&#8217;t got your example working yet using 1.4-rc6;</p>
<p>- for wicket-spring-annot version doesn&#8217;t work, seems like there are only versions for the 1.3 branch, so setting the version to 1.3.6 instead of ${wicket.version} should do the trick</p>
<p>- something seems to have gone wrong with the interceptor bean: </p>
<p>replacing the com.mycompany by org.springframework.orm.hibernate3 does not seem to be enough so guess something else went missing</p>
<p>finally, it is not mentioned the first file is applicationContext.xml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Lange</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-503</link>
		<dc:creator>Michael Lange</dc:creator>
		<pubDate>Fri, 05 Jun 2009 14:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-503</guid>
		<description>is the 

applicationClassName
com.mycompany.WicketApplication

really necessary ? in my configuration it works without it

im still working with wicket 1.4, is http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach still the way to use spring beans inside page (and other) wicket classes ?</description>
		<content:encoded><![CDATA[<p>is the </p>
<p>applicationClassName<br />
com.mycompany.WicketApplication</p>
<p>really necessary ? in my configuration it works without it</p>
<p>im still working with wicket 1.4, is <a href="http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach" rel="nofollow">http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach</a> still the way to use spring beans inside page (and other) wicket classes ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan F</title>
		<link>http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/comment-page-1/#comment-502</link>
		<dc:creator>Stefan F</dc:creator>
		<pubDate>Fri, 05 Jun 2009 08:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://wicketinaction.com/?p=385#comment-502</guid>
		<description>Cool stuff, bookmarked! This will certainly come in handy some day ;)

Could somebody make this to a maven archetype? That would be awesome!

Cheers, Stefan</description>
		<content:encoded><![CDATA[<p>Cool stuff, bookmarked! This will certainly come in handy some day ;)</p>
<p>Could somebody make this to a maven archetype? That would be awesome!</p>
<p>Cheers, Stefan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
