Navigation
Academic Area Reservations
Academic Areas
Academic Classifications
Academic Sessions
Add Academic Session
Add Application Setting
Add Building
Add Course Credit Type
Add Course Credit Unit
Add Course Offering
Add Course Type
Add Curriculum
Add Date Pattern
Add Default Manager Setting
Add Department
Add Designator
Add Distribution Preference
Add Event
Add Event Date Mapping
Add Event Info
Add Event Meetings
Add Examination
Add Examination Distribution Preference
Add Examination Period
Add Examination Type
Add Instructional Type
Add Instructor
Add Instructor Role
Add Logging Level
Add Non-University Location
Add Position Type
Add Reservation
Add Role
Add Room
Add Room Feature
Add Room Feature Type
Add Room Group
Add Room Type
Add Solver Configuration
Add Solver Group
Add Solver Parameter
Add Solver Parameter Group
Add Special Use Room
Add Sponsoring Organization
Add Standard Event Note
Add Status Type
Add Student Accommodation
Add Student Group
Add Student Scheduling Status Type
Add Subject Area
Add Time Pattern
Add Timetable Manager
Add User
Administration Reports
Alternatives for Class
Application Configuration
Application Of Preferences
Application.properties
Assign Instructors
Assigned Classes
Assigned Examinations
Assignment History
Bugs
Buildings
CPSolver
Chameleon
Change Log for Student
Change Message for Student
Changes
Class Assignment
Class Assignment Properties
Class Assignments
Class Detail
Class Schedule
Classes
Classes for Student
Conflict-Based Statistics
Constraint Solver Howto
Contact Us
Course Credit
Course Credit Formats
Course Credit Types
Course Credit Units
Course Finder
Course Reports
Course Reservations
Course Types
Credits
Current User
Curricula
Curriculum Detail
Curriculum Projection Rules
Curriculum Requested Enrollments
Curriculum Timetable
Custom Room Availability
Customizations
Data Exchange
Date Patterns
Default Academic Session
Default Manager Settings
Departmental Timetable
Departments
Designator List
Distribution Preferences
Distribution Types
Eclipse
Edit Academic Session
Edit Application Setting
Edit Building
Edit Class
Edit Course Credit Format
Edit Course Credit Formats
Edit Course Credit Type
Edit Course Credit Types
Edit Course Credit Unit
Edit Course Credit Units
Edit Course Offering
Edit Course Type
Edit Course Types
Edit Curriculum
Edit Date Pattern
Edit Default Manager Setting
Edit Department
Edit Designator
Edit Distribution Preference
Edit Distribution Type
Edit Event
Edit Event Date Mapping
Edit Event Date Mappings
Edit Event Status
Edit Event Statuses
Edit Examination
Edit Examination Distribution Preference
Edit Examination Period
Edit Examination Type
Edit Examination Types
Edit Instructional Type
Edit Instructor
Edit Instructor Role
Edit Instructor Roles
Edit Logging Level
Edit Logging Levels
Edit Manager Setting
Edit Offering Consent Type
Edit Offering Consent Types
Edit Permission
Edit Permissions
Edit Position Type
Edit Position Types
Edit Reservation
Edit Role
Edit Roles
Edit Room
Edit Room Availability
Edit Room Departments
Edit Room Event Availability
Edit Room Feature
Edit Room Feature Type
Edit Room Feature Types
Edit Room Features
Edit Room Group
Edit Room Groups
Edit Room Preference
Edit Room Type
Edit Scheduling Subpart
Edit Solver Configuration
Edit Solver Group
Edit Solver Parameter
Edit Solver Parameter Group
Edit Sponsoring Organization
Edit Standard Event Note
Edit Status Type
Edit Student Accommodation
Edit Student Accommodations
Edit Student Group
Edit Student Groups
Edit Student Scheduling Status Type
Edit Student Scheduling Status Types
Edit Subject Area
Edit Time Pattern
Edit Timetable Manager
Edit User
Enrollment Audit PDF Reports
Enrollments of Class or Course
Event Date Mappings
Event Detail
Event Reports
Event Room Availability
Event Room Selection
Event Statuses
Event Timetable
Events
Exact Time Pattern
Exam Naming Convention
Examination Assignment
Examination Assignment Changes
Examination Conflict-Based Statistics
Examination Detail
Examination Distribution Preferences
Examination PDF Reports
Examination Periods
Examination Reports
Examination Schedule
Examination Solution Properties
Examination Solver
Examination Solver Log
Examination Solver Status
Examination Timetable
Examination Timetabling
Examination Types
Examinations
Frequently Asked Questions
Hibernate Statistics
Instructional Offering Configuration
Instructional Offering Cross Lists
Instructional Offering Detail
Instructional Offerings
Instructional Types
Instructor Detail
Instructor Preferences
Instructor Roles
Instructors
LDAP Authentication / Lookup
Last Changes
Localization
Logging Levels
Main Page
Majors
Manage Instructor List
Manage Solvers
Manager Settings
Mass cancel...
Meetings
Minors
Multiple Class Setup
Not-Assigned Classes
Not-Assigned Examinations
Offering Consent Types
Online Student Scheduling Dashboard
Page Statistics
People
People Lookup
Permissions
Personal Schedule
Personal Timetable
Position Types
Reservations
Roles
Roll Forward Session
Room Availability
Room Detail
Room Feature Types
Room Features
Room Groups
Room Timetable
Room Types
Rooms
SVN
Scheduling Subpart Detail
Scripts
Select Academic Session
Select User Role
Send email...
Setup Examination Periods
Solution Properties
Solution Reports
Solver
Solver Configurations
Solver Groups
Solver Load Balancing
Solver Log
Solver Parameter Groups
Solver Parameters
Solver Status
Solver Warnings
Special:Userlogin
Sponsoring Organizations
Standard Event Notes
Status Types
Structure of Distribution Preferences
Student Accommodations
Student Conflicts
Student Groups
Student Scheduling Assistant
Student Scheduling Status Types
Student Sectioning Dashboard
Student Sectioning Reports
Student Sectioning Solution Properties
Student Sectioning Solver
Student Sectioning Solver Log
Subject Areas
Subject Timetable
Suggestions
Test HQL
Time Patterns
Timetable
Timetable Managers
Timetables
Timetabling
Timetabling Benchmarks
Timetabling CVS Access
Timetabling Development using MyEclipse
Timetabling Development using NetBeans
Timetabling Installation FAQ
Tips and Tricks
Types of Distribution Preferences
UniTime 3.4 Online Documentation
UniTime Installation
UniTime:Documentation Guidelines
Update Meetings
Users (Database Authentication)
 

