Opened 9 years ago

Closed 9 years ago

#2100 closed task (implemented)

Please make configuration changes to Tomcat on yatei

Reported by: karsten Owned by:
Priority: Medium Milestone:
Component: Company Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I need the following configuration changes on yatei:

  • Copy PostgreSQL JDBC library to Tomcat's shared library directory:
# cp /srv/metrics.torproject.org/web/lib/postgresql-8.4-702.jdbc3.jar /usr/share/tomcat5.5/common/lib/
  • Allow all Tomcat webapps to connect to PostgreSQL by adding the following line to the first grant block in /etc/tomcat5.5/policy.d/04webapps.policy:
permission java.net.SocketPermission "127.0.0.1:5432", "resolve,connect";
  • Allow Tomcat's logger to read our logging.properties file by adding the following two lines to the last grant block in /etc/tomcat5.5/policy.d/04webapps.policy that applies to codeBase "file:${catalina.home}/bin/tomcat-juli.jar":
permission java.io.FilePermission "${catalina.base}/webapps/ernie/WEB-INF/classes/logging.properties", "read";
permission java.lang.RuntimePermission "setContextClassLoader";
  • Speaking of, please give me read access to /etc/tomcat5.5/policy.d/ or provide me with current copies of the contained files for documentation purposes.

Thanks!

Child Tickets

Change History (1)

comment:1 Changed 9 years ago by karsten

Resolution: implemented
Status: newclosed

Changes applied by weasel with some modifications. Closing this ticket. Thanks!

Note: See TracTickets for help on using tickets.