+ All Categories
Home > Documents > TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and...

TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and...

Date post: 26-Jul-2018
Category:
Upload: vankhue
View: 227 times
Download: 0 times
Share this document with a friend
44
TIBCO Spotfire ® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ® /Linux ® August 2009 TIBCO Software Inc.
Transcript
Page 1: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TIBCO Spotfire®

Clinical Graphics ServerInstallation and

Configuration GuideWindows® and

UNIX®/Linux®

August 2009

TIBCO Software Inc.

Page 2: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

IMPORTANT INFORMATION

SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR ANY OTHER PURPOSE.

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH IS DUPLICATED IN THE PDF TIBCO SPOTFIRE® CLINICAL GRAPHICS LICENSES). USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BE BOUND BY THE SAME.

This document contains confidential information that is subject to U.S. and international copyright laws and treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO Software Inc.

TIBCO Software Inc., TIBCO, Spotfire, TIBCO Spotfire S+, Insightful, the Insightful logo, the tagline "the Knowledge to Act," Insightful Miner, S+, S-PLUS, TIBCO Spotfire Axum, S+ArrayAnalyzer, S+EnvironmentalStats, S+FinMetrics, S+NuOpt, S+SeqTrial, S+SpatialStats, S+Wavelets, S-PLUS Graphlets, Graphlet, Spotfire S+ FlexBayes, Spotfire S+ Resample, TIBCO Spotfire Miner, TIBCO Spotfire S+ Server, and TIBCO Spotfire Clinical Graphics are either registered trademarks or trademarks of TIBCO Software Inc. and/or subsidiaries of TIBCO Software Inc. in the United States and/or other countries. All other product and company names and marks mentioned in this document are the property of their respective owners and are mentioned for

ii

Page 3: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Important Information

identification purposes only. This software may be available on multiple operating systems. However, not all operating system platforms for a specific software version are released at the same time. Please see the readme.txt file for the availability of this software version on a specific operating system platform.

THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANY TIME.

Copyright © 1996-2009 TIBCO Software Inc. ALL RIGHTS RESERVED. THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR INDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.

TIBCO Software Inc. Confidential Information

Reference The correct bibliographic reference for this document is as follows:

TIBCO Spotfire® Clinical Graphics Server Installation and Configuration Guide, TIBCO Software Inc.

Technical Support

For technical support, please visit http://spotfire.tibco.com/support and register for a support account.

iii

Page 4: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

iv

Page 5: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 1 TSCG Server Overview 1

Introduction 2

Architectural Overview 3

Prerequisites 5

Chapter 2 Installing TSCG Server 7

Introduction 8

Getting Started with TSCG 10

TSCG Files 11

TSCG-Related Services 15

Setting Up a TSCG Cluster 16

Chapter 3 Configuring The TSCG Server 17

TSCG Initialization Script 18

Configuration file 23

spserver.properties Options 28

Setting Fonts in UNIX/Linux Environment 29

Chapter 4 Deploying the TIBCO Spotfire Clinical Graphics Client 31

Introduction 32

Deploying TSCG Clients 33

Managing Temporary Files 35

CONTENTS

v

Page 6: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Customizing Client Startup 36

Chapter 5 Troubleshooting 37

Troubleshooting Configuration Errors 38

vi

Page 7: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG SERVER OVERVIEW 1Introduction 2

Architectural Overview 3

Prerequisites 5Supported Platforms 5System Requirements 5

1

Page 8: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 1 TSCG Server Overview

INTRODUCTION

The TIBCO Spotfire® Clinical Graphics (TSCG) application includes a graphical user interface and Spotfire S+ packages. It is powered by, and built to run on, Spotfire S+ Server. This guide provides information to the administrator of an TSCG server. It is not meant to replace or duplicate the Spotfire S+ Server Administration guide; rather, it provides material supplemental and specific to installing and managing TSCG server.

For more information about configuring and administering the Spotfire S+ Server, see its Administration Guide, (Spotfire_S+_Server_Install_Admin.pdf) included in the SPSERVER_HOME/docs directory of your server installation.

2

Page 9: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Architectural Overview

ARCHITECTURAL OVERVIEW

You can install Spotfire S+ Server as either a stand-alone single server, or as a cluster. The following drawing shows a simple server deployment (that is, not a cluster). For more information about clusters, see the section Setting Up a TSCG Cluster on page 16.

Figure 1.1: TSCG components in the Spotfire S+ system.

The TSCG client and server work together as follows:

1. The Spotfire S+ Server accepts a request from the TSCG client.

3

Page 10: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 1 TSCG Server Overview

