Skip to content

Tag Archives: tomcat

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 [...]

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, [...]