The Blizzard of 2008

We got a lot of snow last week. As you can see, the Wee Beastie (an ancient snowblower refurbuished and given to us by my step-dad) held its own. Here are some pictures.

Posted in personal | Leave a comment

The First Snow


It was so nice outside this morning that I didn’t wear boots or a hat to work. All of a sudden it was a blizzard outside. Now we have 2 or 3 inches of dense, wet snow.

Posted in personal | Leave a comment

Book Meme

OK, here it goes, I will now participate in my first Internet meme.

From “Mastering SQL” by Martin Gruber: “In the second option above, we can use a default value as an alternative to a NULL.”

The Meme:

  1. Grab the nearest book.
  2. Open it to page 56.
  3. Find the fifth sentence.
  4. Post the text of the sentence in your journal along with these instructions.
  5. Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST
Posted in meme, planet-ubuntu-users | Leave a comment

Awesome Cartoon

Posted in fluff | Leave a comment

Tomcat5.5 and Apache2 on Ubuntu 8.04 Hardy Heron

Getting Tomcat and Apache working together isn’t very complicated as long as you know what to do!

Installation

  1. Enable multiverse repository
  2. sudo apt-get install sun-java6-jdk apache2
  3. sudo apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps libapache2-mod-jk
  4. sudo /etc/init.d/apache2 restart
  5. sudo /etc/init.d/tomcat5.5 restart

Tests:

If you get an access error from the Tomcat test, it can usually be fixed by re-installing the sun java6 jdk, performing the Tomcat config below, and then restarting Tomcat: sudo apt-get install –reinstall sun-java6-jdk

Configure Tomcat

sudo nano -w /etc/tomcat5.5/tomcat-users.xml

<tomcat-users>
<role rolename=”admin” />
<role rolename=”manager” />
<role rolename=”tomcat” />
<user username=”tomcat” password=”tomcat” roles=”tomcat” />
<user username=”root” password=”password” roles=”admin,manager,tomcat” />
</tomcat-users>

sudo /etc/init.d/tomcat5.5 restart

Configure Apache to Tomcat Bypass

sudo cp /etc/libapache2-mod-jk/workers.properties /etc/apache2/
sudo nano -w /etc/apache2/workers.properties

#workers.tomcat_home=/usr/share/tomcat5
workers.tomcat_home=/usr/share/tomcat5.5

#workers.java_home=/usr/lib/jvm/java-gcj
workers.java_home=/usr/lib/jvm/java-6-sun

sudo nano -w /etc/apache2/mods-available/jk.conf

# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties

# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile /var/log/apache2/mod_jk.shm

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile /var/log/apache2/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# Send everything for context /examples to worker named worker1 (ajp13)
JkMount /admin/* ajp13_worker
JkMount /manager/* ajp13_worker

sudo ln -s /etc/apache2/mods-available/jk.conf /etc/apache2/mods-enabled/jk.conf
sudo /etc/init.d/apache2 restart

Final Tests:

Posted in java, linux, planet-ubuntu-users, tech | Leave a comment