Skip to content

Category Archives: Servers

Configuring Tomcat 5.5 JNDI Datasources with Spring

First of all, make sure you’re looking at the Tomcat 5.5 JNDI HowTo, not the Tomcat 5, and definitely not Tomcat 4. Yes, I know this sounds obvious, but once you start googling you’ll find it’s hard to distinguish the versions. Place a context definition in /META-INF/context.xml – this is the preferred 5.5 per-application method [...]

Configuring A Remote Pine Client for a Dreamhost Account

I wanted to make sure I write this down somewhere, because I always forget how to configure Pine. I found a nice artical here, but had to go to google’s cache of the page to view it because it’s password protected now. Here are the configuration entries I made to get pine working with my [...]

Tomcat Classloader hierarchy, a quick review

Taken from Tomcat’s reference page. Tomcat’s classloader hiararchy looks something like this: Bootstrap | System | Common / \ Catalina Shared / \ Webapp1 Webapp2 .. etc Classloader rules: * Classloaders will only load the “same” class once. * Two classes are only the “same” if they have the same name, and were loaded by [...]

Configuring Tomcat to point to source directory for auto deploy

Tired of manually copying jsp files, or classes/jars that modify frequently to your webapp directory? (even if it means to run a single ant task) You can make Tomcat point to your source codebase and autodeploy automatically. Copy the following into your tomcat/conf/Catalina/localhost/myproject.xml Assuming that you have your entire ‘web’ directory structure which has css, [...]