<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wind Up</title>
	<atom:link href="http://mohanrajk.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mohanrajk.wordpress.com</link>
	<description>Infofill</description>
	<lastBuildDate>Tue, 25 Aug 2009 04:11:38 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mohanrajk.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0e98027d0652572b84adc09a5e95138b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Wind Up</title>
		<link>http://mohanrajk.wordpress.com</link>
	</image>
			<item>
		<title>Weblogic 10.3 and Maven Integration</title>
		<link>http://mohanrajk.wordpress.com/2009/03/02/weblogic-103-and-maven-integration/</link>
		<comments>http://mohanrajk.wordpress.com/2009/03/02/weblogic-103-and-maven-integration/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 15:46:31 +0000</pubDate>
		<dc:creator>mohanrajk</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven 2]]></category>
		<category><![CDATA[Maven2]]></category>
		<category><![CDATA[Weblogic]]></category>
		<category><![CDATA[weblogic 10.3]]></category>
		<category><![CDATA[weblogic-maven-plugin]]></category>

		<guid isPermaLink="false">http://mohanrajk.wordpress.com/2009/03/02/weblogic-103-and-maven-integration/</guid>
		<description><![CDATA[(Update: I&#8217;m moving this article and the t3 channel creation step to my permanent blog here)
So another one for my notes. After searching in-vain for proper way to integrate the Weblogic 10.3 with maven, I think the solution below is working very well for me. We are going to use the weblogic-maven-plugin from codehaus. All [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohanrajk.wordpress.com&blog=588425&post=46&subd=mohanrajk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h5><strong>(Update: I&#8217;m moving this article and the t3 channel creation step to my permanent blog <a href="http://www.blogwitter.com" target="_blank">here</a>)</strong></h5>
<p><span style="font-size:x-small;font-family:tah;">So another one for my notes. After searching in-vain for proper way to integrate the Weblogic 10.3 with maven, I think the </span><span style="font-size:x-small;font-family:tah;">solution below is working very well for me. We are going to use the <a href="http://mojo.codehaus.org/weblogic-maven-plugin/usage.html">weblogic-maven-plugin</a> from codehaus. All the current solution including the plugin documentation requires either installing a bunch of </span></p>
<p><span style="font-size:x-small;">Requirements:</span></p>
<ul>
<li><span style="font-size:x-small;">You have a WL 10.3 installation </span></li>
<li><span style="font-size:x-small;">JDK5</span></li>
<li><span style="font-size:x-small;">Maven 2.0.9 or above</span></li>
</ul>
<h2>Required Steps</h2>
<p><span style="font-size:x-small;font-family:tah;"><span style="font-family:Tahoma;font-size:x-small;">We will break it down into three main steps. One of the steps could be avoided if the weblogic-maven-plugin authors did not hard-code weblogic dependencies which are not available in the Maven repositories anyway (or if maven could support excluding plugin dependencies).</span></span></p>
<ol>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;"><span style="font-size:x-small;">Building the uber weblogic jar and publishing it to your local or organization repository.</span> </span></span></li>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;"><span style="font-size:x-small;">Downloading the weblogic-maven-plugin pom and jar.</span> </span></span></li>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;"><span style="font-size:x-small;">Configuring WL 10.3 a non-ssl admin channel</span> </span></span></li>
</ol>
<h3>Step 1. Building the uber weblogic jar</h3>
<p><span style="font-family:tah;"><span style="font-size:x-small;font-family:ta;"><span style="font-family:Tahoma;font-size:x-small;">There is a way to build a full weblogic client jar, so we don&#8217;t have to figure out what jars we need. For this of course you need a WL 10.3 installation. The instruction are actually given </span></span><a href="http://edocs.bea.com/wls/docs100/client/jarbuilder.html"><span style="font-size:x-small;font-family:ta;"><span style="font-family:Tahoma;font-size:x-small;">here</span></span></a><span style="font-size:x-small;"><span style="font-family:ta;"><span style="font-family:Tahoma;font-size:x-small;"> (weblogic jarbuilder tool). If you follow the steps then you should have a <em>wlfullclient.jar, </em>in the WL_HOME/sever/lib folder. Here is how it looks like:</span></span></span></span></p>
<pre class="csharpcode">C:\&gt;java -jar ...
...
Created new jar file: C:\..\server\lib\wlfullclient.jar
...
<span style="font-size:x-small;font-family:ta;"><span style="font-family:Tahoma;font-size:x-small;">Now, we will use maven to install this for this example in our local repository (you can use deploy to publish it to your org. repo, such as Nexus).</span></span></pre>
<pre class="csharpcode">$ mvn install:install-file -Dfile=wlfullclient.jar \
    -DgroupId=weblogic -DartifactId=wlfullclient \
    -Dversion=10.3 -Dpackaging=jar -DgeneratePom=<span class="kwrd">true</span>

<span style="font-size:x-small;font-family:lucida sans unicode;"><span style="font-family:Tahoma;font-size:x-small;">Note the use of the character "\" is just a *nix newline escape, basically the whole thing above should be on one line.</span></span></pre>
<pre class="csharpcode"><span style="font-size:x-small;font-family:lucida sans unicode;"> </span></pre>
<h3>Step 2. Download and modify the weblogic-maven-plugin POM and jar</h3>
<p><span style="font-size:x-small;font-family:ta;"><span style="font-family:Tahoma;font-size:x-small;">As mentioned before, we need to modify the pom because of hard coded dependency to weblogic. So what we do here is:</span></span></p>
<ul>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;"><span style="font-size:x-small;">Download the POM</span> </span></span></li>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;"><span style="font-size:x-small;">Change the version in the pom and delete the 2 weblogic dependencies</span> </span></span></li>
<li><span style="font-size:x-small;"><span style="font-family:Tahoma;font-size:x-small;">Then install the Pom and the associated jar into our repository (local).</span></span></li>
</ul>
<h4>Download the POM &amp; Jar</h4>
<p><span style="font-size:x-small;font-family:ta;">Download the POM from <a href="http://repository.codehaus.org/org/codehaus/mojo/weblogic-maven-plugin/2.9.1/weblogic-maven-plugin-2.9.1.pom">here (weblogic-maven-plugin pom)</a> and then also download the <a href="http://repository.codehaus.org/org/codehaus/mojo/weblogic-maven-plugin/2.9.1/weblogic-maven-plugin-2.9.1.jar">jar</a>. So first we download the POM and change as shown below:</span></p>
<pre>&lt;project xmlns=http://maven.apache.org/POM/4.0.0&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
    &lt;artifactId&gt;mojo&lt;/artifactId&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;version&gt;14&lt;/version&gt;
  &lt;/parent&gt;
  &lt;prerequisites&gt;
    &lt;maven&gt;2.0&lt;/maven&gt;
  &lt;/prerequisites&gt;
  &lt;artifactId&gt;weblogic-maven-plugin&lt;/artifactId&gt;
  &lt;packaging&gt;maven-plugin&lt;/packaging&gt;
  &lt;name&gt;Weblogic Maven Plugin&lt;/name&gt;
  &lt;version&gt;2.9.1-001&lt;/version&gt;  &lt;!-- CHANGED --&gt;
  ...
  &lt;dependencies&gt;
        ...
    &lt;!-- COMMENT OUT THE 2 WL DEPENDENCIES
    &lt;dependency&gt;
      &lt;groupId&gt;weblogic&lt;/groupId&gt;
      &lt;artifactId&gt;weblogic&lt;/artifactId&gt;
      &lt;version&gt;[9.0,11.0)&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;weblogic&lt;/groupId&gt;
      &lt;artifactId&gt;webservices&lt;/artifactId&gt;
      &lt;version&gt;[9.0,11.0)&lt;/version&gt;
    &lt;/dependency&gt;
     --&gt;
       ...
  &lt;/dependencies&gt;
  ...
&lt;/project&gt;</pre>
<p><span style="font-size:x-small;font-family:tahoma;">Notice the comment CHANGED lines. Now we install this pom and the downloaded jar into our local repository because of the changes.</span></p>
<pre class="csharpcode">mvn install:install-file -Dfile=weblogic-maven-plugin-2.9.1.jar \
                         -DpomFile=weblogic-maven-plugin-2.9.1-001.pom \
                         -DgroupId=org.codehaus.mojo \
                         -DartifactId=weblogic-maven-plugin \
                         -Dversion=2.9.1-001 \
                         -Dpackaging=maven-plugin</pre>
<p><span style="font-size:x-small;font-family:tahoma;">Important things to note above:</span></p>
<ul>
<li><span style="font-size:x-small;font-family:ta;">-DpomFile  the pom file is the edited one as we did before, I called the edited pom weblogic-maven-plugin-2.9.1-001.pom</span></li>
<li><span style="font-size:x-small;">The version -Dversion=2.9.1-001</span></li>
<li><span style="font-size:x-small;">And the packaging (very important) -Dpackaging=maven-plugin</span></li>
</ul>
<p><span style="font-size:x-small;">Now, of course in your project you would use this version of the installed plugin.</span></p>
<h3>Step 3. Create an admin channel in Weblogic 10.3</h3>
<p><span style="font-size:x-small;font-family:ta;">Ok, we need to do this step because for some reason WL 10.3, you can no longer do the deploys using the t3. Only SSL is allowed, and for some reason the uber jar does not include a particular implementation and I did not have the time to investigate it. <span style="text-decoration:line-through;"><em>&lt;TODO&gt;Another post describing the process&lt;/TODO&gt;</em></span> (Update: The steps is described <a href="http://www.blogwitter.com/2009/08/24/weblogic-10-3-creating-t3-admin-channel/" target="_blank">here</a>.)<br />
</span></p>
<h2>Putting it all together</h2>
<p><span style="font-size:x-small;font-family:ta;">Ok, after you have done all the 3 steps, here is how the configuration looks like. Enjoy and leave a comment if this was useful or need more clarification.</span></p>
<pre>    &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;weblogic-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.9.1-001&lt;/version&gt;
      &lt;inherited&gt;true&lt;/inherited&gt;
      &lt;configuration&gt;
        &lt;adminServerHostName&gt;localhost&lt;/adminServerHostName&gt;
        &lt;adminServerPort&gt;7001&lt;/adminServerPort&gt;
        &lt;adminServerProtocol&gt;t3&lt;/adminServerProtocol&gt;
        &lt;userId&gt;weblogic&lt;/userId&gt;
        &lt;password&gt;weblogic&lt;/password&gt;
        &lt;upload&gt;true&lt;/upload&gt;
        &lt;remote&gt;true&lt;/remote&gt;
        &lt;verbose&gt;true&lt;/verbose&gt;
        &lt;debug&gt;false&lt;/debug&gt;
        &lt;targetNames&gt;my_admin_server&lt;/targetNames&gt;
        &lt;noExit&gt;true&lt;/noExit&gt;
      &lt;/configuration&gt;
      &lt;dependencies&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;weblogic&lt;/groupId&gt;
          &lt;artifactId&gt;wlfullclient&lt;/artifactId&gt;
          &lt;version&gt;10.3&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/plugin&gt;</pre>
<p><span style="font-size:x-small;font-family:ta;">Few things to note here:</span></p>
<ul>
<li><span style="font-size:x-small;font-family:ta;">The adminServerPort corresponds <span style="font-family:ta;">to 7001, this is the port I configured in the Step 3 (admin channel)</span></span></li>
<li><span style="font-size:x-small;">Also note, the wlfullclient dependency I chose to add it here, instead of the edited pom in Step 2. Of course this requires Maven 2.0.9 and above.</span></li>
<li><span style="font-size:x-small;">Also the plugin version is 2.9.1-001 the one we installed in Step 2.</span></li>
</ul>
<p><span style="font-size:x-small;font-family:ta;">So that&#8217;s it.</span></p>
<p><span style="font-size:x-small;font-family:ta;"> </span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mohanrajk.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mohanrajk.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mohanrajk.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mohanrajk.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mohanrajk.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mohanrajk.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mohanrajk.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mohanrajk.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mohanrajk.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mohanrajk.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohanrajk.wordpress.com&blog=588425&post=46&subd=mohanrajk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mohanrajk.wordpress.com/2009/03/02/weblogic-103-and-maven-integration/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec880b973fc760c4a2ca74924d760397?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raj Mohan</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy New Year</title>
		<link>http://mohanrajk.wordpress.com/2009/01/04/happy-new-year/</link>
		<comments>http://mohanrajk.wordpress.com/2009/01/04/happy-new-year/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 19:22:16 +0000</pubDate>
		<dc:creator>mohanrajk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mohanrajk.wordpress.com/2009/01/04/happy-new-year/</guid>
		<description><![CDATA[ 
Happy New Year to everyone, hopefully 2009 I can find the time to revive the blog  
 
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohanrajk.wordpress.com&blog=588425&post=44&subd=mohanrajk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-family:Tahoma;font-size:large;"> </span></p>
<p><span style="font-family:Tahoma;font-size:large;">Happy New Year to everyone, hopefully 2009 I can find the time to revive the blog <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p><span style="font-family:Tahoma;font-size:large;"> </span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mohanrajk.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mohanrajk.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mohanrajk.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mohanrajk.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mohanrajk.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mohanrajk.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mohanrajk.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mohanrajk.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mohanrajk.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mohanrajk.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohanrajk.wordpress.com&blog=588425&post=44&subd=mohanrajk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mohanrajk.wordpress.com/2009/01/04/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ec880b973fc760c4a2ca74924d760397?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Raj Mohan</media:title>
		</media:content>
	</item>
	</channel>
</rss>