<?xml version="1.0" encoding="UTF-8"?>







<rss version="2.0">
<channel>
  <title>Derek Burt&#039;s Weblog - Java category</title>
  <link>http://www.derekburt.com/blog/</link>
  <description>Paying the bills with my mad programming skills...</description>
  <language>en</language>
  <copyright>Derek Burt</copyright>
  <lastBuildDate>Thu, 21 Aug 2008 22:01:56 GMT</lastBuildDate>
  <generator>Pebble</generator>
  <docs>http://backend.userland.com/rss</docs>
  <image>
    <url>http://www.derekburt.com/blog/themes/custom/images/me.jpg</url>
    <title>Derek Burt&#039;s Weblog (Java category)</title>
    <link>http://www.derekburt.com/blog/</link>
  </image>
  
  <item>
    <title>Google flex</title>
    <link>http://www.derekburt.com/blog/2006/06/21/1150902105789.html</link>
    
      
        <description>
          &lt;p&gt;
My buddy &lt;a href=&#034;http://swank.ca/caffeen/jesse/index.htm&#034;&gt;Jesse&lt;/a&gt; works for &lt;a href=&#034;http://www.google.ca/&#034;&gt;Google&lt;/a&gt;.  He&#039;s also a local boy hailing from the city that rhymes with fun, Regina.  He was also &lt;a href=&#034;http://swank.ca/2006/06/podcasting-killed-radio-star.html&#034;&gt;recently interviewed&lt;/a&gt; on the radio by &lt;a href=&#034;http://www.cbc.ca/sask/&#034;&gt;CBC Saskatchewan&lt;/a&gt;.  Check it out!
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <category>Life</category>
    
    <comments>http://www.derekburt.com/blog/2006/06/21/1150902105789.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2006/06/21/1150902105789.html</guid>
    <pubDate>Wed, 21 Jun 2006 15:01:45 GMT</pubDate>
  </item>
  
  <item>
    <title>Post mortem</title>
    <link>http://www.derekburt.com/blog/2005/06/23/1119566707930.html</link>
    
      
        <description>
          &lt;p&gt;
I took the website down last night for what I hoped was a three hour outage to upgrade everything on the server, but it turned into almost 24 hours because I am an idiot and have no idea what I am doing with computers or pretty much anything.
&lt;/p&gt;
&lt;p&gt;Watch this space if I get around to it for my guide to getting various things going on &lt;a href=&#034;http://fedora.redhat.com/&#034;&gt;Fedora&lt;/a&gt; Core 4, tentatively titled &#034;A big fucking waste of your time: Installing Apache, Java 5, and Tomcat 5 on Fedora Core 4&#034;.
&lt;/p&gt;
&lt;p&gt;
As always, let me know if you notice anything weird with the site.  If there&#039;s a problem, it&#039;s probably my fault.
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Java</category>
    
    <category>Website</category>
    
    <comments>http://www.derekburt.com/blog/2005/06/23/1119566707930.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2005/06/23/1119566707930.html</guid>
    <pubDate>Thu, 23 Jun 2005 22:45:07 GMT</pubDate>
  </item>
  
  <item>
    <title>A post about XML feeds</title>
    <link>http://www.derekburt.com/blog/2004/11/22/1101158696000.html</link>
    
      
        <description>
          &lt;p&gt;