UniTime Installation

Prerequisites

Java Development Kit

Apache Tomcat

MySQL

Installation

tar -xvzf unitime-3.4_bld199.tar.gz
  • Install timetable database
    • MySQL installation scripts are located in doc/mysql folder of the distribution
    • File schema.sql contains the database schema, file woebegon-data.sql contains test data (Woebegon College Test Suite, see Online Demo for more details).
      • If you want to change the default user name / password, edit the file schema.sql first. The user is created at the very beginning of the script.
    • Timetable database can be created and populated using the mysql command line tool
      • After running "schema.sql", you need to populate the database either using "woebegon-data.sql" or "blank-data.sql" file
        • When woebegon-data are used, you will be able to login into the application using the same credentials as described on our online demo page
        • When blank-data are used, there is only administrator account created. Both user name and password are admin.
mysql -uroot -p -f <schema.sql
mysql -uroot -p <woebegon-data.sql
  • Deploy UniTime application
    • Copy web/UniTime.war to Tomcat/webapps, where Tomcat is the folder where Tomcat is installed.
    • On unix based systems (including Mac OS X), java virtual machine that is running tomcat needs to be switched to headless mode. You can do that using JAVA_OPTS environment variable prior to starting tomcat:
export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"
    • Also, you might need to give Tomcat more memory to work with by changing the upper limit on the memory that it can allocate (especially if you are planning not to run any remote solver servers -- see below; default is 64MB). You can do that using JAVA_OPTS environment variable as well:
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024m"

  • Tip: If you have installed Tomcat on a linux based machine from a package (e.g., by running apt-get install tomcat7), you will need to make sure that there is a data folder available within the tomcat directory and that the Tomcat has enough permissions to write files in there. This can be accomplished with something like:
    mkdir /var/lib/tomcat7/data
    chown tomcat7 /var/lib/tomcat7/data

    • Tomcat configuration (including the  JAVA_OPTS variable) is located in the /etc/default/tomcat7 file in this case.

    Upgrade

    Customization

    • Custom Properties
      • There are a lot of properties that are defined in file application.properties that is located in timetable.jar that is located in UniTime.war at WEB-INF/lib. These properties can be changed in one of the following ways:
        1. By providing custom property file, this file should be named custom.properties and located in UniTime.war at WEB-INF/classes.
          • Alternatively, custom property file can be located somewhere else, with system property tmtbl.custom.properties pointing to it.
        2. By adding and/or changing the appropriate properties directly in the UniTime application -- see Administration / Defaults / Configuration menu item when logged in as administrator.
        3. By adding these properties in Tomcat/conf/catalina.properties
        4. By providing JVM that is running tomcat with the appropriate system properties, for instance:
    export JAVA_OPTS="${JAVA_OPTS} -Dtmtbl.title=Timetabling Demo"
    export JAVA_OPTS="${JAVA_OPTS} -Dtmtbl.custom.properties=~/my.properties
      • Tip: Name the custom properties file Tomcat/conf/unitime.properties and put all the properties you need in there. For UniTime to use the file, add the following line to Tomcat/conf/catalina.properties
    tmtbl.custom.properties=${catalina.base}/conf/unitime.properties
      • If the same property is defined on multiple places, the first one from the following order will be taken:
        1. UniTime Configuration (Administration / Defaults / Configuration menu item)
        2. System property (-Dproperty=value, or defined in Tomcat/conf/catalina.properties)
        3. File custom.properties (UniTime.war/WEB-INF/classes/custom.properties or as defined by tmtbl.custom.properties system property)
        4. File application.properties (UniTime.war/WEB-INF/lib/timetable.jar/application.properties)
    • Database Connection
      • Database connection can be changed using custom properties. However, please note that these properties cannot be defined using the UniTime application (Administration / Defaults / Configuration menu item), since the database connection needs to be configured before the database can be accessed. For instance, custom.properties file can contain:
    # MySQL Configuration Example
    connection.url=jdbc:mysql://localhost:3306/timetable
    connection.username=timetable
    connection.password=unitime
    connection.driver_class=com.mysql.jdbc.Driver
    dialect=org.hibernate.dialect.MySQLInnoDBDialect
    tmtbl.uniqueid.generator=org.hibernate.id.TableHiLoGenerator
    default_schema=timetable

    Remote Solver Server(s)

    • By default, all timetabling problems are solved within the application (using the same Java Virtual Machine), however, especially for bigger institutions, it might be desired to solve the timetabling problems by one or more separate solver servers. To run a remote solver, do:
    java -Xmx1024m -jar solver/timetable.jar host:9998

    or

    java -Xmx1024m -jar solver-min/solver.jar host:9998

    Parameter host is the name of the machine where the web server is executed. The difference between the two distributions is that solver-min contains only the necessary classes to connect to the web server. The rest are downloaded using a special class loader. Communication between the web server and the solver server is done using SLL. The solver servers also communicate directly with the database for loading input data and saving the solution. Database connection properties are taken from the web server. The load is automatically and seamlessly balanced between the remote solvers. The remote solver server also automatically reconnects itself when the web server is restarted. When the remote solver is shut down, all active timetabling instances are backed up and restored when the solver server is started again. The following properties can be defined (and passed as system properties):

    tmtbl.solver.register.port
    web server listens on this port for all remote solvers to connect (same port needs to be defined on both sides, default is 9998)
    tmtbl.solver.remote.port
    a remote solver accepts commands on this port, during start up it binds itself on this port or on the first available port after this port (default is 1200)
    tmtbl.solver.register.host
    host name of the web server (default is localhost)
    tmtbl.solver.home
    directory where the remote solver will put its files (logs, backuped or passivated problem instances, etc.)
    tmtbl.custom.properties
    location of custom property file (see above)

    Example:

    java -Xmx1024m -Dtmtbl.solver.home=~/solver -jar solver-min/solver.jar host:9998

    The remote solvers can be managed in the UniTime application, see Timetables / Manage Solvers menu item when logged in as an administrator.


    Using Oracle Database

    Here are some notes about using Oracle Database

    • The following custom properties needs to be set (connection url, username, password may vary)
    # Oracle Configuration Example
    connection.url=jdbc:oracle:thin:@localhost:1521:xe
    connection.username=timetable
    connection.password=unitime
    connection.driver_class=oracle.jdbc.driver.OracleDriver
    dialect=org.hibernate.dialect.Oracle10gDialect
    tmtbl.uniqueid.generator=org.hibernate.id.SequenceGenerator
    • If the schema is different to timetable, the default_schema property needs to be changed as well
    default_schema=timetable
    imp timetable/###### file=woebegon.dat full=y
      • User timetable needs to be created first, e.g., using sqlplus
    sqlplus system
    create user timetable identified by ######; grant dba to timetable; exit

    Notes

    Back to Timetabling Project Page.©2010 UniTime LLCContent available under GNU Free Documentation License 1.3.

    Updated on Sep 4, 2014 by Tomáš Müller (Version 32)