<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>devnulled</title>
	
	<link>http://devnulled.com</link>
	<description>words about things that software engineers enjoy</description>
	<lastBuildDate>Tue, 24 Jan 2012 14:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<feedburner:info uri="devnulled" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>39.866785</geo:lat><geo:long>-105.041436</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://devnulled.com/feed/" /><feedburner:emailServiceId>Devnulled</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://devnulled.com/feed/" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Fdevnulled.com%2Ffeed%2F" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Six Steps For Troubleshooting Instability, Crashes and Freezes In Lion</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/00LZ8Chzi3k/</link>
		<comments>http://devnulled.com/six-steps-for-troubleshooting-instability-crashes-and-freezes-in-lion/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 16:19:10 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Apple Inc.]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[crashes]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[instability]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[Mac OS X Snow Leopard]]></category>
		<category><![CDATA[Mac OS X v10.5]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[operating-system]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=1295</guid>
		<description>&lt;p&gt;My primary home machine as of this writing is a 2008 model MacBook Pro, and every since I have upgraded it to MacOS X Lion, I&amp;#8217;ve have had nothing but problems with it. I held of on upgrading until iOS &amp;#8230; &lt;a href="http://devnulled.com/six-steps-for-troubleshooting-instability-crashes-and-freezes-in-lion/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Jc1QUwS1MAdhvX6xldGuZLcpYas/0/da"><img src="http://feedads.g.doubleclick.net/~a/Jc1QUwS1MAdhvX6xldGuZLcpYas/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Jc1QUwS1MAdhvX6xldGuZLcpYas/1/da"><img src="http://feedads.g.doubleclick.net/~a/Jc1QUwS1MAdhvX6xldGuZLcpYas/1/di" border="0" ismap="true"></img></a></p><p>My primary home machine as of this writing is a 2008 model MacBook Pro, and every since I have upgraded it to MacOS X Lion, I&#8217;ve have had nothing but problems with it.  I held of on upgrading until iOS 5 came-out, which then needed Lion for iCloud support.  I gave in and ended-up spending several months troubleshooting various problems to get my machine back into a usable state.</p>
<p>This blog post is not the end-all authorative information about how to fix instability problems in Lion, it is however a quick guide of things to check if you are an experienced Unix/MacOS user.  I don&#8217;t outline the steps down to the actions you must perform, it&#8217;s just an overview on what you should check.  There are no guarantees that any of this will fix your problems, and you should have an expert do this for you if any of this stuff is unfamilliar to you.</p>
<p><img src="http://cdn.devnulled.com/wp-content/uploads/2012/01/mac_os_x_2.jpg" alt="" title="Mac OS X Lion" width="600" height="307" class="aligncenter size-full wp-image-1300" /></p>
<p>Out of all of the things I read about people having problems with Lion, the culprit in at least 95% of the situations was old software interferring with Lion.  Given that I have taken my machine from Leopard, to Snow Leopard, to Lion, there were bound to be problems leftover from old software.</p>
<p>The most important thing I have learned in this process is that Lion is not an operating system you want to upgrade to because it has a lot of massive changes in it.  <strong>Do everything you can to only use Lion from a clean install.  I can&#8217;t stress this enough.</strong>  You will spend much less time getting your machine back to a usable state by doing a clean install than you would having to troubleshoot this stuff.  In hindsight I&#8217;m still at least a little bit glad I didn&#8217;t because I learned a lot in the process, and getting Lion usable again has been a frustrating but somewhat rewarding experience.</p>
<p>Now that I&#8217;ve got all of that out of the way, here are some of the steps you should do in order to figure out why your machine keeps locking up:</p>
<p><strong>1.  Review Log Files</strong></p>
<p>This is the quickest and most valuable step in figuring out what is going on.  If you&#8217;re lucky, there will be all kind of different traces of badness happening including kernel panics.  Google for anything suspicious you see in log files, and fix it if possible.</p>
<p><strong>2.  Make Sure Your Hardware Is In Good Working Order</strong></p>
<p>You could actually have some sort of hardware problem that is making Lion crash.  Maybe you have RAM that is not working correctly, a problem with your video card, etc.  Make sure your hardware is not an issue.</p>
<p><strong>3.  Repair Disk &#038; Disk Permissions</strong></p>
<p>This is a pretty good thing to do in general when you are having system problems.  It doesn&#8217;t take long to run, and it will almost always find something wrong, especially if you are experencing crashes.</p>
<p><strong>3.  Update/Uninstall Always Running Applications and Daemons</strong></p>
<p>Are you running up to date software for everything that runs at startup?  Some suspects would include software like Little Snitch and Dropbox.  This sort of software almost never updates itself automatically, so make sure you are running the latest versions of programs that run at start-up or as daemon processes.</p>
<p><strong>4.  Update Frequently Used Applications</strong></p>
<p>What programs do you usually have open when you experience a lock-up/crash?  You should probably make sure they are all the latest versions.  Run them one at a time and see which one causes Lion to crash.</p>
<p>For me, during troubleshooting I narrowed it down to Google Chrome.  I instead ran Firefox for awhile and the crashes went away.  Eventually I switched Chrome to the dev channel and it seemed to be stable, but I had already done a bunch of other stuff in the process so no idea if that was actually the fix or not.</p>
<p><strong>5.  Remove old Kernel Extensions</strong></p>
<p>This one is kind of nasty and you could end-up really hosing your system.  Be very careful while doing this.  I ended-up finding a very old Cisco VPN extension from 2007, and well as some library called &#8220;Soundflower&#8221; or something like that which was also incredibly out of date.</p>
<p><strong>6.  Do A Clean Install Of Lion</strong></p>
<p>If you&#8217;ve done all of the steps above and are still having problems, I would suggest a clean install of Lion.  If you continue to have problems even after a clean install, you likely have a hardware problem.</p>
<p>Honestly I&#8217;ve had an almost finished blog post in my drafts folder with a lot of bile and hate for Lion for at least a month or two after seemingly wasting so much time trying to figure out what the problem was.  However after running through all of these steps several times to make sure I didn&#8217;t miss anything, my old MacBook Pro from 2008 is stable again!</p>
<p>I can&#8217;t exactly point my finger at Apple for the problems I&#8217;ve had as I would say they were likely the fault of old software.  I have certainly not been that happy with them as of late, though.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=00LZ8Chzi3k:odmyGZ60YFc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=00LZ8Chzi3k:odmyGZ60YFc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=00LZ8Chzi3k:odmyGZ60YFc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=00LZ8Chzi3k:odmyGZ60YFc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=00LZ8Chzi3k:odmyGZ60YFc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=00LZ8Chzi3k:odmyGZ60YFc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=00LZ8Chzi3k:odmyGZ60YFc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/00LZ8Chzi3k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/six-steps-for-troubleshooting-instability-crashes-and-freezes-in-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://devnulled.com/six-steps-for-troubleshooting-instability-crashes-and-freezes-in-lion/</feedburner:origLink></item>
		<item>
		<title>Coming Out of Hibernation</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/_e2P-fKOdY4/</link>
		<comments>http://devnulled.com/coming-out-of-hibernation/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 08:43:52 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=963</guid>
		<description>&lt;p&gt;This site, to some degree, has been online since the first part of 2003. Given that it&amp;#8217;s almost 9 years old now, it certainly has some baggage associated with it. Over the past few years I&amp;#8217;ve been severely neglecting it; &amp;#8230; &lt;a href="http://devnulled.com/coming-out-of-hibernation/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/kSitAdi8kI95CT6tfGUH8xMpM4Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/kSitAdi8kI95CT6tfGUH8xMpM4Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kSitAdi8kI95CT6tfGUH8xMpM4Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/kSitAdi8kI95CT6tfGUH8xMpM4Y/1/di" border="0" ismap="true"></img></a></p><p>This site, to some degree, has been online since the first part of 2003.  Given that it&#8217;s almost 9 years old now, it certainly has some baggage associated with it.  Over the past few years I&#8217;ve been severely neglecting it; every since I lost a custom theme I&#8217;d coded by hand, I just never found one I was very happy with.  Also around the same time, I signed-up for Twitter, then left a job I had been at for 4 years to join a startup and things have just been crazy every since between my career and personal life.  I have about twice as many followers on Twitter than I do RSS readers of this blog, and it&#8217;s time to change that!</p>
<p>The state of my blog has been killing me and it was time to update it.  I&#8217;ve had the last week off of work and have spent a portion of it ripping the guts out of this blog and replacing them.  New theme, almost all new plugins, etc.  Other than starting off on a new blogging platform, it&#8217;s pretty much been done to this site.  I still have some editing and purging of old entries to do, but I wanted to iterate quickly and get something out the door TODAY.</p>
<p>I&#8217;m pretty pleased as to how it&#8217;s turned-out and plan on trying to blog more frequently.  If that doesn&#8217;t happen, I suppose I may as well shut it down or rethink it a bit.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=_e2P-fKOdY4:1Z5EjVyK6TY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=_e2P-fKOdY4:1Z5EjVyK6TY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=_e2P-fKOdY4:1Z5EjVyK6TY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=_e2P-fKOdY4:1Z5EjVyK6TY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=_e2P-fKOdY4:1Z5EjVyK6TY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=_e2P-fKOdY4:1Z5EjVyK6TY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=_e2P-fKOdY4:1Z5EjVyK6TY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/_e2P-fKOdY4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/coming-out-of-hibernation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://devnulled.com/coming-out-of-hibernation/</feedburner:origLink></item>
		<item>
		<title>Hot Corners Stopped Working on Mac OS X</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/n32PLBtY-J8/</link>
		<comments>http://devnulled.com/hot-corners-stopped-working-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 05:38:06 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[hot corners]]></category>
		<category><![CDATA[hot corners broken]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[macos]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=807</guid>
		<description>&lt;p&gt;Like many Mac users, I use hot corners to start my password protected screensaver when I&amp;#8217;m ready to walk away from my desk. Seemingly out of the blue, I was unable to use hot corners any longer. I tried changing &amp;#8230; &lt;a href="http://devnulled.com/hot-corners-stopped-working-on-mac-os-x/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/iluuVC00ZK0G78yrpfer2eUSj1U/0/da"><img src="http://feedads.g.doubleclick.net/~a/iluuVC00ZK0G78yrpfer2eUSj1U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iluuVC00ZK0G78yrpfer2eUSj1U/1/da"><img src="http://feedads.g.doubleclick.net/~a/iluuVC00ZK0G78yrpfer2eUSj1U/1/di" border="0" ismap="true"></img></a></p><p>Like many Mac users, I use hot corners to start my password protected screensaver when I&#8217;m ready to walk away from my desk.  Seemingly out of the blue, I was unable to use hot corners any longer.  I tried changing the settings, added another hot corner, etc, and nothing seemed to work.  Finally after much googling I found a thread on apple.com with other people having the same problem.  Most of the solutions said to reboot which I didn&#8217;t really want to do, but eventually someone else found a way to fix the problem:</p>
<blockquote><p>
a) Open up Activity Monitor (/Applications/Utilities/Activity Monitor)</p>
<p>b) In the search filter type &#8220;Dock&#8221;</p>
<p>c) Select the item in the list who&#8217;s Process Name is &#8220;Dock&#8221;</p>
<p>d) Click on Quit Process.</p>
<p>The Dock and Expose will be restarted and the problem should be solved.
</p></blockquote>
<p>Give that a whirl and hot corners should start working again for you.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=n32PLBtY-J8:7-ongHGBoxQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=n32PLBtY-J8:7-ongHGBoxQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=n32PLBtY-J8:7-ongHGBoxQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=n32PLBtY-J8:7-ongHGBoxQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=n32PLBtY-J8:7-ongHGBoxQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=n32PLBtY-J8:7-ongHGBoxQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=n32PLBtY-J8:7-ongHGBoxQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/n32PLBtY-J8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/hot-corners-stopped-working-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://devnulled.com/hot-corners-stopped-working-on-mac-os-x/</feedburner:origLink></item>
		<item>
		<title>Running Jetty 7 on Port 80 With Maven</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/mqew2nDLhCM/</link>
		<comments>http://devnulled.com/running-jetty-7-on-port-80-with-maven/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 06:20:43 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[jetty]]></category>
		<category><![CDATA[jetty 7]]></category>
		<category><![CDATA[jetty connector]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[mvn]]></category>
		<category><![CDATA[mvn jetty:run]]></category>
		<category><![CDATA[port 80]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=795</guid>
		<description>&lt;p&gt;I think Jetty is one of the best kept secrets in the Java world, in particular for getting a quick container up and running with full integration with Maven for local testing of Java based web applications. I was doing &amp;#8230; &lt;a href="http://devnulled.com/running-jetty-7-on-port-80-with-maven/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ObvTWyRegXXzYhytoUduOj1VnCU/0/da"><img src="http://feedads.g.doubleclick.net/~a/ObvTWyRegXXzYhytoUduOj1VnCU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ObvTWyRegXXzYhytoUduOj1VnCU/1/da"><img src="http://feedads.g.doubleclick.net/~a/ObvTWyRegXXzYhytoUduOj1VnCU/1/di" border="0" ismap="true"></img></a></p><p>I think <a href="http://www.eclipse.org/jetty/">Jetty</a> is one of the best kept secrets in the Java world, in particular for getting a quick container up and running with full integration with <a href="http://maven.apache.org/">Maven</a> for local testing of Java based web applications.  I was doing a non-stock configuration of Jetty 7 and Maven today which took way too much Googling to get working (mostly to custom configure the connector), so I thought I'd document the process for those looking for the same thing.  If you're looking how to get Jetty 7 working on Port 80 (particularly on Linux or OS X) with Maven, you're in the right place.  As of the time of writing, the latest stable release of Jetty looks to be 7.1.6.v20100715.</p>
<p>The three minor hurdles to configuring Jetty 7 and Maven are making sure port 80 is not already taken, getting the right connector implementation configured, and running Maven as sudo so that Jetty has permission to run on Port 80.  In OS X, you can see if anything is already running on port 80 by running the following command from Terminal:</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;">sudo lsof -i -P | grep -i listen </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If you're on OS X and see something running on Port 80 yet you didn't install a webserver, chances are it's Sharing.  Go to System Preferences > Sharing and disable it.  Otherwise, figure out what process is running on port 80 and make it go away.</p>
<p>Now to configure the Jetty Maven plug-in, here is what my configuration looks like which you should replicate in your pom.xml under the plugins section (and adjust to your particular directory structure and desired context):</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showCodeTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<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; &lt;groupid&gt;org.<span style="">mortbay</span>.<span style="">jetty</span>&lt;/groupid&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; &lt;artifactid&gt;jetty-maven-plugin&lt;/artifactid&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;version&gt;<span style="color:#800000;color:#800000;">7</span>.<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="">v20100715</span>&lt;/version&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; &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; &lt;connectors&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; &lt;connector implementation=<span style="color:#CC0000;">"org.eclipse.jetty.server.nio.SelectChannelConnector"</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; &lt;port&gt;<span style="color:#800000;color:#800000;">80</span>&lt;/port&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; &lt;/connector&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; &lt;/connectors&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; &lt;webappsourcedirectory&gt;$<span style="color:#006600; font-weight:bold;">&#123;</span>basedir<span style="color:#006600; font-weight:bold;">&#125;</span>/resources/war&lt;/webappsourcedirectory&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; &lt;scanintervalseconds&gt;<span style="color:#800000;color:#800000;">10</span>&lt;/scanintervalseconds&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; &lt;webappconfig&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;contextpath&gt;/&lt;/contextpath&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; &lt;/webappconfig&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/configuration&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;">&lt;/plugin&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>One of the difficulties I encountered was getting the connector working correctly.  Since Maven has moved to be an Eclipse project, the package structure for the connector has changed and thus the reason most of the existing documentation on getting custom connectors to work did not work for me.</p>
<p>The last remaining hurdle to overcome is that running a standard “mvn jetty:run” doesn't work on OS X (and likely Linux as well). You'll see the error message “Embedded error: Permission denied”.  If you run Maven with error stacktraces enabled, you'll see an exception that looks like this:</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showCodeTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<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> Jetty server exiting.</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;"><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;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span> Failure</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">Embedded error: Permission denied</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;"><span style="color:#006600; font-weight:bold;">&#91;</span>INFO<span style="color:#006600; font-weight:bold;">&#93;</span> Trace</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">org.<span style="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">LifecycleExecutionException</span>: Failure</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeGoals</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">719</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeStandaloneGoal</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">569</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeGoal</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">539</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeGoalAndHandleFailures</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">387</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeTaskSegments</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">348</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">180</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="">apache</span>.<span style="">maven</span>.<span style="">DefaultMaven</span>.<span style="">doExecute</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultMaven.<span style="">java</span>:<span style="color:#800000;color:#800000;">328</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="">apache</span>.<span style="">maven</span>.<span style="">DefaultMaven</span>.<span style="">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultMaven.<span style="">java</span>:<span style="color:#800000;color:#800000;">138</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="">apache</span>.<span style="">maven</span>.<span style="">cli</span>.<span style="">MavenCli</span>.<span style="">main</span><span style="color:#006600; font-weight:bold;">&#40;</span>MavenCli.<span style="">java</span>:<span style="color:#800000;color:#800000;">362</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="">apache</span>.<span style="">maven</span>.<span style="">cli</span>.<span style="">compat</span>.<span style="">CompatibleMain</span>.<span style="">main</span><span style="color:#006600; font-weight:bold;">&#40;</span>CompatibleMain.<span style="">java</span>:<span style="color:#800000;color:#800000;">60</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 sun.<span style="">reflect</span>.<span style="">NativeMethodAccessorImpl</span>.<span style="">invoke0</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-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at sun.<span style="">reflect</span>.<span style="">NativeMethodAccessorImpl</span>.<span style="">invoke</span><span style="color:#006600; font-weight:bold;">&#40;</span>NativeMethodAccessorImpl.<span style="">java</span>:<span style="color:#800000;color:#800000;">39</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 sun.<span style="">reflect</span>.<span style="">DelegatingMethodAccessorImpl</span>.<span style="">invoke</span><span style="color:#006600; font-weight:bold;">&#40;</span>DelegatingMethodAccessorImpl.<span style="">java</span>:<span style="color:#800000;color:#800000;">25</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="">lang</span>.<span style="">reflect</span>.<span style="">Method</span>.<span style="">invoke</span><span style="color:#006600; font-weight:bold;">&#40;</span>Method.<span style="">java</span>:<span style="color:#800000;color:#800000;">597</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="">codehaus</span>.<span style="">classworlds</span>.<span style="">Launcher</span>.<span style="">launchEnhanced</span><span style="color:#006600; font-weight:bold;">&#40;</span>Launcher.<span style="">java</span>:<span style="color:#800000;color:#800000;">315</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="">codehaus</span>.<span style="">classworlds</span>.<span style="">Launcher</span>.<span style="">launch</span><span style="color:#006600; font-weight:bold;">&#40;</span>Launcher.<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-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="">codehaus</span>.<span style="">classworlds</span>.<span style="">Launcher</span>.<span style="">mainWithExitCode</span><span style="color:#006600; font-weight:bold;">&#40;</span>Launcher.<span style="">java</span>:<span style="color:#800000;color:#800000;">430</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="">codehaus</span>.<span style="">classworlds</span>.<span style="">Launcher</span>.<span style="">main</span><span style="color:#006600; font-weight:bold;">&#40;</span>Launcher.<span style="">java</span>:<span style="color:#800000;color:#800000;">375</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;">Caused by: org.<span style="">apache</span>.<span style="">maven</span>.<span style="">plugin</span>.<span style="">MojoExecutionException</span>: Failure</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="">mortbay</span>.<span style="">jetty</span>.<span style="">plugin</span>.<span style="">AbstractJettyMojo</span>.<span style="">startJetty</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractJettyMojo.<span style="">java</span>:<span style="color:#800000;color:#800000;">462</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="">mortbay</span>.<span style="">jetty</span>.<span style="">plugin</span>.<span style="">AbstractJettyMojo</span>.<span style="">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractJettyMojo.<span style="">java</span>:<span style="color:#800000;color:#800000;">377</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="">mortbay</span>.<span style="">jetty</span>.<span style="">plugin</span>.<span style="">JettyRunMojo</span>.<span style="">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span>JettyRunMojo.<span style="">java</span>:<span style="color:#800000;color:#800000;">577</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="">apache</span>.<span style="">maven</span>.<span style="">plugin</span>.<span style="">DefaultPluginManager</span>.<span style="">executeMojo</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultPluginManager.<span style="">java</span>:<span style="color:#800000;color:#800000;">490</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="">apache</span>.<span style="">maven</span>.<span style="">lifecycle</span>.<span style="">DefaultLifecycleExecutor</span>.<span style="">executeGoals</span><span style="color:#006600; font-weight:bold;">&#40;</span>DefaultLifecycleExecutor.<span style="">java</span>:<span style="color:#800000;color:#800000;">694</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;">17</span> more</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Caused by: java.<span style="">net</span>.<span style="">SocketException</span>: Permission denied</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 sun.<span style="">nio</span>.<span style="">ch</span>.<span style="">Net</span>.<span style="">bind</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-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; at sun.<span style="">nio</span>.<span style="">ch</span>.<span style="">ServerSocketChannelImpl</span>.<span style="">bind</span><span style="color:#006600; font-weight:bold;">&#40;</span>ServerSocketChannelImpl.<span style="">java</span>:<span style="color:#800000;color:#800000;">119</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 sun.<span style="">nio</span>.<span style="">ch</span>.<span style="">ServerSocketAdaptor</span>.<span style="">bind</span><span style="color:#006600; font-weight:bold;">&#40;</span>ServerSocketAdaptor.<span style="">java</span>:<span style="color:#800000;color:#800000;">59</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="">jetty</span>.<span style="">server</span>.<span style="">nio</span>.<span style="">SelectChannelConnector</span>.<span style="">open</span><span style="color:#006600; font-weight:bold;">&#40;</span>SelectChannelConnector.<span style="">java</span>:<span style="color:#800000;color:#800000;">209</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="">jetty</span>.<span style="">server</span>.<span style="">nio</span>.<span style="">SelectChannelConnector</span>.<span style="">doStart</span><span style="color:#006600; font-weight:bold;">&#40;</span>SelectChannelConnector.<span style="">java</span>:<span style="color:#800000;color:#800000;">289</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="">jetty</span>.<span style="">util</span>.<span style="">component</span>.<span style="">AbstractLifeCycle</span>.<span style="">start</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractLifeCycle.<span style="">java</span>:<span style="color:#800000;color:#800000;">55</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="">jetty</span>.<span style="">server</span>.<span style="">Server</span>.<span style="">doStart</span><span style="color:#006600; font-weight:bold;">&#40;</span>Server.<span style="">java</span>:<span style="color:#800000;color:#800000;">253</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="">mortbay</span>.<span style="">jetty</span>.<span style="">plugin</span>.<span style="">JettyServer</span>.<span style="">doStart</span><span style="color:#006600; font-weight:bold;">&#40;</span>JettyServer.<span style="">java</span>:<span style="color:#800000;color:#800000;">67</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="">jetty</span>.<span style="">util</span>.<span style="">component</span>.<span style="">AbstractLifeCycle</span>.<span style="">start</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractLifeCycle.<span style="">java</span>:<span style="color:#800000;color:#800000;">55</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="">mortbay</span>.<span style="">jetty</span>.<span style="">plugin</span>.<span style="">AbstractJettyMojo</span>.<span style="">startJetty</span><span style="color:#006600; font-weight:bold;">&#40;</span>AbstractJettyMojo.<span style="">java</span>:<span style="color:#800000;color:#800000;">437</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;">21</span> more </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is because you need elevated permissions to run applications on lower ports on *nix based systems.  Simply run it as sudo, “sudo mvn jetty:run” and you'll be good to go.</p>
<p>Not a terribly tough problem to overcome on your own, but I thought I'd try and try to save someone some time if they run across the same issues.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=mqew2nDLhCM:73cLk8Br82Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=mqew2nDLhCM:73cLk8Br82Y:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=mqew2nDLhCM:73cLk8Br82Y:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=mqew2nDLhCM:73cLk8Br82Y:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=mqew2nDLhCM:73cLk8Br82Y:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=mqew2nDLhCM:73cLk8Br82Y:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=mqew2nDLhCM:73cLk8Br82Y:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/mqew2nDLhCM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/running-jetty-7-on-port-80-with-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://devnulled.com/running-jetty-7-on-port-80-with-maven/</feedburner:origLink></item>
		<item>
		<title>The Most Efficent Way to Increment A Map Value in Java</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/D7gIis5fgPU/</link>
		<comments>http://devnulled.com/the-most-efficent-way-to-increment-a-map-value-in-java/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 19:47:26 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[efficent]]></category>
		<category><![CDATA[increment]]></category>
		<category><![CDATA[increment value]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=768</guid>
		<description>&lt;p&gt;Finding myself in a situation of needing to increment values in a map in Java, I was curious to see what the most efficient way to do so. Said piece of code will be looped over thousands of times and &amp;#8230; &lt;a href="http://devnulled.com/the-most-efficent-way-to-increment-a-map-value-in-java/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/bIQUHOGsy1gRbg1qsrrgtlbK6hw/0/da"><img src="http://feedads.g.doubleclick.net/~a/bIQUHOGsy1gRbg1qsrrgtlbK6hw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/bIQUHOGsy1gRbg1qsrrgtlbK6hw/1/da"><img src="http://feedads.g.doubleclick.net/~a/bIQUHOGsy1gRbg1qsrrgtlbK6hw/1/di" border="0" ismap="true"></img></a></p><p>Finding myself in a situation of needing to increment values in a map in Java, I was curious to see what the most efficient way to do so.  Said piece of code will be looped over thousands of times and I wanted it to run as quickly possible.  Yes, I know that pre-optimization is the root of all evil, but in this case it was something I needed to be conscious of.</p>
<p>I found a <a href="http://stackoverflow.com/questions/81346/most-efficient-way-to-increment-a-map-value-in-java">question/thread on StackOverflow</a> where someone else had already pondered the same thing and got a long list of possible answers to compare to each other, including using <a href="http://commons.apache.org/">Apache Commons</a> and the <a href="http://code.google.com/p/google-collections/">Google Collections Library</a>.   After testing all of them, the fastest way ended-up being implementing a "MutableInt" class and using it as the value data type in the map:</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;">class MutableInt <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; int value = <span style="color:#800000;color:#800000;">0</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; public void inc <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> ++value; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; public int get <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> return value; <span style="color:#006600; font-weight:bold;">&#125;</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;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">Map&lt;string ,MutableInt&gt; map = new HashMap&lt;string ,MutableInt&gt;<span style="color:#006600; font-weight:bold;">&#40;</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;">MutableInt value = map.<span style="">get</span> <span style="color:#006600; font-weight:bold;">&#40;</span>key<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;">if <span style="color:#006600; font-weight:bold;">&#40;</span>value == null<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; value = new MutableInt <span style="color:#006600; font-weight:bold;">&#40;</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; map.<span style="">put</span> <span style="color:#006600; font-weight:bold;">&#40;</span>key, value<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;"><span style="color:#006600; font-weight:bold;">&#125;</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">value.<span style="">inc</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Pretty interesting stuff!  Note that the above code snippet is not very cleanly formatted, but you'll get the idea.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=D7gIis5fgPU:nVeWNPD0ADc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=D7gIis5fgPU:nVeWNPD0ADc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=D7gIis5fgPU:nVeWNPD0ADc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=D7gIis5fgPU:nVeWNPD0ADc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=D7gIis5fgPU:nVeWNPD0ADc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=D7gIis5fgPU:nVeWNPD0ADc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=D7gIis5fgPU:nVeWNPD0ADc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/D7gIis5fgPU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/the-most-efficent-way-to-increment-a-map-value-in-java/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://devnulled.com/the-most-efficent-way-to-increment-a-map-value-in-java/</feedburner:origLink></item>
		<item>
		<title>Fixing Remote Desktop in Snow Leopard</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/qnxeQ4RLghs/</link>
		<comments>http://devnulled.com/fixing-remote-desktop-in-snow-leopard/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:32:16 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[remote-desktop]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=764</guid>
		<description>&lt;p&gt;After upgrading to Snow Leopard on my MacBook Pro, I only found a couple of minor issues which were easily fixed. One of them was Microsoft&amp;#8217;s Remote Desktop Client crashing at startup when I ran it. Luckily the fix was &amp;#8230; &lt;a href="http://devnulled.com/fixing-remote-desktop-in-snow-leopard/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/CoJWWmYv5nkbcdZ-0Qvt0YPYrnk/0/da"><img src="http://feedads.g.doubleclick.net/~a/CoJWWmYv5nkbcdZ-0Qvt0YPYrnk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CoJWWmYv5nkbcdZ-0Qvt0YPYrnk/1/da"><img src="http://feedads.g.doubleclick.net/~a/CoJWWmYv5nkbcdZ-0Qvt0YPYrnk/1/di" border="0" ismap="true"></img></a></p><p>After upgrading to Snow Leopard on my MacBook Pro, I only found a couple of minor issues which were easily fixed.  One of them was Microsoft's Remote Desktop Client crashing at startup when I ran it.  Luckily the fix was very simple-- I simply downloaded the latest version from Microsoft and installed it again.  If you're having problems with Remote Desktop in Snow Leopard, give it a try!</p>
<p><a href="http://www.microsoft.com/mac/products/remote-desktop/default.mspx">Microsoft Remote Desktop for OS X</a></p>
<p>Alternatively, you can also try downloading CoRD, an open source Remote Desktop Client and installing it.  It seemed to have trouble connecting to my Windows XP workstation for whatever reason, but that doesn't mean it won't work for you of course.</p>
<p><a href="http://cord.sourceforge.net/">CoRD</a></p>
<blockquote><p>
CoRD is a Mac OS X remote desktop client for Microsoft Windows computers using the RDP protocol. It's easy to use, fast, and free for anyone to use or modify.
</p></blockquote>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=qnxeQ4RLghs:H8Q7ANrB6J8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=qnxeQ4RLghs:H8Q7ANrB6J8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=qnxeQ4RLghs:H8Q7ANrB6J8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=qnxeQ4RLghs:H8Q7ANrB6J8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=qnxeQ4RLghs:H8Q7ANrB6J8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=qnxeQ4RLghs:H8Q7ANrB6J8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=qnxeQ4RLghs:H8Q7ANrB6J8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/qnxeQ4RLghs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/fixing-remote-desktop-in-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://devnulled.com/fixing-remote-desktop-in-snow-leopard/</feedburner:origLink></item>
		<item>
		<title>Using Spring and Hibernate With JPA And Entity Interfaces</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/o8f-6L2yt9o/</link>
		<comments>http://devnulled.com/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[Languages]]></category>
		<category><![CDATA[entity]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jpa]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=753</guid>
		<description>&lt;p&gt;I&amp;#8217;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&amp;#8211; what the hell took me so long!!??! Anyhow, among the many gotchas I came &amp;#8230; &lt;a href="http://devnulled.com/using-spring-and-hibernate-with-jpa-and-entity-interfaces/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/oZ1OdtS66pVRQdAT6FdI0pV_eBk/0/da"><img src="http://feedads.g.doubleclick.net/~a/oZ1OdtS66pVRQdAT6FdI0pV_eBk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oZ1OdtS66pVRQdAT6FdI0pV_eBk/1/da"><img src="http://feedads.g.doubleclick.net/~a/oZ1OdtS66pVRQdAT6FdI0pV_eBk/1/di" border="0" ismap="true"></img></a></p><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-11"><a href="#" onclick="javascript:showCodeTxt('code-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-11">
<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-12"><a href="#" onclick="javascript:showCodeTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=o8f-6L2yt9o:Swz2agNW6yk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=o8f-6L2yt9o:Swz2agNW6yk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=o8f-6L2yt9o:Swz2agNW6yk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=o8f-6L2yt9o:Swz2agNW6yk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=o8f-6L2yt9o:Swz2agNW6yk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=o8f-6L2yt9o:Swz2agNW6yk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=o8f-6L2yt9o:Swz2agNW6yk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/o8f-6L2yt9o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/using-spring-and-hibernate-with-jpa-and-entity-interfaces/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://devnulled.com/using-spring-and-hibernate-with-jpa-and-entity-interfaces/</feedburner:origLink></item>
		<item>
		<title>How To Install Dig in Ubuntu Linux</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/rkYgi88bV_4/</link>
		<comments>http://devnulled.com/how-to-install-dig-in-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 16:26:49 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nslookup]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu-linux]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=742</guid>
		<description>&lt;p&gt;One tool I&amp;#8217;m used to having without installing (it&amp;#8217;s included by default in FreeBSD) is Dig (which is short for Domain Information Groper). Dig is a really handy tool for checking and troubleshooting DNS related issues once you learn how &amp;#8230; &lt;a href="http://devnulled.com/how-to-install-dig-in-ubuntu-linux/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/GgiGyRT9_xxG_PhDKw-Lc10ICxo/0/da"><img src="http://feedads.g.doubleclick.net/~a/GgiGyRT9_xxG_PhDKw-Lc10ICxo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GgiGyRT9_xxG_PhDKw-Lc10ICxo/1/da"><img src="http://feedads.g.doubleclick.net/~a/GgiGyRT9_xxG_PhDKw-Lc10ICxo/1/di" border="0" ismap="true"></img></a></p><p>One tool I'm used to having without installing (it's included by default in <a href="http://freebsd.org">FreeBSD</a>) is <a href="http://en.wikipedia.org/wiki/Domain_Information_Groper">Dig</a> (which is short for Domain Information Groper).  Dig is a really handy tool for checking and troubleshooting DNS related issues once you learn how to use it.   For instance, it makes it easy to see how your MX records are resolving:</p>
<div class="igBar"><span id="lcode-15"><a href="#" onclick="javascript:showCodeTxt('code-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-15">
<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;"># dig google.<span style="">com</span> mx</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">; &lt;&lt;&gt;&gt; DiG <span style="color:#800000;color:#800000;">9</span>.<span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">2</span>-P2.<span style="color:#800000;color:#800000;">1</span> &lt;&lt;&gt;&gt; google.<span style="">com</span> mx</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">;; global options:&nbsp; printcmd</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;">;; Got answer:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: <span style="color:#800000;color:#800000;">41334</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;">;; flags: qr rd ra; QUERY: <span style="color:#800000;color:#800000;">1</span>, ANSWER: <span style="color:#800000;color:#800000;">4</span>, AUTHORITY: <span style="color:#800000;color:#800000;">0</span>, ADDITIONAL: <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">;; QUESTION SECTION:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">;google.<span style="">com</span>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">IN</span>&nbsp; &nbsp; &nbsp; MX</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;">;; ANSWER SECTION:</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;">google.<span style="">com</span>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">10212</span>&nbsp; &nbsp;IN&nbsp; &nbsp; &nbsp; MX&nbsp; &nbsp; &nbsp; <span style="color:#800000;color:#800000;">10</span> smtp3.<span style="">google</span>.<span style="">com</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">google</span>.<span style="">com</span>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">10212</span>&nbsp; &nbsp;IN&nbsp; &nbsp; &nbsp; MX&nbsp; &nbsp; &nbsp; <span style="color:#800000;color:#800000;">10</span> smtp4.<span style="">google</span>.<span style="">com</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="">google</span>.<span style="">com</span>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">10212</span>&nbsp; &nbsp;IN&nbsp; &nbsp; &nbsp; MX&nbsp; &nbsp; &nbsp; <span style="color:#800000;color:#800000;">10</span> smtp1.<span style="">google</span>.<span style="">com</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">google</span>.<span style="">com</span>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;color:#800000;">10212</span>&nbsp; &nbsp;IN&nbsp; &nbsp; &nbsp; MX&nbsp; &nbsp; &nbsp; <span style="color:#800000;color:#800000;">10</span> smtp2.<span style="">google</span>.<span style="">com</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">;; Query time: <span style="color:#800000;color:#800000;">1</span> msec</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;">;; SERVER: <span style="color:#800000;color:#800000;">208</span>.<span style="color:#800000;color:#800000;">67</span>.<span style="color:#800000;color:#800000;">220</span>.<span style="color:#800000;color:#800000;">220</span>#53<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">208</span>.<span style="color:#800000;color:#800000;">67</span>.<span style="color:#800000;color:#800000;">220</span>.<span style="color:#800000;color:#800000;">220</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;">;; WHEN: Sat Nov&nbsp; <span style="color:#800000;color:#800000;">8</span> <span style="color:#800000;color:#800000;">02</span>:<span style="color:#800000;color:#800000;">56</span>:<span style="color:#800000;color:#800000;">08</span> <span style="color:#800000;color:#800000;">2008</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;">;; MSG SIZE&nbsp; rcvd: <span style="color:#800000;color:#800000;">116</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luckily this is easy to install, just not terribly intuitive or easy to find as it's not a package known as dig:</p>
<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showCodeTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<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;"># sudo apt-get install dnsutils </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That's pretty much it-- you should now be able to use dig!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=rkYgi88bV_4:gQNiGbttCE4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=rkYgi88bV_4:gQNiGbttCE4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=rkYgi88bV_4:gQNiGbttCE4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=rkYgi88bV_4:gQNiGbttCE4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=rkYgi88bV_4:gQNiGbttCE4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=rkYgi88bV_4:gQNiGbttCE4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=rkYgi88bV_4:gQNiGbttCE4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/rkYgi88bV_4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/how-to-install-dig-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://devnulled.com/how-to-install-dig-in-ubuntu-linux/</feedburner:origLink></item>
		<item>
		<title>All Files Up To Date</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/NiBgEoVBlUE/</link>
		<comments>http://devnulled.com/all-files-up-to-date/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 07:00:10 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[carrington]]></category>
		<category><![CDATA[status update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=726</guid>
		<description>&lt;p&gt;Wow, it&amp;#8217;s really been quite awhile since I&amp;#8217;ve wrote much regularly, and I hope to start reversing that trend. Ever since I f&amp;#8217;ed up the WordPress theme I did from scratch I&amp;#8217;ve been pretty unmotivated to do much at this &amp;#8230; &lt;a href="http://devnulled.com/all-files-up-to-date/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/73vAseFED_olpClomQ4qbJ_kcWA/0/da"><img src="http://feedads.g.doubleclick.net/~a/73vAseFED_olpClomQ4qbJ_kcWA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/73vAseFED_olpClomQ4qbJ_kcWA/1/da"><img src="http://feedads.g.doubleclick.net/~a/73vAseFED_olpClomQ4qbJ_kcWA/1/di" border="0" ismap="true"></img></a></p><p>Wow, it's really been quite awhile since I've wrote much regularly, and I hope to start reversing that trend.  Ever since I <a href="http://devnulled.com/content/2008/02/aaannnddd-were-back/">f'ed up the WordPress theme</a> I did from scratch I've been pretty unmotivated to do much at this blog.   I've looked through a zillion themes and found pretty glaring flaws in all of them, and didn't want to do one from scratch again.   I was browsing around at random over the weekend and came across the new theme you see now, <a href="http://carringtontheme.com/">Carrington</a>, at <a href="http://crowdfavorite.com/">Crowd Favorite</a> (which is local to me).    Next thing you know, I've upgraded all of my blogs to the latest version of WordPress, and even made this one look good again.   It still needs a little work, but I'm happy so far.   Hats off to Alex King and team at Crowd Favorite by producing a theme good enough to get me interested in my blog again.</p>
<p>At the same time I'm now working at <a href="http://bt.com">BT</a> working on <a href="http://newsroom.cisco.com/dlls/2008/prod_093008d.html">high-end video teleconferencing solutions</a>  which has proved to be a really interesting situation for me-- the business knowledge needed to work in the domain itself is more challenging than becoming fluent in a new programming language.  Coming from a background of working on mostly scalable services meant for website and enterprise consumption, working in a rapidly growing and changing area of telecom has proved to be a welcome new challenge.  We have a lot of really cool stuff rolling around, and I can honestly say some of the stuff I'm working on actually changes peoples lives all across the world in a significant way which is a first for me, and a rare experience as a Software Engineer.</p>
<p>That said, I haven't had many burning topics on my mind in the software space since I've had my brain wrapped around learning how telecom and video conferencing works for the past several months.   I have a couple of personal pet projects I'm working on in my spare time, and if/as they progress, they will provide some fodder for more technical blog posts.</p>
<p>Anyhow, thanks for reading and keeping me in your RSS feeds-- hopefully this will start getting a little more regular again soon.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=NiBgEoVBlUE:q99G8aAZPqg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=NiBgEoVBlUE:q99G8aAZPqg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=NiBgEoVBlUE:q99G8aAZPqg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=NiBgEoVBlUE:q99G8aAZPqg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=NiBgEoVBlUE:q99G8aAZPqg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=NiBgEoVBlUE:q99G8aAZPqg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=NiBgEoVBlUE:q99G8aAZPqg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/NiBgEoVBlUE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/all-files-up-to-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://devnulled.com/all-files-up-to-date/</feedburner:origLink></item>
		<item>
		<title>An Alternative To Waiting In Line for the iPhone 3G</title>
		<link>http://feedproxy.google.com/~r/Devnulled/~3/Ic_SutPBYdg/</link>
		<comments>http://devnulled.com/an-alternative-to-waiting-in-line-for-the-iphone-3g/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 13:13:57 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[at&t]]></category>
		<category><![CDATA[dfs]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iphone 3G]]></category>
		<category><![CDATA[order fulfillment]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[samsung blackjack]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=722</guid>
		<description>&lt;p&gt;I&amp;#8217;ve been on the fence quite awhile about the iPhone. It&amp;#8217;s not cheap, it&amp;#8217;s grossly over-hyped by a very fanatic fan base who seem to overlook it&amp;#8217;s flaws, and while I&amp;#8217;m not a terribly flashy person, there seems to be &amp;#8230; &lt;a href="http://devnulled.com/an-alternative-to-waiting-in-line-for-the-iphone-3g/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/GrJ77bhZekjzTVFBzeyZeBTQnCc/0/da"><img src="http://feedads.g.doubleclick.net/~a/GrJ77bhZekjzTVFBzeyZeBTQnCc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GrJ77bhZekjzTVFBzeyZeBTQnCc/1/da"><img src="http://feedads.g.doubleclick.net/~a/GrJ77bhZekjzTVFBzeyZeBTQnCc/1/di" border="0" ismap="true"></img></a></p><p>I've been on the fence quite awhile about the <a href="http://www.apple.com/iphone/">iPhone</a>.   It's not cheap, it's grossly over-hyped by a very fanatic fan base who seem to overlook it's flaws, and while I'm not a terribly flashy person, there seems to be a stigma about those who own one.   Those things aside, I finally decided that I've pretty much bought into the Mac platform and OS X workflow, and it only makes sense to extend that by replacing my Samsung Blackjack with an iPhone.  <a href='http://cdn.devnulled.com/wp-content/uploads/2008/07/iphone_stock.png'><img src="http://cdn.devnulled.com/wp-content/uploads/2008/07/iphone_stock-300x81.png" alt="iPhone 3G Stock in Colorado" title="iPhone 3G Stock in Colorado" width="300" height="81" class="alignleft size-medium wp-image-723" /></a> The addition of 3G network support, ActiveSync, and GPS pretty much sealed the deal for me, though the price still makes me reel a bit.  One of the advantages I saw with owning one is that I would most likely not need to take my laptop with me any longer on non-business trips, which is a pretty big win for me.</p>
<p>If you weren't willing to camp-out for the new iPhone 3G and want one ASAP, it's likely you're in a similar position as me-- calling local Apple Stores and AT&#038;T stores everyday to check to see if any have came in.   It sounds like at many Apple Store locations, as soon as a shipment comes in, a big line forms and if you're lucky you might be able to get one.  The way that Apple and AT&#038;T have handled this situation is truly awful and unprofessional-- none of the people working the floor know when shipments are coming-in, nor is there a way to order an iPhone online, etc.</p>
<p>One option I ended-up opting for was ordering a new iPhone 3G at my local AT&#038;T store through their "direct fulfillment" program.   Basically this boils down to you having a direct order from Apple which will eventually arrive at your local AT&#038;T Store, and you don't get charged for it until it ships.   You get a tracking number and a way to check the status, though so far <a href="http://forums.wireless.att.com/cng/board/message?board.id=apple&#038;thread.id=31997">the results don't look terribly promising</a>.  When I ordered mine the wait time before shipment told to me was 5-10 business days, and lately from what I've read the current quotes are now at 10-20 business days.</p>
<p>I honestly don't know how this is going to end-up considering <a href="http://forums.wireless.att.com/cng/board/message?board.id=apple&#038;thread.id=31997">the HUGE thread about this program</a> happening at the AT&#038;T Forums at the moment, but it is keeping me from being obsessed about trying to snag a phone at the retail locations.</p>
<p>One other tip, if you do opt to go this route, you can <a href="http://www.iphoneconvert.com/att.php">use this site to get an idea about when your order will arrive</a> based on other orders at the same store.  All that you do is enter order ID's close to the last 5 digits of your Order ID and the zip code of store you ordered from, and browse through the orders at your store to see if other people at your AT&#038;T store have got their orders.  It's kind of hard to describe unless you've went through the order process itself, but you can find out more in <a href="http://forums.wireless.att.com/cng/board/message?board.id=apple&#038;thread.id=35276">in this thread</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devnulled?a=Ic_SutPBYdg:_XvGy3iMjzM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=Ic_SutPBYdg:_XvGy3iMjzM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=Ic_SutPBYdg:_XvGy3iMjzM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=Ic_SutPBYdg:_XvGy3iMjzM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Devnulled?i=Ic_SutPBYdg:_XvGy3iMjzM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=Ic_SutPBYdg:_XvGy3iMjzM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devnulled?a=Ic_SutPBYdg:_XvGy3iMjzM:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devnulled?d=dnMXMwOfBR0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devnulled/~4/Ic_SutPBYdg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/an-alternative-to-waiting-in-line-for-the-iphone-3g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://devnulled.com/an-alternative-to-waiting-in-line-for-the-iphone-3g/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cdn.devnulled.com

Served from: devnulled.com @ 2012-02-03 01:58:23 -->

