<?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>devnulled &#187; Frameworks</title>
	<atom:link href="http://devnulled.com/topics/frameworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://devnulled.com</link>
	<description>devnulled provides news, tips, resources, and articles about various topics that software developers and engineers enjoy.</description>
	<lastBuildDate>Wed, 18 Aug 2010 06:20:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Using Spring and Hibernate With JPA And Entity Interfaces</title>
		<link>http://devnulled.com/content/2009/03/using-spring-and-hibernate-with-jpa-and-entity-interfaces/</link>
		<comments>http://devnulled.com/content/2009/03/using-spring-and-hibernate-with-jpa-and-entity-interfaces/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 23:03:23 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[entity]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[jpa]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=753</guid>
		<description><![CDATA[I'm currently setting up a new Hibernate project and finally getting around to trying out JPA annotations instead of using any Hibernate configuration or mapping files-- what the hell took me so long!!??! Anyhow, among the many gotchas I came across, one was how to deal with using Interfaces with Hibernate entity beans and associations. [...]]]></description>
			<content:encoded><![CDATA[<p>I'm currently setting up a new Hibernate project and finally getting around to trying out JPA annotations instead of using any Hibernate configuration or mapping files-- what the hell took me so long!!??!  Anyhow, among the many gotchas I came across, one was how to deal with using Interfaces with Hibernate entity beans and associations.  </p>
<p>When you declare an association to a Hibernate Entity with an Interface without using the correct annotation syntax to point Hibernate at the implementing class, you will likely see exceptions like this while running JUnit 4 tests in Eclipse:</p>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showCodeTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">java.<span style="">lang</span>.<span style="">IllegalStateException</span>: Failed to load ApplicationContext</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">TestContext</span>.<span style="">getApplicationContext</span><span style="color:#006600; font-weight:bold;">&#40;</span>TestContext.<span style="">java</span>:<span style="color:#800000;color:#800000;">201</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">support</span>.<span style="">DependencyInjectionTestExecutionListener</span>.<span style="">injectDependencies</span><span style="color:#006600; font-weight:bold;">&#40;</span>DependencyInjectionTestExecutionListener.<span style="">java</span>:<span style="color:#800000;color:#800000;">109</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">support</span>.<span style="">DependencyInjectionTestExecutionListener</span>.<span style="">prepareTestInstance</span><span style="color:#006600; font-weight:bold;">&#40;</span>DependencyInjectionTestExecutionListener.<span style="">java</span>:<span style="color:#800000;color:#800000;">75</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">TestContextManager</span>.<span style="">prepareTestInstance</span><span style="color:#006600; font-weight:bold;">&#40;</span>TestContextManager.<span style="">java</span>:<span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">junit4</span>.<span style="">SpringJUnit4ClassRunner</span>.<span style="">createTest</span><span style="color:#006600; font-weight:bold;">&#40;</span>SpringJUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">111</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">junit4</span>.<span style="">SpringJUnit4ClassRunner</span>.<span style="">invokeTestMethod</span><span style="color:#006600; font-weight:bold;">&#40;</span>SpringJUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">148</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">JUnit4ClassRunner</span>.<span style="">runMethods</span><span style="color:#006600; font-weight:bold;">&#40;</span>JUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">51</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">JUnit4ClassRunner</span>$<span style="color:#800000;color:#800000;">1</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>JUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">44</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">ClassRoadie</span>.<span style="">runUnprotected</span><span style="color:#006600; font-weight:bold;">&#40;</span>ClassRoadie.<span style="">java</span>:<span style="color:#800000;color:#800000;">27</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">ClassRoadie</span>.<span style="">runProtected</span><span style="color:#006600; font-weight:bold;">&#40;</span>ClassRoadie.<span style="">java</span>:<span style="color:#800000;color:#800000;">37</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">JUnit4ClassRunner</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>JUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">42</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">junit4</span>.<span style="">SpringJUnit4ClassRunner</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>SpringJUnit4ClassRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">97</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">CompositeRunner</span>.<span style="">runChildren</span><span style="color:#006600; font-weight:bold;">&#40;</span>CompositeRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">33</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">runners</span>.<span style="">Suite</span>.<span style="">access</span>$<span style="color:#800000;color:#800000;">000</span><span style="color:#006600; font-weight:bold;">&#40;</span>Suite.<span style="">java</span>:<span style="color:#800000;color:#800000;">26</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">runners</span>.<span style="">Suite</span>$<span style="color:#800000;color:#800000;">1</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>Suite.<span style="">java</span>:<span style="color:#800000;color:#800000;">93</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">ClassRoadie</span>.<span style="">runUnprotected</span><span style="color:#006600; font-weight:bold;">&#40;</span>ClassRoadie.<span style="">java</span>:<span style="color:#800000;color:#800000;">27</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">internal</span>.<span style="">runners</span>.<span style="">ClassRoadie</span>.<span style="">runProtected</span><span style="color:#006600; font-weight:bold;">&#40;</span>ClassRoadie.<span style="">java</span>:<span style="color:#800000;color:#800000;">37</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">junit</span>.<span style="">runners</span>.<span style="">Suite</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>Suite.<span style="">java</span>:<span style="color:#800000;color:#800000;">91</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit4</span>.<span style="">runner</span>.<span style="">JUnit4TestReference</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>JUnit4TestReference.<span style="">java</span>:<span style="color:#800000;color:#800000;">38</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit</span>.<span style="">runner</span>.<span style="">TestExecution</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>TestExecution.<span style="">java</span>:<span style="color:#800000;color:#800000;">38</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit</span>.<span style="">runner</span>.<span style="">RemoteTestRunner</span>.<span style="">runTests</span><span style="color:#006600; font-weight:bold;">&#40;</span>RemoteTestRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">460</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit</span>.<span style="">runner</span>.<span style="">RemoteTestRunner</span>.<span style="">runTests</span><span style="color:#006600; font-weight:bold;">&#40;</span>RemoteTestRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">673</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit</span>.<span style="">runner</span>.<span style="">RemoteTestRunner</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>RemoteTestRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">386</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">eclipse</span>.<span style="">jdt</span>.<span style="">internal</span>.<span style="">junit</span>.<span style="">runner</span>.<span style="">RemoteTestRunner</span>.<span style="">main</span><span style="color:#006600; font-weight:bold;">&#40;</span>RemoteTestRunner.<span style="">java</span>:<span style="color:#800000;color:#800000;">196</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Caused by: org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">BeanCreationException</span>: Error creating bean with name <span style="color:#CC0000;">'geoSessionFactory'</span> defined in class path resource <span style="color:#006600; font-weight:bold;">&#91;</span>com/peerdigital/spring/applicationContext.<span style="">xml</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Invocation of init method failed; nested exception is org.<span style="">hibernate</span>.<span style="">AnnotationException</span>: @OneToOne or @ManyToOne on com.<span style="">peerdigital</span>.<span style="">geolocation</span>.<span style="">model</span>.<span style="">DefaultCountryEntityImpl</span>.<span style="">regionEntity</span> references an unknown entity: com.<span style="">peerdigital</span>.<span style="">geolocation</span>.<span style="">model</span>.<span style="">DefaultRegionEntityImpl</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>.<span style="">initializeBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">1338</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>.<span style="">doCreateBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">473</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>$<span style="color:#800000;color:#800000;">1</span>.<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">409</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at java.<span style="">security</span>.<span style="">AccessController</span>.<span style="">doPrivileged</span><span style="color:#006600; font-weight:bold;">&#40;</span>Native Method<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>.<span style="">createBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">380</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractBeanFactory</span>$<span style="color:#800000;color:#800000;">1</span>.<span style="">getObject</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">264</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">DefaultSingletonBeanRegistry</span>.<span style="">getSingleton</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultSingletonBeanRegistry.<span style="">java</span>:<span style="color:#800000;color:#800000;">222</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractBeanFactory</span>.<span style="">doGetBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">261</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractBeanFactory</span>.<span style="">getBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">185</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractBeanFactory</span>.<span style="">getBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">164</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">DefaultListableBeanFactory</span>.<span style="">preInstantiateSingletons</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultListableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">423</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">context</span>.<span style="">support</span>.<span style="">AbstractApplicationContext</span>.<span style="">finishBeanFactoryInitialization</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractApplicationContext.<span style="">java</span>:<span style="color:#800000;color:#800000;">728</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">context</span>.<span style="">support</span>.<span style="">AbstractApplicationContext</span>.<span style="">refresh</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractApplicationContext.<span style="">java</span>:<span style="color:#800000;color:#800000;">380</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">support</span>.<span style="">AbstractGenericContextLoader</span>.<span style="">loadContext</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractGenericContextLoader.<span style="">java</span>:<span style="color:#800000;color:#800000;">84</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">support</span>.<span style="">AbstractGenericContextLoader</span>.<span style="">loadContext</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractGenericContextLoader.<span style="">java</span>:<span style="color:#800000;color:#800000;">42</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">TestContext</span>.<span style="">loadApplicationContext</span><span style="color:#006600; font-weight:bold;">&#40;</span>TestContext.<span style="">java</span>:<span style="color:#800000;color:#800000;">173</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">test</span>.<span style="">context</span>.<span style="">TestContext</span>.<span style="">getApplicationContext</span><span style="color:#006600; font-weight:bold;">&#40;</span>TestContext.<span style="">java</span>:<span style="color:#800000;color:#800000;">197</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ... <span style="color:#800000;color:#800000;">23</span> more</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Caused by: org.<span style="">hibernate</span>.<span style="">AnnotationException</span>: @OneToOne or @ManyToOne on com.<span style="">peerdigital</span>.<span style="">geolocation</span>.<span style="">model</span>.<span style="">DefaultCountryEntityImpl</span>.<span style="">regionEntity</span> references an unknown entity: com.<span style="">peerdigital</span>.<span style="">geolocation</span>.<span style="">model</span>.<span style="">DefaultRegionEntityImpl</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">hibernate</span>.<span style="">cfg</span>.<span style="">ToOneFkSecondPass</span>.<span style="">doSecondPass</span><span style="color:#006600; font-weight:bold;">&#40;</span>ToOneFkSecondPass.<span style="">java</span>:<span style="color:#800000;color:#800000;">81</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">hibernate</span>.<span style="">cfg</span>.<span style="">AnnotationConfiguration</span>.<span style="">processEndOfQueue</span><span style="color:#006600; font-weight:bold;">&#40;</span>AnnotationConfiguration.<span style="">java</span>:<span style="color:#800000;color:#800000;">456</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">hibernate</span>.<span style="">cfg</span>.<span style="">AnnotationConfiguration</span>.<span style="">processFkSecondPassInOrder</span><span style="color:#006600; font-weight:bold;">&#40;</span>AnnotationConfiguration.<span style="">java</span>:<span style="color:#800000;color:#800000;">438</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">hibernate</span>.<span style="">cfg</span>.<span style="">AnnotationConfiguration</span>.<span style="">secondPassCompile</span><span style="color:#006600; font-weight:bold;">&#40;</span>AnnotationConfiguration.<span style="">java</span>:<span style="color:#800000;color:#800000;">309</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">hibernate</span>.<span style="">cfg</span>.<span style="">Configuration</span>.<span style="">buildMappings</span><span style="color:#006600; font-weight:bold;">&#40;</span>Configuration.<span style="">java</span>:<span style="color:#800000;color:#800000;">1148</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">orm</span>.<span style="">hibernate3</span>.<span style="">LocalSessionFactoryBean</span>.<span style="">buildSessionFactory</span><span style="color:#006600; font-weight:bold;">&#40;</span>LocalSessionFactoryBean.<span style="">java</span>:<span style="color:#800000;color:#800000;">673</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">orm</span>.<span style="">hibernate3</span>.<span style="">AbstractSessionFactoryBean</span>.<span style="">afterPropertiesSet</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractSessionFactoryBean.<span style="">java</span>:<span style="color:#800000;color:#800000;">211</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>.<span style="">invokeInitMethods</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">1369</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at org.<span style="">springframework</span>.<span style="">beans</span>.<span style="">factory</span>.<span style="">support</span>.<span style="">AbstractAutowireCapableBeanFactory</span>.<span style="">initializeBean</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractAutowireCapableBeanFactory.<span style="">java</span>:<span style="color:#800000;color:#800000;">1335</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ... <span style="color:#800000;color:#800000;">39</span> more </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Most of the solutions I saw made you create a duplicate persistence.xml that had all of the same information in it which seemed silly to me.   Eventually with the help of Google I came across the answer somewhere (which I no longer have around) which was to modify the field annotation to point at the class which implements the Interface:</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showCodeTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@ManyToOne<span style="color:#006600; font-weight:bold;">&#40;</span>targetEntity = DefaultRegionEntityImpl.<span style="">class</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@JoinColumn<span style="color:#006600; font-weight:bold;">&#40;</span>name = <span style="color:#CC0000;">"region_code_fk"</span>, referencedColumnName = <span style="color:#CC0000;">"region_code_pk"</span>, insertable = false, updatable = false<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">private RegionEntity regionEntity; </div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>One other thing to check-- make sure your @Entity annotation is importing the JPA annotation (javax.persistence.Entity), and NOT the Hibernate annotation (org.hibernate.annotations.Entity).  If you import the Hibernate @Entity annotation it will not find the entity bean.</p>
<p>Hopefully that's of some help to someone.  Just a quick post-- back to work I go!</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2009/03/using-spring-and-hibernate-with-jpa-and-entity-interfaces/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Behind Python: Sun Hires Python &amp; Jython Developers</title>
		<link>http://devnulled.com/content/2008/03/getting-behind-python-sun-hires-python-jython-developers/</link>
		<comments>http://devnulled.com/content/2008/03/getting-behind-python-sun-hires-python-jython-developers/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 08:02:14 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Disciplines]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2008/03/getting-behind-python-sun-hires-python-jython-developers/</guid>
		<description><![CDATA[As both a fan and user of the great technologies Python, and the Sun JVM (primarily via Java), I was very happy to come across this eWeek article which says that Sun announced the hiring of two key Python engineers. You can read more about the hiring of Ted Leung and Frank Wierzbicki at their [...]]]></description>
			<content:encoded><![CDATA[<p>As both a fan and user of the great technologies <a href="http://www.python.org/">Python</a>, and the <a href="http://en.wikipedia.org/wiki/Java_Virtual_Machine">Sun JVM</a> (primarily via Java), <img src='http://devnulled.com/wp-content/uploads/2008/03/jython.png' alt='jython.png' hspace="20" vspace="20" align="left" />   I was very happy to come across <a href="http://www.eweek.com/c/a/Application-Development/Sun-Hires-Python-Experts/">this eWeek article</a> which says that Sun announced the hiring of two key Python engineers. You can read more about the <a href="http://www.sauria.com/blog/2008/03/03/the-sun-is-going-to-shine-on-python/">hiring of Ted Leung</a> and <a href="http://fwierzbicki.blogspot.com/2008/02/jythons-future-looking-sunny.html">Frank Wierzbicki</a> at their respective blogs.  </p>
<p>I had pretty much written off <a href="http://www.jython.org/">Jython</a> as being dead quite some time ago, but luckily it has had <a href="http://www.jython.org/Project/news.html">a lot of recent activity</a> and is starting to catch back up with C-Python.  By both hiring key <a href="http://jruby.codehaus.org/">JRuby</a> and Jython developers, it looks like Sun is making sure the JVM stays relevant beyond Java and continues to evolve as what in my opinion is the best option for cross-platform applications.  </p>
<p>Having a long background in <a href="http://www.adobe.com/products/coldfusion/">ColdFusion</a> (an Adobe language which compiles down to Java bytecode and runs on the JVM), I've seen first hand the benefits of moving a language to the JVM, and I look forward to seeing more progress on both JRuby and Jython on the JVM.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2008/03/getting-behind-python-sun-hires-python-jython-developers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maven: Including Axis2 Artifacts into EAR&#8217;s</title>
		<link>http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/</link>
		<comments>http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 06:27:42 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[A Day In The Life Of]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[aar]]></category>
		<category><![CDATA[axis2]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[ear]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mar]]></category>
		<category><![CDATA[maven-ear-plugin]]></category>
		<category><![CDATA[maven2]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[war]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/</guid>
		<description><![CDATA[I'm going to skip over a rant about how much Axis2 sucks in order to pass a tip on how to include Axis2 artifacts (AAR's, MAR's, etc) into an EAR file using the Maven plugin to package EAR files, maven-ear-plugin. It's a pretty obvious solution but if you're in a hurry like I've been to [...]]]></description>
			<content:encoded><![CDATA[<p>I'm going to skip over a rant about how much <a href="http://www.bileblog.org/?p=30">Axis2 sucks</a> in order to pass a tip on how to include <a href="http://ws.apache.org/axis2/">Axis2</a> artifacts (AAR's, MAR's, etc) into an EAR file using the <a href="http://maven.apache.org/">Maven</a> plugin to package EAR files, <a href="http://maven.apache.org/plugins/maven-ear-plugin/">maven-ear-plugin</a>.  It's a pretty obvious solution but if you're in a hurry like I've been to convert a project from a single WAR to one with several EJB's, a WAR, etc, there are a lot of new things to learn all at the same time (how <a href="http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases">classloading works with EAR's in JBoss</a>, how to share the same <a href="http://www.hibernate.org/">Hibernate</a> transactions between your web app and EJB's, etc), and this was one of those little things which wasn't immediately obvious.  If you're seeing exceptions like these when trying to package an EAR in Maven:</p>
<div class="igBar"><span id="lcode-7"><a href="#" onclick="javascript:showCodeTxt('code-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-7">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">------------------------------------------------------------------------</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>ERROR<span style="color:#006600; font-weight:bold;">&#93;</span> BUILD ERROR</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">------------------------------------------------------------------------</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span> Failed to initialize ear modules</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Embedded error: Unknown artifact type<span style="color:#006600; font-weight:bold;">&#91;</span>mar<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">------------------------------------------------------------------------</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>DEBUG<span style="color:#006600; font-weight:bold;">&#93;</span> Trace </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>... you've came to the right place.   <img src='http://devnulled.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There are many ways to setup your package structure under Maven2 to build EAR's, but essentially what I do is create a root level project which packages a given application into an EAR, and nothing more.  Once you have the maven-ear-plugin setup for the most part, all that you need to do is to tell the Maven EAR Plugin to treat the various Axis2 <strike>pieces of shit</strike> packages like JAR's:</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showCodeTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;plugin&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactid&gt;maven-ear-plugin&lt;/artifactid&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;configuration&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;archive&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;manifest&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;addclasspath&gt;true&lt;/addclasspath&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/manifest&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/archive&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifacttypemappings&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifacttypemapping type=<span style="color:#CC0000;">"mar"</span> mapping=<span style="color:#CC0000;">"jar"</span>/&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifacttypemapping type=<span style="color:#CC0000;">"aar"</span> mapping=<span style="color:#CC0000;">"jar"</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/artifacttypemappings&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/configuration&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/plugin&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is just one of many gotcha's I learned about while working on an aforementioned project.   In fact it's really pretty hard to find any comprehensive documentation on getting <a href="http://java.sun.com/products/ejb/">EJB3</a>, <a href="http://www.springframework.org/">Spring</a>, and Hibernate working together on JBoss with a typical Java web application, especially while using Maven.  I have a sample project I used to work through some of the integration issues with this, and will hopefully be able to wrap it up and add it to Google Code in the next few weeks to provide an example of getting all of these technologies to play together. </p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Releases Guice: A Java Dependency Injection Framework</title>
		<link>http://devnulled.com/content/2007/03/google-releases-guice-a-java-dependency-injection-framework/</link>
		<comments>http://devnulled.com/content/2007/03/google-releases-guice-a-java-dependency-injection-framework/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 05:39:14 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Disciplines]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[guice]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/03/google-releases-guice-a-java-dependency-injection-framework/</guid>
		<description><![CDATA[Google recently released yet another interesting piece of Java machinery, Guice. Given the direction that Spring 2.0 is going in, this looks like a good alternative if you're looking for a simple dependency injection framework. If you're curious about what is different between Guice and Spring, you can read more about their differences here.]]></description>
			<content:encoded><![CDATA[<p>Google recently released yet another interesting piece of Java machinery, <a href="http://code.google.com/p/google-guice/">Guice</a>.  Given the direction that <a href="http://www.springframework.org/">Spring</a> 2.0 is going in, this looks like a good alternative if you're looking for a simple dependency injection framework.  If you're curious about what is different between Guice and Spring, you can <a href="http://code.google.com/p/google-guice/wiki/SpringComparison">read more about their differences here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/03/google-releases-guice-a-java-dependency-injection-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technology Predictions for 2007</title>
		<link>http://devnulled.com/content/2007/01/technology-predictions-for-2007/</link>
		<comments>http://devnulled.com/content/2007/01/technology-predictions-for-2007/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 07:00:47 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ruby_on_rails]]></category>
		<category><![CDATA[server-virtualization]]></category>
		<category><![CDATA[slashdot]]></category>
		<category><![CDATA[technology_predictions]]></category>
		<category><![CDATA[technology_trends]]></category>
		<category><![CDATA[virtual_servers]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/01/technology-predictions-for-2007/</guid>
		<description><![CDATA[A couple of weeks ago Sys-Con published various industry opinions of what we'd see in 2007 in many of it's magazines. The article showed-up on Slashdot (with a misleading title) among other places and included various industry luminaries. A couple of people you might of heard of contributed to the article including David Heinemeier Hansson [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago Sys-Con published <a href="http://java.sys-con.com/read/313594.htm">various industry opinions of what we'd see in 2007</a> in many of it's magazines.  The article <a href="http://developers.slashdot.org/article.pl?sid=06/12/17/0237234">showed-up on Slashdot</a> (with a misleading title) among other places and included various industry luminaries.  A couple of people you might of heard of contributed to the article including <a href="http://www.loudthinking.com/">David Heinemeier Hansson</a> (creator of <a href="http://www.rubyonrails.org/">Ruby on Rails</a>) as well as <a href="http://java.sys-con.com/read/313594_2.htm">myself</a>.  It looks like my response for the article was edited a bit for content length and doesn't quite make sense in spots, so I thought I'd repost it in original form below:</p>
<p><strong>My Technology Predictions for 2007</strong></p>
<p>In general, I think this oncoming year will be one in which a lot technology built in the last several years becomes less of a burden, and more of a utility.  That said, the top five technology trends I see happening in the new year are:</p>
<p>1.  Server virtualization is just getting started, and will really make itself known in the coming year.  Once we start seeing the quad core CPU architectures as a part of standard infrastructure, it really starts making a lot of sense to start deploying and managing servers and applications as virtual entities rather than specific pieces of hardware.  This helps manage the cost and pain of software configuration management, take advantage of being able to process many tasks simultaneously because of hardware support, as well as allows legacy hardware to be retired in favor of applications running on virtual servers.</p>
<p>2.  Container based hosting is the new kid on the block, and will also start making it's presence known in the upcoming year.  Commonly labeled as "grid" hosting (which is a technical misnomer if you understand distributed computing), it essentially claims to be an infinitely scalable hosting platform.  This technology still seems to be half-baked at the moment, but you could have said the same thing about Linux ten years ago.</p>
<p>3. People who normally wouldn't use Linux start to explore it and even replace Windows with it permanently.  With Vista, Microsoft seems to be moving to a model in which the Windows operating system is a method to police users with DRM and other nonsense rather than provide developers a good platform on which to use hardware which is what Operating Systems are really supposed to be.  A lot more consumers who haven't noticed this happening in the past will stand-up and notice this year.</p>
<p>4. Dynamic languages and frameworks will continue to make leaps in popularity and adoption.  Given the current squeeze on technology talent in the US, companies are going to have to learn how to do more with less resources.  Moving to dynamic languages and frameworks as well as other simplification such as varying Agile software development practices will enable this to take place.  I think the obvious leading candidates here are Ruby on Rails and Django.</p>
<p>5. The enterprise will embrace ways to simplify development by continuing to embrace open source software and Agile development strategies. While there are a lot of cries to the effect of Ruby on Rails replacing Java, I think that's complete nonsense as Java is a language and Ruby on Rails is a framework.  Rapid development languages will certainly make some inroads, particularly where heavy tools have been used to build simple applications, Java is still going to be a major part of the service oriented enterprise for years to come because of the power and tools it provides as well as it's industry support.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/01/technology-predictions-for-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->