If an item in your XML feed is a link to your website article or blog entry, I don&#039;t read it - it&#039;s that simple.
&lt;/p&gt;
&lt;p&gt;
I don&#039;t know about anyone else, but there are lots of times when I read the contents of my RSS aggregator offline.  My favourite thing to do when I&#039;m on the plane is catching up on what&#039;s happening out there in Java and Internet land that I simply haven&#039;t had time to check out during the week.  It&#039;s a great way to catch up and take advantage of some downtime.  The problem is that so many posts from &lt;a href=&#034;http://www.javablogs.com/&#034;&gt;JavaBlogs&lt;/a&gt; and others are simply titles with a link to the actual entry, which means I can&#039;t read them - which means I don&#039;t read them!
&lt;/p&gt;
&lt;p&gt;
I&#039;m new to RSS-aggregator-land, but since I have a &lt;a href=&#034;www.microsoft.com/windowsxp&#034;&gt;Windows XP&lt;/a&gt; &lt;a href=&#034;http://www-132.ibm.com/webapp/wcs/stores/servlet/ProductDisplay?productId=8680656&amp;storeId=124&amp;langId=124&amp;categoryId=2049168&amp;dualCurrId=74&amp;catalogId=-124&#034;&gt;laptop&lt;/a&gt; that I am mandated to use, the best RSS reader for me that I’ve found so far is &lt;a href=&#034;http://www.sharpreader.net/&#034;&gt;SharpReader&lt;/a&gt;, so that&#039;s what I&#039;ve been using.  It serves my purposes okay, especially for the price.  I don&#039;t know if there are any  RSS aggregators out there that will follow all the links there and download them for offline reading, so maybe it&#039;s just the client I&#039;m using.  With that being said, forget about the client side of things for a moment - just having a &#034;headlines&#034; XML feed makes no sense when folks are terrible at coming up with headlines.  For a newspaper, sure, you can usually get the gist of it from the headline, but for blogs &#034;my thoughts on the economy&#034; usually doesn’t cut it.  I don&#039;t have a problem with summaries - I can at least understand where you&#039;re going with it and mark it for later online viewing (or like many you&#039;ve got revenue models to meet and need folks to see your advertisements), but I just don&#039;t have time to do that with the millions of web sites out there that don&#039;t include any content in their feeds.
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&#034;http://www.wilwheaton.net/&#034;&gt;Wil Wheaton&lt;/a&gt; &lt;a href=&#034;http://www.wilwheaton.net/mt/archives/001708.php&#034;&gt;has seen the light&lt;/a&gt;, so why haven&#039;t you?
&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <category>Weblogs</category>
    
    <comments>http://www.derekburt.com/blog/2004/11/22/1101158696000.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2004/11/22/1101158696000.html</guid>
    <pubDate>Mon, 22 Nov 2004 21:24:56 GMT</pubDate>
  </item>
  
  <item>
    <title>Installing Java, Tomcat, and Apache together - the easy way?</title>
    <link>http://www.derekburt.com/blog/2004/03/21/1079927188000.html</link>
    
      
        <description>
          &lt;p&gt;I made the switch to &lt;a href=&#034;http://www.linux.org/&#034;&gt;Linux&lt;/a&gt; full-time on all my machines at home last summer.  The biggest thing that I had to get used to is where all the files go.  Like the early days of &lt;a href=&#034;http://www.microsoft.com/windows/&#034;&gt;Windows&lt;/a&gt;, apps in Linux seem to place files wherever they damned-well please.  Nowadays in Windows most files obey certain conventions (installed in C:\Program Files for instance), but I honestly still haven&#039;t gotten the hang of whatever implicit system people seem to follow.  Following up on my &lt;a href=&#034;http://www.derekburt.com/blog/2004/03/21/1079925257000.html&#034;&gt;earlier post&lt;/a&gt;, the good news is that with &lt;a href=&#034;http://www.ximian.com/products/redcarpet/&#034;&gt;Red Carpet&lt;/a&gt; I don&#039;t have to worry too much about that anymore.  The even better news is that there is that in conjunction with &lt;a href=&#034;http://www.open-carpet.org/&#034;&gt;Open Carpet&lt;/a&gt;, there is a repository for Java-based software as well - &lt;a href=&#034;http://www.jpackage.org/&#034;&gt;jpackage.org&lt;/a&gt;!  For me, I&#039;d rather make installs of everything as automatic as possible rather than fiddle around all over the hard drive, so he&#039;s what I did to get it going on my newly-formatted &lt;a href=&#034;http://fedora.redhat.com/&#034;&gt;Fedora Core 1&lt;/a&gt; web server:&lt;/p&gt;&lt;p&gt;&lt;b&gt;Installing Java&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Grab the latest nosource rpm from jpackage.org for the install you are looking for.  For me, I&#039;m looking to use the 1.4.2 install of Java from Sun, but you might have other preferences.  In my case, this was the file I was looking for:&lt;br /&gt;&lt;br /&gt;java-1.4.2-sun-1.4.2.04-1jpp.nosrc.rpm&lt;br /&gt;&lt;br /&gt;There is no automatic way to get this file, because contrary to what some might think, Java&#039;s licence means that distributing binary versions is a hassle.  We&#039;ll have to make a binary RPM for ourselves to install.  This is easy enough, just go to &lt;a href=&#034;http://java.sun.com/&#034;&gt;Sun&lt;/a&gt; and download the binary, which in my case was:&lt;br /&gt;&lt;br /&gt;j2sdk-1_4_2_04-linux-i586.bin&lt;br /&gt;&lt;br /&gt;At this point, I should mention that while there are definitely binary versions of Java you can go out and install, jpackage.org&#039;s structure means that you had better do things their way, because all of their RPM&#039;s create a certain directory structure, so if you don&#039;t, you&#039;re on your own and things might not work.  Trust me on this one, use jpackage.org as an &#034;all or nothing&#034; solution as much as you can, I&#039;ve got hours of swearing ot prove it!&lt;/p&gt;&lt;p&gt;We&#039;ll use the two files we downloaded previously to build a binary install on our system.  Keep in mind your versions might be different!  First, install the no-source RPM:&lt;/p&gt;&lt;pre&gt;[root]# rpm -i java-1.4.2-sun-1.4.2.04-1jpp.nosrc.rpm&lt;/pre&gt;&lt;p&gt;If you get a warning about some folders not existing, go ahead and create them (/usr/src/redhat comes to mind as a likely culprit).  You&#039;ll need to base your new RPM on the binary file you just downloaded, so make sure it&#039;s in the right spot:&lt;/p&gt;&lt;pre&gt;[root]# cp j2sdk-1_4_2_04-linux-i586.bin /usr/src/redhat/SOURCES&lt;/pre&gt;&lt;p&gt;Execute the following command:&lt;/p&gt;&lt;pre&gt;[root]# rpmbuild -ba /usr/src/redhat/SPECS/java-1.4.2-sun.spec&lt;/pre&gt;&lt;p&gt;If you don&#039;t have jpackage-utils installed and it asks for it, use Red Carpet to install it.  It will take a long time to execute and when it&#039;s finished you&#039;ll see stuff like this:&lt;p&gt;&lt;pre&gt;Wrote: /usr/src/redhat/SRPMS/java-1.4.2-sun-1.4.2.04-1jpp.nosrc.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-devel-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-src-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-demo-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-plugin-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-fonts-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-alsa-1.4.2.04-1jpp.i586.rpmWrote: /usr/src/redhat/RPMS/i586/java-1.4.2-sun-jdbc-1.4.2.04-1jpp.i586.rpm&lt;/pre&gt;&lt;p&gt;Now you&#039;ve got the RPM files you need to install Java using Red Carpet, so go and do it!&lt;/p&gt;&lt;p&gt;&lt;b&gt;Installing Tomcat&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I installed Tomcat 4 using Red Carpet and jpackage.org, but I ran into a few snags:&lt;/p&gt;&lt;pre&gt;Unresolved dependencies:Installing tomcat4-0:4.1.29-3jpp[JPackage (all distros)]There are no installable providers of &gt;=jaf-0:1.0.1[[Any]] for tomcat4-0:4.1.29-3jpp[JPackage (all distros)]There are no installable providers of &gt;=javamail-0:1.3[[Any]] for tomcat4-0:4.1.29-3jpp[JPackage (all distros)]There are no installable providers of &gt;=jta-0:1.0.1-0.a.1[[Any]] for tomcat4-0:4.1.29-3jpp[JPackage (all distros)]tomcat4-0:4.1.29-3jpp is scheduled to be installed, but this is not possible because of dependency problems.Marking this resolution attempt as invalid.&lt;/pre&gt;&lt;p&gt;Looks like it&#039;s back to the creating-your-own-RPM drawing board for us, but luckily it&#039;s pretty much exactly the same process as before.  Here&#039;s the condensed version:&lt;/p&gt;&lt;pre&gt;[root]# cp jaf-1_0_2.zip /usr/src/redhat/SOURCES[root]# cp javamail-1_3_1.zip /usr/src/redhat/SOURCES[root]# cp jta-1_0_1B-classes.zip /usr/src/redhat/SOURCES[root]# rpm -i jaf-1.0.2-3jpp.nosrc.rpm[root]# rpm -i javamail-1.3.1-1jpp.nosrc.rpm[root]# rpm -i jta-1.0.1-0.b.3jpp.nosrc.rpm[root]# rpmbuild -ba /usr/src/redhat/SPECS/jaf.spec[root]# rpmbuild -ba /usr/src/redhat/SPECS/javamail.spec [root]# rpmbuild -ba /usr/src/redhat/SPECS/jta.spec --without javadoc&lt;/pre&gt;&lt;p&gt;(All of the binary files above are available from their provider, in this case, on &lt;a href=&#034;http://www.sun.com/&#034;&gt;Sun&lt;/a&gt;&#039;s &lt;a href=&#034;http://java.sun.com/&#034;&gt;Java&lt;/a&gt; site)&lt;/p&gt;&lt;p&gt;Now your RPM&#039;s are ready to install with Red Carpet and your Tomcat install should go fine!  In addition to the tomcat4 package, make sure you grab the tomcat4-admin-webapps package too, because I&#039;ve got a feeling you&#039;ll eventually want to administer your new installation of Tomcat!&lt;/p&gt;&lt;p&gt;&lt;b&gt;Installing Apache&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Use Red Carpet to install the httpd package if you don&#039;t have it already - you&#039;re done!&lt;/p&gt;&lt;p&gt;&lt;b&gt;Installing mod_jk2&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Use Red Carpet to install mod_jk2 from jpackage.org and you&#039;re done!&lt;/p&gt;&lt;p&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Getting Tomcat, Apache, and mod_jk2 to talk to one-another is the biggest trick of all.  Even though I had done it all before, this time I couldn&#039;t get it going for some reason because I had to add some settings in httpd.conf that I didn&#039;t before.  Rather than explain it all to you, I&#039;ll point you towards &lt;a href=&#034;http://www.dynamicobjects.com/d2r/&#034;&gt;Diego&lt;/a&gt;&#039;s &lt;a href=&#034;http://www.dynamicobjects.com/d2r/archives/002574.html&#034;&gt;guide&lt;/a&gt; and you should find what you are looking for.  Thanks a million, Diego, you saved me a lot of cursing!  Once you go through that, that should be all the general customization you have to do.&lt;/p&gt;&lt;p&gt;Speaking of customization, now it&#039;s your turn!  I&#039;ve shown as much as I can right now, the rest is up to you.  You&#039;ll have to do things like add the appropriate users in tomcat-users.xml and install the applications in Tomcat that you want to use.  Also keep in mind that under this install Tomcat runs under a user called &#034;tomcat4&#034;, so if that user doesn&#039;t have the right permissions, Tomcat might not be able to read the files you need it to read.  Please feel free to e-mail me or leave a comment, I&#039;d be more than happy to update this short guide if anybody has any questions or runs into problems.&lt;/p&gt;&lt;p&gt;Now, I know, these steps might not have been shorter than downloading and installing all the files yourself, but with jpackage.org and Red Carpet you gain a few things that I think are important:&lt;ul&gt;&lt;li&gt;I don&#039;t have to worry about where things are installed - Red Carpet takes care of that for me&lt;/li&gt;&lt;li&gt;Tomcat runs under it&#039;s own user (not root, which is good!) and I didn&#039;t have to do anything to create it/get it running&lt;/li&gt;&lt;li&gt;Tomcat runs as a &lt;b&gt;service&lt;/b&gt;, which makes configuring when it starts and stops really easy, especially for bootup&lt;/li&gt;&lt;li&gt;I can upgrade Apache, Tomcat, and mod_jk2 with a click of a button using Red Carpet - who knows, maybe if &lt;a href=&#034;http://www.ibm.com/&#034;&gt;IBM&lt;/a&gt; and Sun can get together, I can add Java to that list as well!&lt;/li&gt;&lt;/ul&gt;It might take a little longer (and then again, it might not), but I think it&#039;s worth it!&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Java</category>
    
    <comments>http://www.derekburt.com/blog/2004/03/21/1079927188000.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2004/03/21/1079927188000.html</guid>
    <pubDate>Mon, 22 Mar 2004 03:46:28 GMT</pubDate>
  </item>
  
  <item>
    <title>Red Carpet rules</title>
    <link>http://www.derekburt.com/blog/2004/03/21/1079925257000.html</link>
    
      
        <description>
          &lt;p&gt;Another great part of using Linux - installing &lt;a href=&#034;http://www.ximian.com&#034;&gt;Ximian&lt;/a&gt;&#039;s &lt;a href=&#034;http://www.ximian.com/products/redcarpet/&#034;&gt;Red Carpet&lt;/a&gt; software is free and easy - just execute the following command at the prompt after you&#039;ve downloaded the necessary software for your platform:&lt;/p&gt;&lt;pre&gt;[root]# rpm -Uvh red-carpet-2.2.2-0.ximian.7.0.i386.rpm rcd-2.0.2-0.ximian.7.11.i386.rpmrug-2.0.2-0.ximian.7.1.i386.rpm&lt;/pre&gt;&lt;p&gt;Once you&#039;ve done that, it&#039;s simple to launch the X program:&lt;/p&gt;&lt;pre&gt;[root]# red-carpet&lt;/pre&gt;&lt;p&gt;Better yet, use a command-line version:&lt;/p&gt;&lt;pre&gt;[root]# rug&lt;/pre&gt;&lt;p&gt;I&#039;ll leave the use of the program to you, but it&#039;s even more useful if you add the &lt;a href=&#034;http://www.open-carpet.org/&#034;&gt;Open Carpet&lt;/a&gt; service to your list of service inside Red Carpet.  I&#039;ve been using Red Carpet for almost a year now and I gotta say I&#039;m really impressed.  There really isn&#039;t any equivalent to it in the &lt;a href=&#034;http://www.microsoft.com/windows/&#034;&gt;Windows&lt;/a&gt; world.  Not only can you get security updates, but you can also pick and choose from thousands of apps out there that have been released free-of-charge.  Almost all of the Java development apps that I use on a daily basis are available using Red Carpet and Open Carpet together - try it today!&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Linux</category>
    
    <category>Java</category>
    
    <comments>http://www.derekburt.com/blog/2004/03/21/1079925257000.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2004/03/21/1079925257000.html</guid>
    <pubDate>Mon, 22 Mar 2004 03:14:17 GMT</pubDate>
  </item>
  
  <item>
    <title>Struts in Action</title>
    <link>http://www.derekburt.com/blog/2003/11/30/1070242794000.html</link>
    
      
        <description>
          &lt;p&gt;I finished reading &lt;a href=&#034;http://husted.com/struts/book.html&#034;&gt;Struts in Action&lt;/a&gt; a few days ago and I&#039;m very glad I did.  A colleague had picked it up at work but moved on to another project before he could put it to use so I finally brought it home.  I would consider myself pretty much a &lt;a href=&#034;http://jakarta.apache.org/struts/&#034;&gt;Struts&lt;/a&gt; 1.0 expert, but I really don&#039;t have much experience with any of the 1.1 technology or really anything recent in &lt;a href=&#034;http://jakarta.apache.org/&#034;&gt;Jakarta&lt;/a&gt;-land, although I&#039;ve been reading and keeping up on it as much as I can.  This book did a great job of keeping 1.0 and 1.1 things separate and clearly showing what the differences are.  I am not so sure how good a how-to book this one is for those completely unfamiliar with Struts, or at least web frameworks, but my gut feeling is that it would be a good one.  I might be biased, as well, because &lt;a href=&#034;http://www.husted.com/services/about_ted.htm&#034;&gt;Ted Husted&lt;/a&gt; and his website got me out of a lot of jams when I was learning Struts for the first time ;)&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Books</category>
    
    <category>Java</category>
    
    <comments>http://www.derekburt.com/blog/2003/11/30/1070242794000.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2003/11/30/1070242794000.html</guid>
    <pubDate>Mon, 01 Dec 2003 01:39:54 GMT</pubDate>
  </item>
  
  <item>
    <title>Extreme Testing</title>
    <link>http://www.derekburt.com/blog/2003/10/30/1067579734000.html</link>
    
      
        <description>
          &lt;p&gt;Today at lunch I found myself downtown at &lt;a href=&#034;http://www.ibm.com/ca&#034;&gt;IBM&lt;/a&gt; for a &lt;a href=&#034;http://groups.yahoo.com/group/reginajug/&#034;&gt;Regina Java Users Group&lt;/a&gt; meeting.  Greg Hutchinson, a local consultant who runs his own company, Attractors Consulting, Inc., presented his topic, &#034;Extreme Testing - The Extreme Programming Way&#034;.  It was a great introduction to a topic I&#039;m very interested in.  I think iterative development is absolutely the way to go - I&#039;ve seen first hand how quickly things can break down if you aren&#039;t doing enough (and the right) testing, especially on a large team like the one I&#039;m working on right now.  In fact, I&#039;m thinking of a few side-projects at the moment that would be a great opportunity to really take advantage of and learn tools like &lt;a href=&#034;http://www.junit.org/&#034;&gt;JUnit&lt;/a&gt;.  We have a tool at work that is licensed company-wide called &lt;a href=&#034;http://www.parasoft.com/jsp/products/home.jsp?product=Jtest&#034;&gt;Jtest&lt;/a&gt; that is supposed to speed up using it even more.  Can&#039;t wait to try it out :)&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://www.derekburt.com/blog/2003/10/30/1067579734000.html#comments</comments>
    <guid isPermaLink="true">http://www.derekburt.com/blog/2003/10/30/1067579734000.html</guid>
    <pubDate>Fri, 31 Oct 2003 05:55:34 GMT</pubDate>
  </item>
  
  </channel>
</rss>
