<?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>Blogs by Rich Software &#187; mule</title>
	<atom:link href="http://www.rich-software.com/wp/tag/mule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rich-software.com/wp</link>
	<description>Tidbits to help simplify development and business integration</description>
	<lastBuildDate>Wed, 02 Dec 2009 22:59:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running Mule 2.2.x with 64-bit Tanuki Wrapper and Java 6 on Mac OS X</title>
		<link>http://www.rich-software.com/wp/2009/07/running-mule-2-2-x-with-64-bit-tanuki-wrapper-and-java-6-on-mac-os-x/</link>
		<comments>http://www.rich-software.com/wp/2009/07/running-mule-2-2-x-with-64-bit-tanuki-wrapper-and-java-6-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 22:59:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mule]]></category>
		<category><![CDATA[tanuki wrapper]]></category>

		<guid isPermaLink="false">http://www.rich-software.com/wp/?p=5</guid>
		<description><![CDATA[If you tried to run (or are running) Mule 2.2.x on an Intel based Mac using Java 6 and are tired of seeing the following error message, then read on!
WARNING - Unable to load the Wrapper's native library because none of the
 following files:
 libwrapper-macosx-x86-64.jnilib
 libwrapper-macosx-universal-64.jnilib
 libwrapper.jnilib
 could be located on the following java.library.path:

MULE_HOME/bin/%LD_LIBRARY_PATH%
 MULE_HOME/lib/boot
 [...]]]></description>
			<content:encoded><![CDATA[<p>If you tried to run (or are running) Mule 2.2.x on an Intel based Mac using Java 6 and are tired of seeing the following error message, then read on!</p>
<pre style="padding-left: 30px;">WARNING - Unable to load the Wrapper's native library because none of the
 following files:
 libwrapper-macosx-x86-64.jnilib
 libwrapper-macosx-universal-64.jnilib
 libwrapper.jnilib
 could be located on the following java.library.path:

MULE_HOME/bin/%LD_LIBRARY_PATH%
 MULE_HOME/lib/boot
 Please see the documentation for the wrapper.java.library.path</pre>
<p>This issue has been raised a few times and there was a suggestion on how to handle it <a href="http://www.mail-archive.com/user@mule.codehaus.org/msg15041.html">here</a>. NOTE: the suggestion (although reasonable) does not work &#8211; the Tanuki Wrapper is smart enough to know you are trying to fool it.</p>
<p>NOTE:  I only updated the &#8220;macosx&#8221; wrapper files within the mule hierarchy, so what I suggest here will not directly work for other OSes.  The concepts presented here could be applied, and may work, but I have not tried this for any other OS like Windows or Linux.</p>
<p><em><strong><span style="color: #ff0000;">WARNING</span>: All suggestions here are to be done at your own risk. You can mess things up on your Mac if you attempt any of these steps.  Make backups, use your brain, be careful.  Consider yourself warned <img src='http://www.rich-software.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
</strong></em></p>
<h3>Steps to update the Tanuki Wrapper embedded within Mule</h3>
<ol>
<li style="text-align: left;">Download the <a title="Tanuki Wrapper download" href="http://wrapper.tanukisoftware.org/doc/english/download.jsp" target="_blank">latest Tanuki Wrapper</a> software from and unpack it somewhere
<ol>
<li>I grabbed the full “Delta Pack” (tar.gz) version 3.3.5, which was the latest at the time</li>
<li>From here on I refer to TANUKI_WRAPPER_HOME as the root of the folder where you unpacked the archive</li>
</ol>
</li>
<li style="text-align: left;">Make a backup copy of mule’s boot directory (to work around Murphy&#8217;s Law)
<ol>
<li>Assume MULE_HOME is set to the root of your Mule 2.2.x install (e.g. /opt/mule-standalone-2.2.1)</li>
<li>I made a complete copy and called it boot.orig by doing the following</li>
<li><code>cd $MULE_HOME/lib; cp -p boot boot.orig</code></li>
</ol>
</li>
<li style="text-align: left;">Copy the new wrapper executables
<ol>
<li><code>cp $TANUKI_WRAPPER_HOME/wrapper-delta-pack-3.3.5/bin/wrapper-macosx-universal-* $MULE_HOME/boot/exec</code></li>
<li>NOTE: this will replace the 32-bit one that was installed already and adds the 64-bit version</li>
</ol>
</li>
<li style="text-align: left;">Remove the old and copy the new wrapper libraries
<ol>
<li><code>rm $MULE_HOME/boot/libwrapper-macosx-*</code></li>
<li><code>cp $TANUKI_WRAPPER_HOME/wrapper-delta-pack-3.3.5/lib/libwrapper-macosx-universal-* $MULE_HOME/boot</code></li>
<li>NOTE: I decided to remove the existing macosx libraries first, because there was a ppc version that I won’t use and didn’t want a mix of old/new libraries</li>
</ol>
</li>
<li style="text-align: left;">Copy the new wrapper.jar (adding the version number) and remove the old jar
<ol>
<li><code>cp $TANUKI_WRAPPER_HOME/wrapper-delta-pack-3.3.5/lib/wrapper.jar $MULE_HOME/boot/wrapper-3.3.5.jar</code></li>
<li><code>rm $MULE_HOME/boot/wrapper-3.2.3.jar</code></li>
</ol>
</li>
</ol>
<p>You should be good to go at this point, so give your mule a kick and see what happens!  If all went well, you should see something similar to the following:</p>
<pre style="padding-left: 60px;">Java Service Wrapper Community Edition 32-bit 3.3.5
Copyright (C) 1999-2009 Tanuki Software, Ltd.  All Rights Reserved.
http://wrapper.tanukisoftware.org

Launching a JVM...
Starting the Mule Server...
...</pre>
<p style="text-align: left;">Please submit your comments to help improve this blog.  I&#8217;ll do my best to update this for clarity and completeness in a timely manner.</p>
<p style="text-align: left;">Happy Trails!<br />
Rich Remington</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rich-software.com/wp/2009/07/running-mule-2-2-x-with-64-bit-tanuki-wrapper-and-java-6-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