2. The server passes the job to an available Spotfire S+ engine.

3. The engine initializes, loading the TSCG packages containing the functions that process the request (gom, graphlet, and tscg) and customized client packages.

4. The functions in these packages process and return the results to the server.

5. The server renders the graph in the client.

6. The TSCG client user can save the resulting graph in a user directory in WebDAV.

4

Page 11: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Prerequisites

PREREQUISITES

Before you install TSCG Server, you must have installed the Spotfire S+ Server, version 8.1. Your systems must meet the requirements described in this section to run both the Spotfire S+ Server and the TSCG Server.

Supported Platforms

You can run TSCG Server on either Microsoft Windows or UNIX/Linux servers.

Windows • Windows Server 2003® (Standard and Enterprise, 32-bit).

• Windows Server 2008® (Standard and Enterprise, 32-bit).

Unix/Linux • Red Hat Enterprise Linux 4 and 5 (32/64-bit, i586/x86-64).

• SUSE Linux Enterprise Server 10 (32/64-bit, i586/x86-64).

• Sun Solaris® 8, 9, 10 (32-bit SPARC).

System Requirements

TIBCO Spotfire S+ Server with TSCG can operate on most modern systems, but the minimum system requirements are dictated by the actual use case.

All platforms

Minimum recommended system requirements for all platforms:

• 630 MB disk space to install the Spotfire S+ Server.

• 171 MB disk space to install the TSCG Server .

• 1 GB RAM (more recommended for improved performance).

• One or more 3 GHz processors.

• One available port. (The default is 8080.)

These figures include space required for Apache Tomcat and the JRE (both are installed as part of the Spotfire S+ Server).

5

Page 12: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 1 TSCG Server Overview

6

Page 13: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

INSTALLING TSCG SERVER 2Introduction 8

Installing TSCG on Windows 8Installing TSCG on UNIX/Linux 8Validating the Server 9

Getting Started with TSCG 10

TSCG Files 11Spotfire S+ Server 11

TSCG-Related Services 15Starting, Stopping, and Restarting Services 15

Setting Up a TSCG Cluster 16

7

Page 14: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 2 Installing TSCG Server

INTRODUCTION

The following instructions assume that you have already installed and configured the Spotfire S+ Server. If you encounter problems or need additional information about customizing your TIBCO Spotfire Clinical Graphics Server installation, browse to http://spotfire.tibco.com/support and register for a support account.

Installing TSCG on Windows

This section provides instructions for installing TSCG on a Windows server.

1. Stop the Spotfire S+ Server service. Go to Start > Control Panel > Administrative Tools > Services, right click TIBCO Spotfire S+ Server service, and then click Stop.

2. From the installation media, double-click TIB_sf_clinical_graphics_2.0.0_win_x86.exe to start the installer, and then follow the steps to install the TSCG components.

3. Return to the Administrative Tools > Services and restart the TIBCO Spotfire S+ Server service.

Installing TSCG on UNIX/Linux

This section provides instructions for installing TSCG on a supported UNIX/Linux computer. Most users should accept the default settings.

Note

You must install TIBCO Spotfire Clinical Graphics with the same user account used to install TIBCO Spotfire S+ Server.

1. Log on as the user TSCG will run under. This should be the same account used for running Spotfire S+ Server. This can be root or any other valid user account.

2. Stop the Spotfire S+ Server service. For example, /opt/TIBCO/splusserver81/init.d/spserver stop.

3. Ensure that the user can access any network resources that might be used by the TSCG server.

8

Page 15: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Introduction

4. From the installation media, ensure the .bin file has execute permissions, and then run it.

If your platform is Linux 64-bit, for example, this can be done with the following commands:

# chmod a+x TIB_sf_clinical_graphics_2.0.0_linux24gl23_x86_64.bin# ./TIB_sf_clinical_graphics_2.0.0_linux24gl23_x86_64.bin

Read and follow the instructions displayed in the console.

Note

For more information about customizing the TSCG configuration, see Chapter 3, Configuring The TSCG Server.

Validating the Server

To validate that the server is running, you can call the Spotfire S+ search function through the Spotfire S+ Server URL API:

To validate the TSCG Server:

1. Open a browser session.

2. In the address box, type the following URL. (Substitute your server name in the appropriate place; if you have used a port other than the default 8080, provide the correct port number, as well.)

http://servername:8080/SplusServer/api/v8/function/search

If the server is operating correctly, it should return the SplusDataResult object as XML, which includes the packages loaded in the Spotfire S+ session. If TSCG is installed correctly, the following packages appear in the search path:

