Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Step by step instructions for building and deploying the SSP package.

 

  1. Software Prerequisites (JDK, Tomcat, PostgreSQL, Maven)
  2. SSP Open Source Project build and deployment

Software Prerequisites

The following software prerequisites must be installed to build and run SSP:

  • JDK 1.6 update 21 or later (JDK 1.7 is not supported as of 2012/04)
  • Tomcat 6.X (Tomcat 7 is not supported as of 2012/04)
  • PostgreSQL 8 or later (9.1 is recommended and used for development and testing)
    • Download source http://www.postgresql.org
      • On Unix:
      • On Mac:
        • PostgreSQL is available via the homebrew package manager or as a download on the postgresql.org site.
      • On Windows:
        • PostgreSQL is available as a download on the postgresql.org site.
    • Configure PostgreSQL

      • Connect via pgadmin or your preferred db admin tool

      • Create the "ssp" & "sspadmin" users and the "ssp" database.

RDBMS Platform Flexibility

Currently SSP supports use of PosgreSQL and Microsoft SQL Server.  The project team develops and tests against PostgreSQL.

Future support for Oracle and other RDBMS is planned.

 

  • Maven 3.0.3 or later (until a general release is available, expected July 2012)

 


Configure and Deploy SSP

The following configurations are required for the developer environment.

1. Create Directories

 

Prerequisite Installations

All software prerequisites should be installed into the local environment.  Make note of the locations to set the environment variables.

 

  • On Unix/Mac:

    • Create a directory at /usr/local/etc/ssp

    • Make it only readable by the user that is running Tomcat

  • On Windows:
    • Create a directory at C:\ssp

    • Make it only readable by the user that is running tomcat

  • In the next step, be sure to use Windows paths formatted in Java

    • There is a context.xml file that is put into the conf directory of tomcat once the application starts.  Or you can paste it there ahead of time.

    • It is available from this project in src/main/webapp/META-INF/context.xml

    • The destination path is $CATALINA_HOME/conf/context.xml

2. Modify SSP Configuration Files

  • Update the configuration files on Unix/Mac/Windows:

    • Copy the SSP source files in src/main/config/external to /usr/local/etc/ssp or C:\ssp (depending on the environment)

    • Review each file carefully to set the appropriate settings.

      • ssp-config.properties: database connectivity, users and database
      • logback.xml: properties file location (ie <property file="/usr/local/etc/ssp/ssp-config.properties" /> )
  • Add the following environment variables to your system, and point them to the appropriate external configuration path:

    • On Unix/Mac:

      • SSP_CONFIGDIR=/usr/local/etc/ssp

    • On Windows:

      • SSP_CONFIGDIR=C:\ssp

    Additional Information

    Optional environment and configuration parameters are defined in the Developer Environment Setup Instructions

3. Deploy SSP

  • Currently the deployment file is not available anywhere, so it must be generated with maven.
  • Instructions for building the SSP package

SSP Development Environment Setup

SSP-Open-Source-Project

The SSP-Open-Source-Project repository in GitHub contains the tool suite for SSP.  Installation begins with cloning the repository.

1. Clone the SSP Open Source Project repository from GitHub

Use a command like the following to clone the SSP-Open-Source-Project repository from GitHub:

Clone Source Files
C:\projects\ssp>git clone git@github.com:Jasig/SSP.git

 

2.  Build & Install

Use a command like the following to build the SSP-Open-Source-Project and install it in the local Maven repository:

SSP can be built in three different modes:

  • dev-standalone: the deployment will be completely free of uPortal (requires additional configuration)
    • SSP_CONFIGDIR must be set as an environment variable instead of using context.xml
    • ssp–config.properties file should be modified to uncomment spring.profiles.active=dev-standalone and comment out spring.profiles.active=uportal
    • STS with embedded Tomcat is recommended to start/debug/stop the application
    • You may need to add portlet-api-2.0.jar to tomcat's shared/lib (if running out of STS)
  • standalone: SSP will be the only deployment in uPortal
  • uPortal: SSP will be one of many portlets in uPortal
Maven Install Command
C:\projects\ssp\SSP-Open-Source-Project>mvn install
Maven Install Command Skipping Tests
C:\projects\ssp\ssp-Open-Source-Project> mvn -Dmaven.test.skip=true install

 


 

 

  • Once you have the war file, copy the ssp.war file into the webapps directory of tomcat
  • Double check your settings in the config directory.
  • Start Tomcat according to the manner specified for the Operating System.
  • Open and browser and navigate to http://[yourdomain]:8080/ssp


If anything in it is incorrect or unclear, please leave a comment below.Unlicensed user

 

  • No labels