Something new today – I want to have a tomcat environment to play around with. So I emerged tomcat – this pulls a LOT of packages on the box, and also I first added these lines to /etc/portage/package.use:
dev-java/sun-jdk doc
www-servers/tomcat doc java5
After the emerge, I stick to the wiki entry and the official Gentoo tomcat guide. Just starting /etc/init.d/tomcat-5.5 did it – I could reach the tomcat server at port 8080.
Then, I had a look at /etc/conf.d/tomcat-5.5. It uses sun java, which is ok. I then added the user apache to the group tomcat, and also my own user, in order to be able to access the tomcat files easily. Finally, I added manager access, as described in the wiki.
Now it’s time to integrate apache and tomcat – again, there is a wiki entry on mod_jk. Emergin mod_jk and configure /etc/conf.d/apache2 – easy – everything works!













