context.xml 3.62 KB
Newer Older
toaster's avatar
toaster committed
1
<?xml version="1.0" encoding="UTF-8"?>
2
<Context path="/ace-am-1.7-SNAPSHOT">
toaster's avatar
   
toaster committed
3
4
  <Logger className="org.apache.catalina.logger.FileLogger" prefix="aceam." suffix=".log" timestamp="true"/>
  <!-- Configuration for authentication. This information should not need to be
toaster's avatar
toaster committed
5
  changed at all unless you have your own authentication provider-->
toaster's avatar
   
toaster committed
6
7
  <Realm className="org.apache.catalina.realm.DataSourceRealm" dataSourceName="jdbc/aceamdb" debug="99" localDataSource="true" roleNameCol="rolename" userCredCol="password" userNameCol="username" userRoleTable="userroles" userTable="users"/>
  <!-- If you are using a locally installed Mysql server, you only need to change
toaster's avatar
toaster committed
8
       the password entry at the end, otherwise you may need to look at the url
toaster's avatar
   
toaster committed
9
10
       or the username.

toaster's avatar
toaster committed
11
       url - machine name and database name
toaster's avatar
toaster committed
12
         - in the form jdbc:mysql://<YOUR_DB_SERVER>/<ACE_DB>
toaster's avatar
toaster committed
13
14
       username - username used to connect to database
       password - password used for database
toaster's avatar
   
toaster committed
15

toaster's avatar
toaster committed
16
17
18
       'name' is the resource name used by the web app to refer to this
       database and NOT the database name, do not change unless you want bad
       things to happen.-->
19
  <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/aceamdb" password="ace" testOnBorrow="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost/aceam2?characterEncoding=UTF-8" username="ace" validationQuery="SELECT 1"/>
toaster's avatar
   
toaster committed
20
  <!--Mail server to use when mailing reports. You will need to set this if
toaster's avatar
toaster committed
21
    you want reports to be mailed properly.-->
22
  <!--
toaster's avatar
   
toaster committed
23
  <Parameter name="mail.server" value="localhost.localdomain"/>
24
  Set this e-mail address to an address e-mail should originate from 
toaster's avatar
   
toaster committed
25
  <Parameter name="mail.from" value="acemail@localhost"/>
26
  max number of running audits, default 3 
toaster's avatar
   
toaster committed
27
  <Parameter name="throttle.maxaudit" value="3"/>
28
29
30
31
32
  minimum time between srb file reads in milliseconds, default 0 
  <Parameter name="throttle.wait" value="2000"/>
  maximum bytes per second per running audit, default = 0 = unlimited 
  <Parameter name="throttle.bps" value="1048576"/> 
  start automated auditing 
toaster's avatar
   
toaster committed
33
  <Parameter name="auto.audit.disable" value="true"/>
34
35
  IMS hostname to use. Unless you deployed your own IMS, this should
       probably not be changed 
toaster's avatar
   
toaster committed
36
  <Parameter name="ims" value="ims.umiacs.umd.edu"/>
37
  Set this to true to disable internal user management. This should only be used
toaster's avatar
toaster committed
38
39
    in conjunction with changes to the Authentication realm listed above.
    Default: true;
40
    
toaster's avatar
   
toaster committed
41
  <Parameter name="auth.management" value="true"/>
42
43
  <log4j logging properties 
  change the A1.File value to a location of your logfile
toaster's avatar
   
toaster committed
44
  <Parameter name="log4j.appender.A1.File" value="/tmp/aceam.log"/>
45
46
47
  Uncomment the following line to log everything to one file, will grow to infinity 
  <Parameter name="log4j.appender.A1" value="org.apache.log4j.FileAppender"/> 
  The following 3 lines configure a rolling log file 
toaster's avatar
   
toaster committed
48
49
50
  <Parameter name="log4j.appender.A1" value="org.apache.log4j.RollingFileAppender"/>
  <Parameter name="log4j.appender.A1.maxFileSize" value="100000KB"/>
  <Parameter name="log4j.appender.A1.maxBackupIndex" value="5"/>
51
  generic logging properties, change only if you know what you are doing 
toaster's avatar
   
toaster committed
52
53
54
  <Parameter name="log4j.rootLogger" value="FATAL, A1"/>
  <Parameter name="log4j.appender.A1.layout" value="org.apache.log4j.PatternLayout"/>
  <Parameter name="log4j.appender.A1.layout.ConversionPattern" value="%d{[dd/MMM/yyyy:HH:mm:ss]} %x%m%n"/>
toaster's avatar
toaster committed
55
  <Parameter name="log4j.logger.edu.umiacs.irods" value="ERROR"/>
toaster's avatar
   
toaster committed
56
  <Parameter name="log4j.logger.edu.umiacs" value="TRACE"/>
57
58
  Parameter name="log4j.logger.edu.umiacs.irods.api.IRodsConnection" value="TRACE"/>
  -->
toaster's avatar
toaster committed
59
</Context>