Archive for the ‘apache’ Category

Gentoo, Tomcat 6.0, Apache, mod_jk

Monday, April 30th, 2007

Edit /etc/apache2/modules.d/88_mod_jk.conf at the end

jkAutoAlias /var/lib/tomcat-6/webapps/
# jkMount // ajp13
jkMount /fooApp/someServlet ajp13

.htaccess in Apache not working?!

Tuesday, April 17th, 2007

Add AllowOverride as shown below.

<Directory "/var/www/.../htdocs">
AllowOverride All

Apache, Tomcat, Gentoo, SpringFramework, c3p0, jdbc-mysql

Sunday, April 8th, 2007

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.


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/.xml. Just copy an existing one there.


cat /var/log/tomcat-6/catalina.*.log
cat /var/log/tomcat-6/localhost.*.log

java-config -l

ISA 2006 vs. MediaWiki and Umlauts

Monday, March 26th, 2007


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)

What USE flags are used by a non-installed package?

Sunday, March 25th, 2007

equery uses -a ">=www-apps/wordpress-2.1.2"