<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>devnulled &#187; OS X</title>
	<atom:link href="http://devnulled.com/topics/operating-systems/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://devnulled.com</link>
	<description>devnulled provides news, tips, resources, and articles about various topics that software developers and engineers enjoy.</description>
	<lastBuildDate>Wed, 18 Aug 2010 06:20:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Running Jetty 7 on Port 80 With Maven</title>
		<link>http://devnulled.com/content/2010/08/running-jetty-7-on-port-80-with-maven/</link>
		<comments>http://devnulled.com/content/2010/08/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[Java]]></category>
		<category><![CDATA[Jetty]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[OS X]]></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[mvn]]></category>
		<category><![CDATA[mvn jetty:run]]></category>
		<category><![CDATA[port 80]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=795</guid>
		<description><![CDATA[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 a non-stock configuration of Jetty 7 and Maven today which took way too much Googling [...]]]></description>
			<content:encoded><![CDATA[<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>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2010/08/running-jetty-7-on-port-80-with-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Remote Desktop in Snow Leopard</title>
		<link>http://devnulled.com/content/2009/09/fixing-remote-desktop-in-snow-leopard/</link>
		<comments>http://devnulled.com/content/2009/09/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[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[remote-desktop]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://devnulled.com/?p=764</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<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>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2009/09/fixing-remote-desktop-in-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Display Which Processes Are Using What Ports</title>
		<link>http://devnulled.com/content/2008/02/how-to-display-which-processes-are-using-what-ports/</link>
		<comments>http://devnulled.com/content/2008/02/how-to-display-which-processes-are-using-what-ports/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 08:19:09 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Apache HTTPD]]></category>
		<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[port in use]]></category>
		<category><![CDATA[port is in use]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2008/02/how-to-display-which-processes-are-using-what-ports/</guid>
		<description><![CDATA[This is just a quick entry on how to see which software is using which ports. This comes in handy when trying to install an application server, web server, etc, and are getting errors like "port is in use". Basically in any Unix type derivative such as Linux such (Ubuntu, RedHat, SuSe, etc.), as well [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick entry on how to see which software is using which ports.  This comes in handy when trying to install an application server, web server, etc, and are getting errors like "port is in use".</p>
<p>Basically in any Unix type derivative such as Linux such (Ubuntu, RedHat, SuSe, etc.), as well as Mac OS X, all that you need to type this at the command line:</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;">lsof -i </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I remember there being a couple of commands in Windows which you could do this with, but it's been so long since I've used Windows on a regular basis I honestly don't remember how to do it.  I do know you can use <a href="http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx">TCPView</a> to accomplish the same thing, however.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2008/02/how-to-display-which-processes-are-using-what-ports/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>News Flash: Apple Finally Released Java 6 for MacOS X!</title>
		<link>http://devnulled.com/content/2007/12/news-flash-apple-finally-released-java-6-for-macos-x/</link>
		<comments>http://devnulled.com/content/2007/12/news-flash-apple-finally-released-java-6-for-macos-x/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 09:56:47 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[java-6]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[soy-latte]]></category>
		<category><![CDATA[soylatte]]></category>
		<category><![CDATA[tiger]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/12/news-flash-apple-finally-released-java-6-for-macos-x/</guid>
		<description><![CDATA[UPDATE: I was up too late, and didn't notice that it's update 6 for Java, not Java 6. This is just another update for Java 5... *sigh* I've been up pretty late doing a little work and tying-up some last minute Christmas shopping, and out of the blue this Apple update window popped-up: I'm super [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> <em>I was up too late, and didn't notice that it's update 6 for Java, not Java 6.  This is just another update for Java 5... *sigh*</em></p>
<p>I've been up pretty late doing a little work and tying-up some last minute Christmas shopping, and out of the blue this Apple update window popped-up:</p>
<p><center><br />
<img id="image708" src="http://devnulled.com/wp-content/uploads/2007/12/java6_is_here.png" alt="Java 6 for MacOS X is here!" /><br />
</center></p>
<p>I'm super glad to finally see an Apple release of Java 6!   I've been developing with <a href="http://landonf.bikemonkey.org/static/soylatte/">SoyLatte</a> lately and was going to write a quick tutorial on how to get it up and running on MacOS X, so I guess I don't necessarily need to do that now.  Although given Apple's secrecy about Java releases and the future of Java on MacOS X, it certainly doesn't hurt to have an alternative around.</p>
<p>I'm still on Tiger-- I assume Leopard users are seeing this update too?</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/12/news-flash-apple-finally-released-java-6-for-macos-x/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Java 6 for Developers on MacOS X: SoyLatte Reaches 1.0</title>
		<link>http://devnulled.com/content/2007/12/java-6-for-developers-on-macos-x-soylatte-reaches-10/</link>
		<comments>http://devnulled.com/content/2007/12/java-6-for-developers-on-macos-x-soylatte-reaches-10/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 20:48:46 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Disciplines]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[java-6]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[soy-latte]]></category>
		<category><![CDATA[soylatte]]></category>
		<category><![CDATA[tiger]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/12/java-6-for-developers-on-macos-x-soylatte-reaches-10/</guid>
		<description><![CDATA[For those many of you (including myself) who have been waiting almost a year now for Java 6 to be properly supported on the Mac, the wait is over if you're a developer-- Landon Fuller has released SoyLatte 1.0, which is a port of FreeBSD Java 6 to MacOS X which will eventually end-up as [...]]]></description>
			<content:encoded><![CDATA[<p>For those many of you (including myself) who have been waiting almost a year now for <a href="http://java.sun.com/javase/6/">Java 6</a> to be properly supported on the Mac, the wait is over if you're a developer-- <a href="http://landonf.bikemonkey.org/2007/12/05#MacOS_BSD_Java_1.0.20071206">Landon Fuller has released SoyLatte 1.0</a>, which is a port of <a href="http://freebsd.org">FreeBSD</a> Java 6 to MacOS X which will eventually end-up as part of the <a href="http://openjdk.java.net/">OpenJDK</a>.  This seemed to come together very quickly once Leopard came-out and was missing Java 6.</p>
<p>Though Java 6 didn't provide quite as much new syntactic sugar as Java 5, the <a href="http://java.sun.com/performance/reference/whitepapers/6_performance.html">performance increases in Java 6 are pretty dramatic</a>.  I highly recommend giving Java 6 a look if you're doing any development which runs on the JVM if you haven't already switched.</p>
<p>Keep in mind that this is mostly a developers port as it's not yet integrated into Cocoa, the MacOS X native GUI.  Desktop applications will run under X11, but this is the next hurdle to tackle (though it seems to be a pretty big one).</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/12/java-6-for-developers-on-macos-x-soylatte-reaches-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Stop The Creation of .DS_Store Files</title>
		<link>http://devnulled.com/content/2007/08/how-to-stop-the-creation-of-ds_store-files/</link>
		<comments>http://devnulled.com/content/2007/08/how-to-stop-the-creation-of-ds_store-files/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 14:03:42 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[.DS_Store]]></category>
		<category><![CDATA[delete-.DS_Store]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[macos-x]]></category>
		<category><![CDATA[prevent-.DS_Store]]></category>
		<category><![CDATA[remove-.DS_Store]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/08/how-to-stop-the-creation-of-ds_store-files/</guid>
		<description><![CDATA[At the request of a reader, I went ahead and researched what .DS_Store Files are, and how prevent MacOS X from creating them. In a nutshell, .DS_Store files are created by Finder to store preferences: .DS_Store (Desktop Services Store) is a hidden file created by Apple Inc's Mac OS X operating system to store custom [...]]]></description>
			<content:encoded><![CDATA[<p>At the <a href="http://devnulled.com/content/2007/08/how-to-show-hidden-and-protected-files-in-os-x-finder/">request of a reader</a>, I went ahead and researched what .DS_Store Files are, and how prevent MacOS X from creating them.  In a nutshell, .DS_Store files are <a href="http://en.wikipedia.org/wiki/.DS_Store">created by Finder</a> to store preferences:</p>
<blockquote><p>
.DS_Store (Desktop Services Store) is a hidden file created by Apple Inc's Mac OS X operating system to store custom attributes of a folder such as the position of icons or the choice of a background image. By default, Mac OS X will create a .DS_Store file in every folder that it accesses, even folders on remote systems (for example, folders shared over a SMB or AFP connection) and even if the user has only customized the appearance of the folder by moving its Finder window. This is in contrast to the preexisting system for the same purpose used in previous versions of the Macintosh Finder, which would merely place a number of invisible files at the root of the volume being accessed (even on alien filesystems), always storing the settings and metadata for all of the folders in the entire volume within this single set of files.
</p></blockquote>
<p>Unfortunately it seems that you can only prevent Finder from creating these files on network shares and not on your local machine.  Here's how you do it:</p>
<ol>
<li>Open the Terminal application (though I highly recommend using <a href="http://iterm.sourceforge.net/">iTerm</a> instead)</li>
<li>Type in the following command:
<pre>defaults write com.apple.desktopservices DSDontWriteNetworkStores true</pre>
<p> and press enter</li>
<li>Reboot your machine so that the changes will take effect
</li>
</ol>
<p>I haven't found a good way to prevent OS X from creating them on local file systems, but perhaps someone out there has some suggestions?   Other than creating a script to delete them and adding it to cron, I'm not sure of a way to at least clean them up in an automated fashion.  I did run across an application called <a href="http://www.macupdate.com/info.php/id/11163">DS_Store Cleaner</a> which helps clean-up said files, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/08/how-to-stop-the-creation-of-ds_store-files/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Show Hidden and Protected Files in OS X Finder</title>
		<link>http://devnulled.com/content/2007/08/how-to-show-hidden-and-protected-files-in-os-x-finder/</link>
		<comments>http://devnulled.com/content/2007/08/how-to-show-hidden-and-protected-files-in-os-x-finder/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 16:40:18 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[hidden-files]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[protected-files]]></category>
		<category><![CDATA[show-hidden]]></category>
		<category><![CDATA[show-protected]]></category>
		<category><![CDATA[system-files]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/08/how-to-show-hidden-and-protected-files-in-os-x-finder/</guid>
		<description><![CDATA[One of my few complaints about MacOS X is that at times I feel like it treats you with kids gloves-- many options for power users either require some sort of hacking, or simply don't exist. One such thing which is fixable is getting Finder to show hidden files. It's a quick and easy process [...]]]></description>
			<content:encoded><![CDATA[<p>One of my few complaints about MacOS X is that at times I feel like it treats you with kids gloves-- many options for power users either require some sort of hacking, or simply don't exist.  One such thing which is fixable is getting Finder to show hidden files.  It's a quick and easy process via the command line to fix this:</p>
<pre>
tobin:~ brandon$ defaults write com.apple.finder AppleShowAllFiles TRUE
tobin:~ brandon$ killall Finder
</pre>
<p>Now you can actually see all of the directories which start with periods, etc.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/08/how-to-show-hidden-and-protected-files-in-os-x-finder/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>How To Repair User Permissions In Mac OS X</title>
		<link>http://devnulled.com/content/2007/07/how-to-repair-user-permissions-in-mac-os-x/</link>
		<comments>http://devnulled.com/content/2007/07/how-to-repair-user-permissions-in-mac-os-x/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 00:41:25 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[Culture]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[user-permissions]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/07/how-to-repair-user-permissions-in-mac-os-x/</guid>
		<description><![CDATA[I'm in the process of setting-up a new Apple MacBook Pro today, and during the process of trying to import and get some old SSH keys working correctly I accidently changed the permissions on my home directory. Even after scrolling back through the commands I used I'm still not even sure how it happened, but [...]]]></description>
			<content:encoded><![CDATA[<p>I'm in the process of setting-up a new <a href="http://www.apple.com/macbookpro/">Apple MacBook Pro</a> today, and during the process of trying to import and get some old SSH keys working correctly I accidently changed the permissions on my home directory.   Even after scrolling back through the commands I used I'm still not even sure how it happened, but nonetheless I had to find a way to fix it.</p>
<p>Anyhow there are several symptoms you'll see if the permissions are wrong in your user folder such as: </p>
<ul>
<li>If you're browsing to your home folder using Finder and get a message like 'The folder "username" could not be opened because you do not have sufficent access privileges'</li>
<li>When trying to access your home folder in a terminal, you keep getting redirected back to /</li>
</ul>
<p>Basically if you can't access your home directory in Mac OS X, this blog entry is for you.  There is a "repair permissions" utility in OS X but it does not repair permissions for user directories, so you have to take care of it manually.</p>
<p>To repair a specific users permissions in Apple OS X, type the following command in a terminal and replace "username" in the command below with the name of the users permissions you need to fix:</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showCodeTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<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 chmod -R ug+rwX /Users/username </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You'll need to reboot so that Finder will pick-up the permission changes, but that should clear-up any user specific permission problems if you are locked out of your home directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/07/how-to-repair-user-permissions-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Drinking The MacBook Pro and OS X Kool-Aid</title>
		<link>http://devnulled.com/content/2007/02/drinking-the-macbook-pro-and-os-x-kool-aid/</link>
		<comments>http://devnulled.com/content/2007/02/drinking-the-macbook-pro-and-os-x-kool-aid/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 09:16:46 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[A Day In The Life Of]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Disciplines]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macbook-pro]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://devnulled.com/content/2007/02/drinking-the-macbook-pro-and-os-x-kool-aid/</guid>
		<description><![CDATA[This past Friday marked the end of the second week at my new job which has brought many changes for me. I left a good sized development team at large company for the uncertainty for a VC funded start-up without revenue, I'm miles from a ColdFusion server and instead am working on a Java distributed [...]]]></description>
			<content:encoded><![CDATA[<p>This past Friday marked the end of the second week at <a href="http://www.denverpost.com/aldia/ci_5277036">my new job</a> which has brought many changes for me.  I left a good sized development team at large company for the uncertainty for a VC funded start-up without revenue, I'm miles from a <a href="http://www.adobe.com/products/coldfusion/">ColdFusion</a> server and instead am working on a Java distributed platform (though I had been working in Java exclusively for about 6 months before changing jobs), and I switched to a <a href="http://www.apple.com/macbookpro/">MacBook Pro</a> among other changes.   All of the changes have been great choices so far, and it was good time to make a big jump just from a personal standpoint as I felt that I was starting to stagnate.  I pretty much had the option to use whatever platform worked best for me, and I took a leap of faith and decided to go with a MacBook.  I got equipped with a very nice one-- I have the 2.33 Ghz Dual Core w/ 2 GB of RAM.</p>
<p>The first day or two I felt like a bull in a China shop on the MacBook.  The process for installing software didn't make any sense to me, I kept using the control key for common shortcuts, and in general I was trying to figure-out how to setup the full software stack I'm now working on without really having a good understanding of the OS I was using on my workstation.  I'm sure I've looked retarded to my new co-workers for the most part so far, but I feel like making the switch is really starting to pay dividends.</p>
<p>For starters, there is just no comparison between the fit and feel of a MacBook Pro to a Dell laptop.  My Dell seems like a total piece of crap now, and it annoys me to have to use it.  It's big, heavy, clumsy, and shodily assembled compared to the MacBook.  I look at some of my co-workers Dell laptops and am very glad that I picked the Mac, though some of them have some 12" Lenovo's which are pretty sweet.</p>
<p>Since I'm only a couple of weeks in, I hesitate to list all of the various software and so forth that I've found useful, but I'll get around to posting that in a couple of weeks once I feel like that list is more finalized.  Instead, I thought it might be useful to post some of the pros and cons I've noticed coming from using Windows and Linux:</p>
<p>Pros:</p>
<ul>
<li>Unix with a very nice GUI.  That's really enough to sell someone right there.  I'm a command line junkie and it's nice to have Bash and all of the assorted Unix facilities and software available</li>
<li>The hardware is really good-- it has great fit and finish.  I can even use the MacBook Pro on my lap without getting scalded.  There are just so many little things that you notice over time about the MacBook which are ingenious (like the light sensitive keyboard backlighting for instance)</li>
<li>Everything just works.  Had I attempted to set the same environment up on Windows I would have had to bludgeon myself with Cygwin.  I haven't had to deal with any of the annoying dependency problems that Linux has.</li>
<li>I actually like the hardware lock-in.  It makes it much easier to find accessories for your given hardware, and you can easily compare specs and application performance with other users, etc.  I'm sure this also helps make the OS a lot better as well since they don't have to support every chipset and piece of hardware under the sun.</li>
</ul>
<p>Cons:</p>
<ul>
<li>Some of the software seems like it's dumbed down too much.  I understand it's a design philosophy of the Mac, but with some software I find myself looking for the "Advanced" mode.   I'm not sure what you would call the file browsing software, but it was my primary complaint until I found <a href="http://www.cocoatech.com/pf4/">Path Finder</a></li>
<li>The concept of Free Software seems to be beyond a lot of people in the Mac community.  Every little add-on that makes software suck less is likely to cost you $12-$15.</li>
<li>There aren't really any Mac specific ergonomic keyboards.  I'm currently using an MS Natural keyboard when I dock at work, but I find it hard to get used to shortcuts because I'm still using a keyboard with a Windows layout</li>
</ul>
<p>All that I can say is that from the perspective of a big Unix fan who does Java development, I feel like the Mac offers a great platform for both software development as well as an everyday workstation OS.  I'll get around to posting a list of software that I've found to be useful in a couple of weeks once I feel like I've got most of what I need.</p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2007/02/drinking-the-macbook-pro-and-os-x-kool-aid/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Retrieving and Resetting ColdFusion Administrator Passwords</title>
		<link>http://devnulled.com/content/2004/02/retrieving-and-resetting-coldfusion-administrator-passwords/</link>
		<comments>http://devnulled.com/content/2004/02/retrieving-and-resetting-coldfusion-administrator-passwords/#comments</comments>
		<pubDate>Thu, 19 Feb 2004 19:21:57 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[administrator_password]]></category>
		<category><![CDATA[admin_password]]></category>
		<category><![CDATA[code_snippet]]></category>
		<category><![CDATA[cold-fusion]]></category>
		<category><![CDATA[coldfusion-5]]></category>
		<category><![CDATA[coldfusion-6]]></category>
		<category><![CDATA[coldfusion-7]]></category>
		<category><![CDATA[coldfusion-8]]></category>
		<category><![CDATA[coldfusion_mx]]></category>
		<category><![CDATA[decrypt]]></category>
		<category><![CDATA[find-password]]></category>
		<category><![CDATA[forgot-password]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[reset-password]]></category>
		<category><![CDATA[retrieve-password]]></category>
		<category><![CDATA[xml_file]]></category>

		<guid isPermaLink="false">http://bharper.com/?p=150</guid>
		<description><![CDATA[Seems like this question comes-up quite a bit, and I can never seem to find the snippet of code which will do this in CF 5, so I thought I'd leave myself a post of this snippet of code, and perhaps someone else out there in the future trying to find information on how to [...]]]></description>
			<content:encoded><![CDATA[<p>Seems like this question comes-up quite a bit, and I can never seem to find the snippet of code which will do this in CF 5, so I thought I'd leave myself a post of this snippet of code, and perhaps someone else out there in the future trying to find information on how to reset their administrator password.  That said, here are a few ways to get back into the CF Administrator if you've somehow been inadvertently locked-out for both ColdFusion 5 and previous versions, as well as ColdFusion MX:<br />
<span id="more-150"></span><br />
<strong>For ColdFusion 5 on Windows:</strong></p>
<p>Find the following registry entry:</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showCodeTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<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;">HKLM\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Server\UseAdminPassword </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And set it to 0.   Restart the ColdFusion Server service, and go to the Administrator to set a new password.</p>
<p><strong>OR: </strong></p>
<p>Use this code snippet to retrieve the password values:</p>
<div class="igBar"><span id="lcode-14"><a href="#" onclick="javascript:showCodeTxt('code-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-14">
<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;cfset password_key=<span style="color:#CC0000;">"4p0L@r1$"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;cfregistry action=<span style="color:#CC0000;">"GET"</span> branch=<span style="color:#CC0000;">"HKEY_LOCAL_MACHINE<span style="color:#000099; font-weight:bold;">\S</span>OFTWARE<span style="color:#000099; font-weight:bold;">\A</span>llaire<span style="color:#000099; font-weight:bold;">\C</span>oldFusion<span style="color:#000099; font-weight:bold;">\C</span>urrentVersion<span style="color:#000099; font-weight:bold;">\S</span>erver"</span> entry=<span style="color:#CC0000;">"AdminPassword"</span> variable=<span style="color:#CC0000;">"adminpassword"</span> type=<span style="color:#CC0000;">"String"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/cfregistry&gt;&lt;cfregistry action=<span style="color:#CC0000;">"GET"</span> branch=<span style="color:#CC0000;">"HKEY_LOCAL_MACHINE<span style="color:#000099; font-weight:bold;">\S</span>OFTWARE<span style="color:#000099; font-weight:bold;">\A</span>llaire<span style="color:#000099; font-weight:bold;">\C</span>oldFusion<span style="color:#000099; font-weight:bold;">\C</span>urrentVersion<span style="color:#000099; font-weight:bold;">\S</span>erver"</span> entry=<span style="color:#CC0000;">"StudioPassword"</span> variable=<span style="color:#CC0000;">"studiopassword"</span> type=<span style="color:#CC0000;">"String"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;cfoutput&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;strong&gt;Admin Password:&lt;/strong&gt;&lt;br /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #Evaluate<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"cfusion_Decrypt(adminpassword, PASSWORD_KEY)"</span><span style="color:#006600; font-weight:bold;">&#41;</span># &lt;br /&gt;&lt;br /&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;strong&gt;RDS Password:&lt;/strong&gt; &lt;br /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #Evaluate<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"cfusion_Decrypt(studiopassword, PASSWORD_KEY)"</span><span style="color:#006600; font-weight:bold;">&#41;</span># &lt;br /&gt;&lt;br /&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;/cfoutput&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/cfregistry&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>For ColdFusion 6 MX, ColdFusion 7 MX, and ColdFusion 8:</strong></p>
<ul>
<li>Stop the "ColdFusion MX Application Server" Service</li>
<li>Open the "neo-security.xml" file contained at %CFMXInstallRoot%\lib</li>
<li>Find the line:  "&lt;var name='admin.security.enabled'&gt;&lt;boolean value='true'/&gt;&lt;/var&gt;" and change the true to false, then save the file</li>
<li>Restart the "ColdFusion MX Application Server" Service</li>
<li>Go to the ColdFusion Administrator again and set a password</li>
</ul>
<p></cfset></p>
]]></content:encoded>
			<wfw:commentRss>http://devnulled.com/content/2004/02/retrieving-and-resetting-coldfusion-administrator-passwords/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->