Now blogging at diego's weblog. See you over there!

the daily wtf

I was just introduced to this site: The Daily WTF "Curious Perversions in Information Technology." I would start pointing to each good entry but I can't, they're all hilarious (or sad, depending on which side of the fence you're on). The main page is (as far as I can see) a blog-like rendering of the Daily WTF Forum from the forums on the site (check out the other forums too). Most excellent--subscribed.

Posted by diego on January 26, 2005 at 11:49 PM

update: setting up apache, tomcat, and mysql


One of the most visited entries from last year was my configuring apache 2 + tomcat 5 + mysql + jdbc access on linux and windows post. However, after a few months there was a change in the default Tomcat configuration (as well as changes in the connectors) that rendered the Tomcat/Apache connection part nearly useless. That is, it does apply to those specific versions, but no version of Tomcat after 5.0.18 (which is the one I used there) matches the description in the post, even though the Tomcat major version --5.x-- hasn't changed. Sigh. Those are the problems that open source creates sometimes, constant changes in tiny things, config or code, that break a lot of stuff without a clear reason (maybe there is a reason, but it's usually not communicated properly, or at all).

Anyway, I've recently done a new configuration using the latest tomcat, so here's an update to that post on that section. The other sections (that deal with Apache installation, MySQL and so on) have remained largely relevant.

The tomcat config

As far as tomcat itself is concerned, the main change was the configuration for the Context. My post says that you should look for the line "<Context path="" docBase="ROOT" debug="0">" which in the newer default server.xml config files doesn't exist anymore. So where does the context line go? It turns out that the new server.xml includes a default config for a Host. Within the host there's a Logger element set up. After that is where I've now included the context path. Similarly, I've added a Resource tag after the Context for the JDBC connection. Summarizing, After the Logger tag in the Host I've added the following:
<Context path="/appPath" docBase="APACHE_DIR/htdocs" debug="0" reloadable="true" crossContext="true"/>
<Resource name="jdbc/mysql"

The connector config

I'm still using JK2. The main difference is that instead of adding the connection point in I am now adding it in jk.conf (which I think is a new file in the recent versions of jk2). I added the following line at the end of jk.conf

JkMount /appPath/*.jsp ajp13

Note that "appPath" is the context that was defined above.

So, I think that's it as an update. It's not a huge difference, but judging from my experience (and from emails I keep getting on the topic) this was more than enough to complicate usage of the old instructions.

Configurations are always a problem, no matter how many HOWTOs you've got, but I hope this makes things at least a bit easier!

Posted by diego on January 26, 2005 at 5:40 PM

old shoe, new shoe

For some reason I just remembered an exchange between Dennis Leary and Willie Nelson in "Wag the Dog" where Dennis Leary's character utters those words. That's how random my brain is.

Dylan, a good friend whom I stayed with in California (the first few days I was there at the beginning of January), has retired his weblog. He has a number of excuses (I mean, reasons!), which I want to ignore and hope he'll get back to blogging at some point, even if haphazardly. Dylan's foray into blogging is one of the reasons why I'm blogging, so at the very least, here's a digital Guinness raised in Warmbrain's honor. :)

On the new shoe front, Martin, another friend, has finally acquiesced to my constant babbling about blogs (and my usual "start a weblog! now!") and started a weblog :). He's one of the best developers I know, so he's sure to post some interesting stuff. Check out his wide range of interests (and knowledge) in some of his initial posts, from Keystroke emulation in Win32, to Java Swing Tips to Stack trace annotations. If my brain wasn't fried (18 hour day so far and all) I'd make some interesting comments on those, but for the moment I'll just link to them. Welcome Martin! :)

Categories: technology
Posted by diego on January 26, 2005 at 12:05 AM

Copyright © Diego Doval 2002-2011.