<?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>highlylogical.com &#187; Java</title>
	<atom:link href="http://www.highlylogical.com/archives/category/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.highlylogical.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 Mar 2008 14:59:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>At long last&#8230;</title>
		<link>http://www.highlylogical.com/archives/30</link>
		<comments>http://www.highlylogical.com/archives/30#comments</comments>
		<pubDate>Wed, 19 Mar 2008 14:58:41 +0000</pubDate>
		<dc:creator>mikepigg</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.highlylogical.com/archives/30</guid>
		<description><![CDATA[I have learned why internationalization is abbreviated to &#8216;i18n&#8217; thanks to Sun&#8217;sÂ internationalization documentation.Â Now if only I knew why there&#8217;s so much more moo shu than pancakes&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I have learned why internationalization is abbreviated to &#8216;i18n&#8217; thanks to Sun&#8217;sÂ <a href="http://java.sun.com/javase/6/docs/technotes/guides/intl/index.html">internationalization documentation</a>.Â Now if only I knew why there&#8217;s so much more moo shu than pancakes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlylogical.com/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tales of a Linux/DB2 Noob</title>
		<link>http://www.highlylogical.com/archives/22</link>
		<comments>http://www.highlylogical.com/archives/22#comments</comments>
		<pubDate>Wed, 27 Feb 2008 20:10:02 +0000</pubDate>
		<dc:creator>mikepigg</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.highlylogical.com/archives/22</guid>
		<description><![CDATA[So I tried to install DB2 8.2 on Fedora 8 recently. The install seemed to go smoothly, but then I couldn&#8217;t really do anything. Running any DB2 command (like &#8216;db2&#8242;) would give strange errors like:
SQL10007N Message &#8220;-1390&#8243; could not be retrieved.  Reason code: &#8220;3&#8243;.
and
./db2cc: line 26: db2javit: command not found
and
DB2JAVIT : RC = 9501DB2INSTANCE : [...]]]></description>
			<content:encoded><![CDATA[<p>So I tried to install DB2 8.2 on Fedora 8 recently. The install seemed to go smoothly, but then I couldn&#8217;t really do anything. Running any DB2 command (like &#8216;db2&#8242;) would give strange errors like:<br />
SQL10007N Message &#8220;-1390&#8243; could not be retrieved.  Reason code: &#8220;3&#8243;.<br />
and<br />
./db2cc: line 26: db2javit: command not found<br />
and<br />
DB2JAVIT : RC = 9501DB2INSTANCE : -2029059916</p>
<p>After searching the web and trying a number of things with no better results, I tried logging in as the db2inst1 user created during installation. Voila! Everything works beautifully. The thing that I was missing for using DB2 commands from other users was adding DB2 environment variables. The script that does this in a default installation is /home/db2inst1/sqllib/db2profile. Running the following command sets up the DB2 environment:<br />
. /home/db2inst1/sqllib/db2profile</p>
<p>Okay, this is probably a total noob mistake, but if this post helps just one person, it was worth it.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlylogical.com/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up OpenLDAP on OS X Leopard</title>
		<link>http://www.highlylogical.com/archives/25</link>
		<comments>http://www.highlylogical.com/archives/25#comments</comments>
		<pubDate>Sat, 09 Feb 2008 17:53:06 +0000</pubDate>
		<dc:creator>mikepigg</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.highlylogical.com/archives/25</guid>
		<description><![CDATA[Recently I was asked to look at building a web application that would run on Tomcat and use Active Directory for authentication. Since I didn&#8217;t exactly know how to do this, I thought it would be interesting to get an OSS LDAP server up and running on my Mac and try hooking into it with [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was asked to look at building a web application that would run on Tomcat and use Active Directory for authentication. Since I didn&#8217;t exactly know how to do this, I thought it would be interesting to get an OSS LDAP server up and running on my Mac and try hooking into it with Tomcat. Since I couldn&#8217;t find this already on the net, I thought it would be handy to document the process I went through to get this set up.<span id="more-25"></span>First, you will need to have the following packages installed:- MacPorts- TomcatNow for the step-by-step:Install OpenLDAP from MacPorts
<pre> sudo port install openldap</pre>
<p>Copy slapd.conf.default to slapd.conf
<pre>cp /opt/local/etc/openldap/slapd.conf.default /opt/local/etc/openldap/slapd.conf</pre>
<p>Customize OpenLDAP configuration for Tomcat sample schema
<pre>edit /opt/local/etc/openldap/slapd.conf</pre>
<p>Add additional schemas needed to support the Tomcat sample:
<pre>include		/opt/local/etc/openldap/schema/cosine.schemainclude		/opt/local/etc/openldap/schema/inetorgperson.schema</pre>
<p>Also set suffix and rootdn as shown <a href="http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html">in this sample.</a> There&#8217;s no need to change the database type, however.Notice that the slapd.conf file defines a location that doesn&#8217;t exist for a pidfile and argsfile, so we&#8217;ll need to create the directory:
<pre>sudo mkdir /opt/local/var/run</pre>
<p>Start up OpenLDAP:
<pre>sudo /opt/local/libexec/slapd</pre>
<p>Check that it&#8217;s running:
<pre>ps -ef|grep slapd</pre>
<p>If it&#8217;s not, use -d -1 options on the command line to see what&#8217;s causing it to fail.Copy the LDIF sample file shown on the Tomcat page into a text file.Import the sample data:
<pre> ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f tomcatsample.ldif</pre>
<p>Backup Tomcat&#8217;s server config
<pre>cd tomcat_rootcp conf/server.xml conf/server.xml.backup</pre>
<p>Edit the realm definition as shown on the Tomcat page &#8211; authentication should not be needed to do LDAP lookups with the default configuration
<pre>edit conf/server.xml</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.highlylogical.com/archives/25/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing WAS 6.1 on Fedora 8</title>
		<link>http://www.highlylogical.com/archives/21</link>
		<comments>http://www.highlylogical.com/archives/21#comments</comments>
		<pubDate>Mon, 14 Jan 2008 15:05:51 +0000</pubDate>
		<dc:creator>mikepigg</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.highlylogical.com/archives/21</guid>
		<description><![CDATA[I&#8217;ve recently been playing around with Fedora 8 as an environment for installing WAS while I work on certification. There were a couple of glitches that stumped me for a day or so, but since then it&#8217;s been working great.
Â The first problem was related to updates. I could run the launchpad application, but when I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been playing around with Fedora 8 as an environment for installing WAS while I work on certification. There were a couple of glitches that stumped me for a day or so, but since then it&#8217;s been working great.</p>
<p>Â The first problem was related to updates. I could run the launchpad application, but when I tried to run the WAS installer, it would crash and core dump. Eventually I found an article on devloperWorks talking about a similar problem installing DB2. The poster said that an update fixed his problem. Although Fedora was offering 140 updates, I didn&#8217;t want to spend the time installing them. I decided to go ahead and do that, and afterwards my core dump problem was fixed.</p>
<p>However, now the installer just quit without doing anything (or even showing an UI) rather than core dumping. A post by Kenny Smith suggested that there were some other packages that needed to be installed as documented in the manuals. I decided to read the installation manuals on the InfoCenter, and followed the instructions for RHEL5. Sure enough, there were four or five packages that were documented as being required that were not installed by default, so I went ahead and installed them. Lo and behold, the installer ran and installed WAS!</p>
<p>I guess the moral of the story is two-fold: 1) Install the updates that the system is offering. 2) Read the manual.Â </p>
]]></content:encoded>
			<wfw:commentRss>http://www.highlylogical.com/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
