Tomcat6 Installation

From NST Wiki
Jump to: navigation, search

This page is related to getting Tomcat (in particular the tomcat6 packages) set up and working.

NST 2.15.0 (Fedora 15) Tomcat6 Installation Notes

Tomcat does not install cleanly on a NST 2.15.0 (Fedora 15) system due to packaging issues. This section documents what I had to do to get it working.

  • Install the tomcat6 packages:
yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps tomcat6-docs-webapp
  • Edit the /etc/tomcat6/tomcat-users.xml file and add a account with the admin,manager roles.
  • Start the tomcat6 service.
 systemctl start tomcat6.service

At this point the tomcat6 service should be running and you should be able to connect to it using http://127.0.0.1:8080/.

If you see the Apache Tomcat welcome page, then you should be good to go (maybe you were lucky and the issue described below has already been fixed for you via a yum update).

If you just see a blank page when connecting to this URL, then you probably have the permissions issue identified at FedoraForum.org. Running the following commands (as suggested on the forum page) should fix the permissing and owenership issues:

chmod g+x /usr/share/tomcat6/logs
chmod g+x /etc/tomcat6
chmod g+x /usr/share/tomcat6/webapps/
chmod g+x /usr/share/tomcat6/temp
chmod g+x /usr/share/tomcat6/work
chmod g+x /var/cache/tomcat6
chown -R tomcat:tomcat /etc/tomcat6/Catalina
chmod g+x /var/lib/tomcat6/

After running the above commands restart the tomcat6 service:

systemctl restart tomcat6.service