Gentoo, Tomcat 6.0, Apache, mod_jk
Monday, April 30th, 2007Edit /etc/apache2/modules.d/88_mod_jk.conf at the end
... jkAutoAlias /var/lib/tomcat-6/webapps/ ... # jkMount // ajp13 jkMount /fooApp/someServlet ajp13
Edit /etc/apache2/modules.d/88_mod_jk.conf at the end
... jkAutoAlias /var/lib/tomcat-6/webapps/ ... # jkMount // ajp13 jkMount /fooApp/someServlet ajp13
Add AllowOverride as shown below.
<Directory "/var/www/.../htdocs">
...
AllowOverride All
...
</Directory/>
Environment Gentoo, Apache-2.0.59, Tomcat-6
Problem Need to configure Tomcat-6 behind Apache and custom applications (stadtplan and Mobile Geizhals) depend on some libraries.
Solution
Add c3p0 to USEFLAGS.
emerge c3p0 mod_jk jdbc-mysql
Edit /etc/conf.d/tomcat-6 CLASSPATH=${CATALINA_LIBDIR}:`java-config -p commons-logging,c3p0,jdbc-mysql`
I could not find the SpringFramework in the portage tree. But adding it to the classpath is a bad idea anyway. I received the following error message
Unable to load class for JSP
Just place the spring.jar into WEB-INF/lib of your application. Any tips on the web like, putting tools.jar into /usr/share/tomcat-6/lib/ don't help.
You need to put a proper .xml file into /etc/tomcat-6/Catalina/localhost/
Debugging
cat /var/log/tomcat-6/catalina.*.log cat /var/log/tomcat-6/localhost.*.log java-config -l
Story
Just incase, ISA 2006 filters umlauts in URLs by default. As I use umlauts in my page titles in MediaWiki, I just got HTTP 500 internal server error message. The important hint that led to my solution was the mentioning of HTTPFilter in the error message.
Environment ISA 2006, Web Site Publishing, MediaWiki
Symptom Wiki pages with umlauts don't work.
Reason ISA 2006 filters umlauts in URLs.
Solution Properties of "Web Publish Rule", Traffic, Filtering, (uncheck Verify normalization, Block high bit characters)
equery uses -a ">=www-apps/wordpress-2.1.2"