Intralibrary Upgrade Guide: Version 2.8


Author: Intrallect Ltd

Company: Intrallect Ltd


intraLibrary IntraLibrary Upgrade Guide: Version 2.8

Table of Contents
1. Shutdown intraLibrary
2. Backup intraLibrary Database
3. Replace Web Application
4. Remove Indexes
5. Configuring intraLibrary Properties
6. Ensure Complete Set of Email Templates
7. Configuring Server Properties
8. Start intraLibrary

1. Shutdown intraLibrary

Shutdown the current instance of intraLibrary. You can do this by either shutting down the application server that intraLibrary is running on, or by undeploying the web application itself. You will have to restart the application server later, so shutting down now is preferred. If you are using Tomcat and are unsure about stopping and starting, see here for more help.


2. Copy intraLibrary Database

We strongly advise that you make a copy of your intraLibrary database. If you are using MySQL and are not sure how to back up the database see here for details.


3. Replace Web Application

The basis of the intraLibrary web application is the intralibrary.war file file. You can put this archive anywhere on the server, but we'd recommended it to be on the same physical volume as the application server (Tomcat).

To avoid confusion between the new and old versions of the web application, rename the previous war file to intralibrary_old.war. Once you are satisfied that the new version of intraLibrary runs correctly the old war file can be removed completely.


4. Remove Indexes

While not essential, we strongly advise that you remove the index folder from within your intraLibrary config dir. There have been instances whereby the index has become out of sync with the contents of the intralibrary database. Removing this directory will prevent any inconsistencies.


5. Configuring IntraLibrary Properties

This release includes some new properties, if required these can be added to the intralibrary.properties file within your config directory. If you don't require any of the functionality specified below there is no need to add the new properties


6. Ensure Complete Set of Email Templates

Within the intraLibrary config directory there is an emailTemplates folder, ensure that this folder contains the following files. Note that each of these files should also appear in the language specific folders (e.g. en, es) within the emailTemplates directory.

If the contents of the emailTemplates directory (or any sub-folders) are incomplete, then you can copy the appropriate files from the emailTemplates folder provided as part of this distribution


7. Configuring Server Properties

There is some new functionality in in this release that includes graphic thumbnail functionality. If you want to make use of this functionality within intraLibrary, the server must be started with the java.awt.headless=true property. If using Tomcat, the easiest way to achieve this is to add the property to the catalina startup script (.sh or .bat) in the Tomcat bin directory:

JAVA_OPTS="-Djava.awt.headless=true"


8. Start intraLibrary

It's now time to start the application. The first time that intraLibrary is started, any database changes will be applied on the server to ensure compatibility with the new version. The database changes are fairly minor so the amount of time taken to upgrade should be small.

If you wish to monitor the upgrade process, you can monitor the upgradeReport.log file which can be found in the directory specified as 'configDir' in your properties file. This file will tell you when the process is finished by outputting the line 'finished upgrading'.

If you check the output of the server startup, you should see some text resembling the text below.

****************************************

populating learning object cache with 0 objects...
finished populating learning object cache

****************************************
application version: n.n (nnnnn)
database server version:4.0.18-standard
database url:jdbc:mysql://localhost:3306/intralibrary?autoReconnect=true
database driver:MySQL-AB JDBC Driver
max database connections(0=unlimited):0
max upload file size:49Mb
servlet container:Apache Tomcat/4.1.18-LE-jdk14
java version:1.4.2_03
----------------------------------------
configDir location:/Volumes/projects/intralibrary/config
http proxy:no proxy used
mail host:mail.company.com
admin email:admin@company.com
error email:errors@company.com
return email:intralibrary1@company.com
id prefix:com.comapany.intralibrary1
repository name:intralibrary1
object cache size:250
entry page:browse
debug:false
reindexOnStartup:true
----------------------------------------
total memory assigned:26Mb
maximum memory assigned:112Mb
----------------------------------------
licence assigned to:company
max contributors:10
current contributors:1
expires:
----------------------------------------
IntraLibrary started dd-MMM-yyyy hh:nn:ss
****************************************

Assuming that you have no errors in this output then congratulations, you have successfully upgraded your installation of intraLibrary.