<?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; JBoss</title>
	<atom:link href="http://devnulled.com/topics/servers/jboss/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>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-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<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>Maven: Including Axis2 Artifacts into EAR&#8217;s</title>
		<link>http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/</link>
		<comments>http://devnulled.com/content/2008/01/maven-including-axis2-artifacts-into-ears/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 06:27:42 +0000</pubDate>
		<dc:creator>Brandon Harper</dc:creator>
				<category><![CDATA[A Day In The Life Of]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Tips, Hacks, & Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[aar]]></category>
		<category><![CDATA[axis2]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[ear]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mar]]></category>
		<category><![CDATA[maven-ear-plugin]]></category>
		<category><![CDATA[maven2]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[war]]></category>

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