• tscg

• gom

• graphlet

9

Page 16: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 2 Installing TSCG Server

GETTING STARTED WITH TSCG

To get started using TSCG, you can browse to following locations, each of which is relevant to using TSCG. These locations provide links to extensive documentation and download instructions and files for the client or the extensions.

Review and direct your TSCG users to the following resources:Table 2.1: TSCG Resource URLs.

URL Description

http://servername:port/tscg

(for example: http://myserver:8080/tscg)

Main landing page with links to documentation and client pages.

http://servername:port/tscg/client

(for example: http://myserver:8080/tscg/client)

Landing page for downloading the TSCG client application.

http://servername:port/tscg/spotfire

(for example: http://myserver:8080/tscg/spotfire)

Landing page, with documentation, for configuring and installing the Spotfire Extensions for Clinical Graphics.

• The URL for tscg/client is described further in Chapter 4, Deploying the TIBCO Spotfire Clinical Graphics Client.

• The URL for tscg/spotfire is described further in the book Spotfire Extensions for Clincal Graphics Installation and Configuration Guide. You can find this book by browsing to the landing page for the extension, mentioned in the table above.

10

Page 17: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG Files

TSCG FILES

The TSCG installation contains important files. The following table describes files that you should know about.Table 2.2: TSCG Files to know about.

File Name Description

conf.xml The configuration file for customizing your TSCG installation.

init-tscg.ssc The Spotfire S+ script that loads the libraries that TSCG uses. Also contains other configuration options. See (section below) for more information about customizing the configuration.

If you supply a custom library in TSCG_HOME/local/library, init-tscg.ssc automatically loads it.

Install_TSCG.log Contains a log detailing the installation of TSCG on the server.

license.txt Contains the license agreement for using TSCG on the server and the TSCG client. Defines the licensing options and terms.

trademarks.txt Lists the trademarked terms that are used by TSCG, and referred to in the documentation.

version_info.txt Provides version information for the TSCG server components. This information is useful if you need to call Technical Support Services.

Spotfire S+ Server

The following section describes the structure of the Spotfire S+ Server as it pertains to TSCG. For more information about Spotfire S+ Server, see its documentation, TIBCO Spotfire S+ Server Installation and Administration Guide.

11

Page 18: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 2 Installing TSCG Server

SPSERVER_ HOME

The WebDAV directory in your installation of Spotfire S+ Server contains directories specific to TSCG.

Note

webdav.root is defined in SPSERVER_HOME/conf/spserver.properties. You can change this if necessary. See the section spserver.properties Options on page 28 for more information.

The table below describes these directories. (For more information about the corresponding user interface features, such as themes, data sources, or data sets, that can add content to these directories, see the TSCG Help.)

• On a Windows server, by default, SPSERVER_HOME is located in c:\Program Files\TIBCO\splusserver81 and TSCG-specific server files are located in SPSERVER_HOME\data\tscg.

• On a UNIX server, by default, SPSERVER_HOME is in /opt/TIBCO/splusserver81 and TSCG-specific server files are located in SPSERVER_HOME/data/tscg.

Table 2.3: webdav.root/tscg/files directories specific to TSCG.

Directory Description

DataSets Contains any custom data sets uploaded by the users.

DataSources /Examples /Shared /Users

The Examples directory contains example data sources provided by TIBCO Spotfire.

The Users directory contains private custom data sources uploaded by the users.

The Shared directory contains data sources available to all users. The System Administrator is responsible for copying shared data sources to this directory.

Extensions /GraphElements /GraphTypes

Contains any user-created graph types and graph elements.

12

Page 19: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG Files

TOMCAT

Apache Tomcat is typically installed under SPSERVER_HOME; however, you can point to an external installation of Tomcat.

Graphs /Shared /Users

The Shared directory contains graphs (.igd files) available to all users. The System Administrator is responsible for copying shared graphs to this directory.

The Users directory contains graphs saved in the client.

Resources Contains user-created default graph defintions.

Results /Users

Contains users’ temporary files of graph results. See the section Managing Temporary Files for more information about managing these files from the server.

Scripts /Users

Contains Spotfire S+ scripts that users generate from graphs.

StudyInformation /Users

Contains XML files describing any study information that applies to one or more graphs.

Themes /Shared /Users

The Shared directory contains themes (.igt files) available to all users. The System Administrator is responsible for copying shared themes to this directory

The Users directory contains themes uploaded by the users.

Users can apply their own or shared themes to different graphs for similar styles.

Table 2.3: webdav.root/tscg/files directories specific to TSCG. (Continued)

Directory Description

13

Page 20: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 2 Installing TSCG Server

tomcat /webapps /tscg

This is the default location for the webapps directory containing the support directory for the TSCG client. It contains the TSCG webapp used by the client to offload some tasks to the server (for example, searching for graphs).

The WEB-INF directory contains the installation of Eclipse Infocenter, the webapp used for TSCG Help. It can contain

14

Page 21: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG-Related Services

TSCG-RELATED SERVICES

This section discusses the services that TSCG uses, which you manage as system administrator.

At this point, you should have a successful installation of TSCG on the server, and you should know how to start the service, as described in the section Starting, Stopping, and Restarting Services.

The TIBCO Spotfire S+ Server service uses port 8080 by default. If you have a problem running this service, check the port number to make sure you have no conflicts.

Starting, Stopping, and Restarting Services

Windows: Starting, Stopping, or Restarting Services

1. From the Start menu, click Programs > Administrative Tools > Services.

2. In the Services console, select the TIBCO Spotfire S+ Server service to start, stop, or restart. This service is set to start automatically by default.

UNIX/Linux: Starting, Stopping, or Restarting Services

TIBCO Spotfire provides the following scripts for starting, stopping, or restarting services:

• SPSERVER_HOME/init.d/spserver

You can start, stop, or restart the daemon with SPSERVER_HOME/init.d/spserver start stop restart

15

Page 22: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 2 Installing TSCG Server

SETTING UP A TSCG CLUSTER

You can install the TIBCO Spotfire® Clinical Graphics (TSCG) server on multiple machines to operate together in a clustered environment. If you are preparing to deploy you server and find you need scalability, availability, and reliability that go beyond the benefits of a stand-aloneTSCG installation, consider deploying TSCG in a clustered environment.

Use the following steps to deploy TSCG server in a clustered environment:

1. Deploy the Spotfire S+ Server according to the Setting up a TIBCO Spotfire S+ Server Cluster topic at http://spotfire.tibco.com/community/blogs/stn/archive/2009/03/02/setting-up-a-tibco-spotfire-s-server-cluster.aspx.

2. Install TSCG on every server node in the cluster.

3. We recommend that you prepare and deploy a single configuration file (conf.xml) to a central location. For more information about conf.xml, see the section Configuration fileon page 23. For example, if you have an Apache Web server in your environment, you could place that the conf.xml file on the server.

4. Modify that init-tscg.ssc script file to make sure that the server locations and variables are correct. For more information about init-tscg.ssc, see the section TSCG Initialization Script on page 18.

5. Test the configuration to verify that the installation is valid. For information about testing the configuration, see Chapter 2, Installing and Validating the Spotfire S+ Server, in the TIBCO Spotfire S+ Server Installation and Administration Guide.

16

Page 23: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

CONFIGURING THE TSCG SERVER 3

TSCG Initialization Script 18Default TSCG Initialization Script 18

Configuration file 23Location of the Configuration File 23conf.xml element reference 24

spserver.properties Options 28

Setting Fonts in UNIX/Linux Environment 29

17

Page 24: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

TSCG INITIALIZATION SCRIPT

The TIBCO Sportfire® Clinical Graphics (TSCG) initialization script (init-tscg.ssc) contains paths, system-wide environment variables, and customizable gom settings for the TSCG server. This file is loaded by the Spotfire S+ engines in the Spotfire S+ Server engine pool.

As part of the Spotfire S+ engine initialization for TSCG, the gom package is loaded. The gom package is a Spotfire S+ library that contains functions to create graphs, determine available graph types, define plot elements, and control page layout and size, among other things. The script init-tscg.ssc can include modifications to the gom options. For example you can provide a customized page layout specification and specify the quantile computation method. You must include S-PLUS code customizing the gom in the initialization script. Usually a Spotfire S+ programmer in your organization will provide a Spotfire S+ script to you.

Default gom options are provided when a user loads the gom package; however, the settings in gomOptions overwrite the defaults. For more information, see the gom package help.

Default TSCG Initialization Script

This section shows the default TSCG initialization script. By default, this file is created at TSCG_HOME/init-tscg.ssc (where TSCG_HOME is the TSCG server installation directory).

The tables following this script describe the environment variables, the package settings, the custom package functions, and the customized gom options.

#### Environment Variables ####setenv("SPSERVER_HOME")setenv("TSCG_FILE_HTTP_ROOT")setenv("TSCG_FILE_PATH_ROOT")setenv("TSCG_FILE_DO_HTTP_PUT", F)

#### TSCG Packages ####.libPaths("$FUJI_LIBRARY$")library(tscg)

18

Page 25: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG Initialization Script

#### Custom Packages ####user.packages.dir <- "$FUJI_LOCAL_LIBRARY$"user.packages <- files.in.dir(user.packages.dir)sorted.user.packages <- sort(user.packages)sorted.user.packages <- sorted.user.packages[order(toupper(sorted.user.packages))].libPaths(user.packages.dir)for (user.package in sorted.user.packages)

if (system.file("DESCRIPTION", package=user.package) != "")

library(user.package, character.only=TRUE)

#### GOM Options ###### SET QUANTILE METHOD ###gomOptions( quantileComputationMethod = "sas5" )

## SET DEFAULT FOOTER ###gomOptions("page.footer.text" = # c("Template: [title], [version], [validationStatus]",# "Date: [lastModified]" , "Data: [dataSource]"))

## SET DEFAULT FONT SIZE ###gomOptions( fontSize = Size( 10, "pt" ) )

Environment Variables

The following table describes the environment variables available in the TSCG initialization script, The descriptions in this table assumes some knowledge of Spotfire S+.Table 3.1: TSCG Initialization Script environment variables

Environment Variable Description

SPSERVER_HOME Indicates the installation path of Spotfire S+ Server.

19

Page 26: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

TSCG_FILE_HTTP_ROOT Indicates the base URL to the Spotifre Clinical Graphics files. This value is defined by apending tscg/files to the value of webdav.url in SPSERVER_HOME/conf/spserver.properties. For example, http://server:port/SplusServer/webdav/tscg/files.

TSCG_FILE_PATH_ROOT Indicates the base path of the Spotfire Clinical Graphics files. This is the path on the local file system that is accessible remotely via TSCG_FILE_HTTP_ROOT. By default, the path is defined by appending tscg/files to the value of webdav.root in SPSERVER_HOME/conf/spserver.properties. For example, C:\Program Files\TIBCO\splusserver81\data\tscg\files.

TSCG_FILE_DO_HTTP_PUT Indicates if files should be accessed via WebDAV (TSCG_FILE_HTTP_ROOT) or if the server should first try accessing them locally (TSCG_FILE_PATH_ROOT). Specifically, if a remote request accesses files in TSCG_FILE_HTTP_ROOT, setting this variable to F indicates that the information in the URL beyond tscg/files should be appended to TSCG_FILE_PATH_ROOT so the files can be accessed locally rather than by WebDAV. If this local access fails, the server falls back to WebDAV access. If the value of this variable is T, then the files are accessed via WebDAV and local access is not attempted.

Table 3.1: TSCG Initialization Script environment variables

Environment Variable Description

20

Page 27: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TSCG Initialization Script

Standard Packages

The following S-PLUS functions load the required TSCG package (tscg) and specify the path to the library for the package.Table 3.2: TSCG packages.

TSCG Package Description

.libPaths Indicates the location of the Spotfire Clinical Graphics S+ packages. By default, these packages are included in TSCG_HOME/library.

library Loads the specified library (tscg). This library is required for TSCG to work correctly. Loading this package ensures that the gom and graphlet packages are loaded. Do not modify this entry.

Custom Packages The following S-PLUS functions load any custom Spotfire S+ packages provided for specific analysis. Table 3.3: TSCG custom package functions.

Custom package function Description

user.packages.dir Indicates the location of any custom Spotfire S+ packages that your users would like to be loaded by the Spotfire S+ engine pool. This directory should only contain valid Spotfire S+ packages. By default, this location is set to TSCG_HOME/local/library.

user.packages Indicates the names of the packages to be loaded. Do not modify this entry.

sorted.user.packages Specifies the order of the custom packages in the Spotfire S+ engine’s search path. Do not modify this entry.

gom Options The following example options are set by function calls to TSCG by Spotfire S+ programmers who want to use these or other global gom options. Your statistician or Spotfire S+ programmer can provide you with guidelines and additional function calls, if necessary. By default,

21

Page 28: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

they are commented out in the script. To have the engine use these functions on initialization, remove the comment markers (#) at the beginning of each line. Table 3.4: gom options.

gom Option Description

quantileComputationMethod Sets the quantile computation method to pass to the gom package. Available options are: splus, sas1, sas2, sas3, sas4, or sas5 (the default).

page.footer.text Sets the variables or character strings that are passed to the footer parameter in the gom page object. This setting creates a footer that is added to each graphic.

fontSize Sets the default base font size for text elements in gom graphics. Text is scaled up or down from this base font size depending on settings in other gom attributes. The default font size is 10 point.

22

Page 29: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Configuration file

CONFIGURATION FILE

TSCG server contains a single, central, server-side configuration file, conf.xml, that each client reads when a user launches the TSCG client. Conf.xml contains the settings and file locations that TSCG clients use to connect to a TSCG server.

When a user launches a TSCG client, they specify the server URL (which you have provided), and the settings are loaded to the client computer. The only requirements are that the client computer can connect to the location and that conf.xml contains valid configuration settings. In the case of test and development environments, a user can specify a path to a private copy of a conf.xml file on your local computer.

By default, conf.xml is stored at TSCG_HOME/client/conf, where TSCG_HOME is the TSCG server installation directory. This translates to the following default path on the server hard drive:

Windows: C:\Program Files\TIBCO\tscg20\client\conf\UNIX/LINUX: /opt/TIBCO/tscg20/client/conf

You can modify the notification settings and paths to server components by editing the conf.xml file. If you modify conf.xml while TSCG clients are connected to the TSCG server, the users must restart the TSCG client so that they can read the new settings. (Restarting the client uses the new settings.)

Location of the Configuration File

The conf.xml configuration file can be placed in any HTTP-accessible location on your network that is available to all client machines. Each time the TSCG client is started, it retrieves the current version of conf.xml to obtains its runtime configuration. The clients can be configured to look for a specific conf.xml file, or users might be presented with a preconfigured list of available conf.xmlfiles from which to choose if, for example, you have multiple TSCG servers with different configurations.

Alternatively, a conf.xml file can reside locally; that is, on the client machine. This strategy is useful for testing new changes to a configuration.

23

Page 30: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

Centralized Client Configuration

A common use of the configuration file is to centralize the TSCG client configuration. For example, if you have multiple servers or intend to move servers or change server names, you might want to place the conf.xml file on a more permanent location such as your corporate intranet. If you need to change users to use a different TSCG server, you can just update the centrally-located conf.xml file without updating each individual client machine on the network.

The conf.xml location can be configured using the Manage Servers link in the TSCG client login dialog, or from the shortcut used to start the client. See the section Customizing Client Startup on page 36 for more information.

Note

If you keep the configuration file at a separate location, you must provide the complete path to the file. For Clinical Graphics Visualization for Spotfire, provide this path in the Preferences tab of the Administration Manager dialog.

conf.xml element reference

The following table contains a list of the elements in the Spotfire.ClinicalGraphicsClient.Properties.Settings application settings section of the configuration file (conf.xml).Table 3.5: conf.xml elements and descriptions

Element Description

WebService Sets the Spotfire S+ Server Web service location. For more information about this setting, see the section WebService element on page 26.

WebServiceType Sets the Web service type to SPNET. Internal only. Do not change.

NotificationType Sets the notification type as either UdpCallback or Polling. For more detailed information about this setting, see the section NotificationType element on page 26.

24

Page 31: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Configuration file

NotificationReceiverPort Sets a notification receiver port number for clients to receive notification messages from TSCG server. Only used when NotificationType is set to UdpCallback. For more information about this setting, see the section NotificationReceiverPort element on page 26.

DataSources Sets the server location for the data stores. Appears as http://Servername:8080/SplusServer/webdav/tscg/files/DataSources.

GraphThemes Sets the server location for supplied or customized themes. For more information about graph themes, view the themes topic in the TSCG client help. Appears as http://Servername:8080/SplusServer/webdav/tscg/files/Themes.

Graphs Sets the server location for graphs that are created and stored using TSCG. Default is http://servername:8080/SplusServer/webdav/tscg/files/Graphs.

Resources Sets the server location for TSCG resources. Resources include any string tables, supporting graphics (such as logos). Default is http://servername:8080/SplusServer/webdav/tscg/files/Resources.

Results Sets the server location for server request results. Default is http://servername:8080/SplusServer/webdav/tscg/files/Results.

Table 3.5: conf.xml elements and descriptions

Element Description

25

Page 32: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

TSCG client users can view, but not change, the current settings if they click Tools > Options, and then in the Options dialog box, click the Server tab.

WebService element

Contains the location of the Spotfire S+ Server Web service location. It has the form of a URL consisting of the host name. We recommend the fully qualified domain name (FQDN) of the TIBCO Spotfire Clinical Graphics server, the port number, and the Spotfire S+ Server application directory. By default, the port number is 8080, and the application directory is SplusServer. A typical value in this element has the form: http://servername:8080/SplusServer.

WebServiceType element

Sets the WebService type to SPNET. For internal purposes only. Do not change this element.

NotificationType element

Sets the type of notification to use in order to receive notification messages from the server.

• 0 = UdpCallback (the default)

StudyInformation Sets the server location for the study information stored as part of a graph's metadata. Default is http://ssrvername:8080/SplusServer/webdav/tscg/files/StudyInformation.

For more information about study information, see the TSCG Help topic Metadata - Description.

Scripts Sets the server location for scripts. Default is http://servername:8080/SplusServer/webdav/tscg/files/Scripts.

Help Sets the server location for the TSCG client help files. You can include help topics to support your custom graph templates. Default is http://servername:8080/tscg/help/index.jsp.

Table 3.5: conf.xml elements and descriptions

Element Description

26

Page 33: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Configuration file

• 1 = Polling

The default is set to UdpCallback, which we recommend because it is a more efficient notification type. With UdpCallback, the TSCG Server notifies the client when a job request is completed.

You can set the option to Polling if your network administrator restricts the network to prevent UDP packets from being received by clients. (This restriction is common across systems on different subnets.) Setting the default Polling means that the client will poll the server for notification messages, rather than receive the UDP notification packet from the server.

Notification ReceiverPort element

Sets the port that the client should listen on for UDP callback notification messages from the server. This setting is ignored if the NotificationType setting is set to 1 (Polling) The default value of 0 causes a random port to be selected.

Location elements

The remaining conf.xml elements allow you to specify a path to the different components. These components include:

• DataSources

• GraphThemes

• Graphs

• Resources

• Results

• StudyInformation

• Scripts

To set in conf.xml, provide paths containing no spaces. Currently, the server routines that use files in these paths cannot process paths containing spaces.

27

Page 34: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

SPSERVER.PROPERTIES OPTIONS

The TIBCO Spotfire S+ Server configuration file has properties that must be modified when you configure TSCG. Chapter 3 of the TIBCO Spotfire S+ Server Installation and Administration Guide contains information specific to setting server properties. Review this chapter carefully and set properties according to your needs.

The description in the server installation guide for the property engine.max.requests warns against setting the value to any but the default of 1 without a thorough understanding of the stateful nature of the Spotfire S+ Server. TSCG is designed specifically to reuse Spotfire S+ engines to optimize performance and eliminate the cost of restarting an engine with each request. Because of this design, for TSCG, we recommend setting engine.max.requests to 0, so the engines will run indefinitely until Spotfire S+ Server service is restarted.

If you set engine.max.requests to 0, so the engines will run indefinitely, you must set engine.verbose.log to false. If you need to have a verbose log, you can use an API to force an engine restart and generate a verbose log.

Important

Do not modify the spserver.properties option engine.init.file. It must point to the init-tscg.ssc script.

28

Page 35: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Setting Fonts in UNIX/Linux Environment

SETTING FONTS IN UNIX/LINUX ENVIRONMENT

To preserve fonts when exporting graphs in a TSCG client connected to a UNIX/Linux TSCG server, you must place the fonts under the JRE associated with the Spotfire S+ engines. You can do this by copying the font .ttf files into SPSERVER_HOME/splus/java/jre/lib/fonts.

29

Page 36: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 3 Configuring The TSCG Server

30

Page 37: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

DEPLOYING THE TIBCO SPOTFIRE CLINICAL GRAPHICS CLIENT 4

Introduction 32

Deploying TSCG Clients 33Manual Installation 33Silent Installation 33

Managing Temporary Files 35

Customizing Client Startup 36

31

Page 38: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 4 Deploying the TIBCO Spotfire Clinical Graphics Client

INTRODUCTION

This chapter contains guidance for installing the TSCG client application on users’ computers.

You can configure the client installation to install silently on users’ computers, or you can provide them with a location to download install the application manually.

32

Page 39: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Deploying TSCG Clients

DEPLOYING TSCG CLIENTS

TSCG provides the Microsoft Installer (MSI) package that installs the client to the user’s computer.

You can deploy the TSCG client using either a manual installation or a silent installation process.

Manual Installation

After you have installed and validated the TSCG server, you can browse to the following URL to see the link to the manual download:

http://servername:8080/tscg/client

If your organization uses a manual software installation process, you can just direct your users to browse to this URL, and then click the link on that page to download and run the MSI package. Users then follow the installation steps as they would for any other MSI installation.

Silent Installation

This section provides details about using MSI to deploy TSCG client applications silently. By configuring the MSI properties provided for TSCG and described in the following table, you can control the

33

Page 40: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 4 Deploying the TIBCO Spotfire Clinical Graphics Client

installation location and the client configuration, as well as certain other startup information, such as whether to show or hide the TSCG login dialog.:Table 4.1: TSCG MSI properties.

Property Description

TARGETDIR The path to the install client.

SERVERADDRESSLIST A semicolon separated lists of URLs. These URLs should point to a valid conf.xml. If you provide http://<host>:<port>, then the client assumes the configuration file is in /tscg/conf/conf.xml.

SHOWLOGINDIALOGATSTARTUP If true (the default), specifies that the TSCG login dialog is displayed when the user starts the client application.

If set to false, the dialog is not displayed unless the startup encounters an error, in which case the dialog is displayed.

Example: silent installation of the client

The following command installs the TSCG client application silently in the specified directory, and points the client at the servers tscg01and tscg02.

msiexec /qn /i TSCG_client_setup.msi TARGETDIR="C:\Program Files\TIBCO\Spotfire\Clinical Graphics\2.0.0" SERVERADDRESSLIST=http://tscg01:8080;http://tscg02:8080 SHOWLOGINDIALOGATSTARTUP=false

34

Page 41: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Managing Temporary Files

MANAGING TEMPORARY FILES

By default, the TSCG client removes temporary files when it shuts down. If for any reason the TSCG client loses contact with the server and does not clean up the temporary files, it removes them on its next startup. Because of this design, typically you do not need to worry about removing temporary files on the server.

If your team is using Clinical Graphics in a SAS production environment, the temporary files are not removed, because they are not using the TSCG client application. In this case, the administrator is responsible for removing the temporary files.

Note

For more information on using TSCG in a SAS production environment, see the PDF Working in Production Mode in the Advanced Reading and Reference section of the TSCG Help.

(To launch TSCG Help, in a browser, go to http://<servername>:8080/tscg/help.

By default, Spotfire S+ Server temporary TSCG files are stored as follows:

• On a Windows server, c:\Program Files\TIBCO \splusserver81\data\tscg\files\Results\Users\<username>.

• On a UNIX/Linux server, /opt/TIBCO/splusserver81/data/tscg/ files/Results/Users/<username>.

These files appear in directories named using unique identifiers. For example, they would appear as:

• SPSERVER_HOME/data/tscg/files/Results/Users/jdoe/8397e81383dc3g26b72123b26aee5c67

35

Page 42: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 4 Deploying the TIBCO Spotfire Clinical Graphics Client

CUSTOMIZING CLIENT STARTUP

After the TSCG client is installed (either through a manual process or through a silent installation), you can provide the following command-line switches to customize further the client startup. Table 4.2: TSCG startup command line switches.

Switch Description

-nodialogs Specifies that the startup dialog is not displayed.

-serverurl Specifies the location of the conf.xml configuration file. This can be a URL to conf.xml, a local file path, or a short URL to http://servername:8080, which will automatically have “tscg/conf/conf.xml” appended.

-username Specifies the user name to use to log onto the server.

-password Specifies the password for the user logging onto the server, if authentication is enabled.

Example

Spotfire.ClinicalGraphicsClient.exe -serverurl http://myservername:8080 [-username username -password password]

36

Page 43: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

TROUBLESHOOTING 5Troubleshooting Configuration Errors 38

37

Page 44: TIBCO Spotfire TSCG Server Installation and … Spotfire® Clinical Graphics Server Installation and Configuration Guide Windows ® and UNIX ®/Linux ® August 2009 TIBCO Software

Chapter 5 Troubleshooting

TROUBLESHOOTING CONFIGURATION ERRORS

If a user encounters server configuration errors with TSCG (either in the client or in production mode), the help instructs the user to see the server admin. These errors occur because of problems with environment variable settings in the file TSCG_HOME\init-tscg.ssc. The errors include those in Table 5.1. The error messages provide the information you need to correct the problems. Table 5.1: Server configuration errors

Error ID Error

ID-TSCG-2E The TSCG_XSL_FILENAME environment variable is not set. Cannot locate XSL file.

ID-TSCG-3E The TSCG_FILE_PATH_ROOT environment variable must be set on the server when TSCG_FILE_DO_HTTP_PUT is set to false.

ID-TSCG-4E The TSCG_FILE_HTTP_ROOT environment variable must be set on the server when TSCG_FILE_DO_HTTP_PUT is set to false.

ID-TSCG-6E TSCG_FILE_PATH_ROOT environment variable must be set on the server when TSCG_FILE_DO_HTTP_PUT is set to false.

ID-TSCG-7E TSCG_FILE_HTTP_ROOT environment variable must be set on the server when TSCG_FILE_DO_HTTP_PUT is set to false.

38


Recommended