I wanted to mention a tricky classpath issue I noticed with Tomcat in
case it saves anyone else some headaches.

I use Ubuntu 7.10 and Tomcat 5.5.25. I was starting Tomcat by directly
executing "$CATALINA_HOME/bin/catalina.sh run". If I ran the script
this while the current working directory was the source tree root
directory of my Mifos working copy (the directory with build.xml,
BirtReportDesign, BirtWebViewer, conf, lib, sql, src, test, etc.)
Tomcat would somehow end up using hibernate.properties (the default
one) for database connection settings for that invocation of Mifos,
instead of hibernate.properties within the deployed WAR (the one that
was actually my.hibernate.properties). I think Tomcat might add the
current dir to the class loader's classpath, and when the class loader
tried to get the hibernate.properties resource URL it used the default
hibernate.properties.

Anyway, I came up with a Tomcat start/stop script that seems to work
pretty well. Use it without arguments for usage information. Comments,
criticisms, questions, feedback, suggestions welcome.

HTH,
-Adam

-- 
Adam Monsen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to