+ All Categories
Home > Documents > Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java...

Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java...

Date post: 30-Jul-2020
Category:
Upload: others
View: 14 times
Download: 0 times
Share this document with a friend
21
Modified by eSource Technology EMR 20100710, www.esource.se Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit Screenshots used as examples and might not match exactly what is written in the instructions. Please follow the instructions as they are written. Note: Many windows systems are not configured to show the file extensions by default. In order to use this guide, you will need to be able to see the file extensions. To configure this behavior, open a Windows Explorer window. Click Tools > Folder Options. Go to the View tab, and in Advanced settings uncheck the ‘Hide extensions for known file types’. This installation was performed successfully on Windows 7, 32 and 64 bit system. This installation was performed successfully on Windows Server 2003 Standard Edition SP2. This installation was performed successfully on Windows Server 2003 Standard Edition SP1. This installation was performed successfully on Windows XP Professional Version 2002 SP2. The system should work on Windows 2000 Professional and compatible systems, but has not been tested on other Windows platforms . NOTE: All characters are case sensitive. Please be aware of any additional white space between or after characters this may cause installation errors. NOTE: This software distribution will also work for Linux based systems; however Akaza provides a separate Linux distribution in tarball format, available at http://www.openclinica.org
Transcript
Page 1: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

Modified by e‐Source Technology EMR  2010‐07‐10,  www.e‐source.se 

Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit

Screenshots used as examples and might not match exactly what is written in the instructions. Please follow the instructions as they are written. Note: Many windows systems are not configured to show the file extensions by default. In order to use this guide, you will need to be able to see the file extensions. To configure this behavior, open a Windows Explorer window. Click Tools > Folder Options. Go to the View tab, and in Advanced settings uncheck the ‘Hide extensions for known file types’. This installation was performed successfully on Windows 7, 32 and 64 bit system. This installation was performed successfully on Windows Server 2003 Standard Edition SP2. This installation was performed successfully on Windows Server 2003 Standard Edition SP1. This installation was performed successfully on Windows XP Professional Version 2002 SP2. The system should work on Windows 2000 Professional and compatible systems, but has not been tested on other Windows platforms . NOTE: All characters are case sensitive. Please be aware of any additional white space between or after characters this may cause installation errors. NOTE: This software distribution will also work for Linux based systems; however Akaza provides a separate Linux distribution in tarball format, available at http://www.openclinica.org

Page 2: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

2

Table of Contents* 1. About OpenClinica..........................................................................................3 2. Software Dependencies .................................................................................4 3. Install Java ......................................................................................................5

License Agreement ..................................................................................................................... 5 Custom Setup.............................................................................................................................. 6 Installation Completed................................................................................................................. 6 Create JAVA_HOME Environment Variable ............................................................................... 6

4. Install PostgreSQL..........................................................................................7 Setup ........................................................................................................................................... 7 Installation Directory.................................................................................................................... 7 Data Directory ............................................................................................................................. 7 Password..................................................................................................................................... 7 Port .............................................................................................................................................. 7 Advanced Options....................................................................................................................... 8 Ready to Install............................................................................................................................ 8 Setup ........................................................................................................................................... 8

5. Install Tomcat................................................................................................10 Tomcat Setup ............................................................................................................................ 10 License Agreement ................................................................................................................... 10 Choose Components................................................................................................................. 10 Choose Install Location............................................................................................................. 10 Set Configuration Options ......................................................................................................... 10 Locate the Java Virtual Machine ............................................................................................... 11 Install Complete......................................................................................................................... 11 Create CATALINA_HOME Environment Variable .................................................................... 12

6. Install OpenClinica Package ........................................................................14 Extract OpenClinica Package ................................................................................................... 14

7. Configure PostgreSQL .................................................................................15 Create a Database .................................................................................................................... 15

8. Configuring the Web Application ................................................................16 Start Tomcat.............................................................................................................................. 16 Create Data Folders.................................................................................................................. 17 Modify Configuration Files for Server Specific Settings ............................................................ 18

9. Verify your Environment ..............................................................................20 10. Troubleshooting..........................................................................................21 11. Using Oracle as the Database....................................................................21

*Please note; all links to a sub-chapter will bring you to a screen shot where appropriate.

Page 3: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

3

1. About OpenClinica Professional Open Source Solutions for the Clinical Research Enterprise

OpenClinica: Open Source Software Platform for Managing Clinical Research Studies Professional Open Source Solutions for the Clinical Research Enterprise OpenClinica is a free, open source clinical trial software platform for Electronic Data Capture (EDC) clinical data management in clinical research. The software is web-based and designed to support all types of clinical studies in diverse research settings. From the ground up, OpenClinica is built on leading independent standards to achieve high levels of interoperability. Its modular architecture and transparent, collaborative development model offer outstanding flexibility while supporting a robust, enterprise-quality solution. More about OpenClinica: http://www.OpenClinica.org Software License OpenClinica is distributed under the GNU Lesser General Public License (GNU LGPL). For details see: http://www.openclinica.org/license or LICENSE.txt distributed with this distribution. Developer and Contact Information Akaza Research, based in Cambridge, MA, provides clinical trials informatics solutions based on OpenClinica, the world's most widely used open source clinical trials software. Akaza Research 460 Totten Pond Rd Suite 200 Waltham, MA 02451 email: [email protected] For more about Akaza’s products and services see: http://www.akazaresearch.com/ and http://www.OpenClinica.org/

Page 4: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

4

2. Software Dependencies OpenClinica runs on top of any Servlet/JSP container that implements the Servlet 2.4 and JavaServer Pages 2.0 specifications from the Java Community Process. It was developed to run on Apache Jakarta Tomcat 5.5.27. Currently, OpenClinica runs on top of either the Postgres relational database or an Oracle relational database. Using a JDBC (Java Database Connectivity) driver, the database connects to the web application and provides the data to the end-user. Required for new installs: Jakarta Tomcat 6.0.20 for 64 bit systems replace the two exe files in the TOMCAT\BIN directory with these two files: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_20/res/procrun/amd64/ Java 2 Standard Edition Development Kit 6.0 Update 16 For 64 bit use Java jdk-6u17-windows-64 Postgres 8.4.1 or Oracle 10g This installation guide will show you how to acquire and setup each of the required components and configure the OpenClinica web application.

Note: The software stack OpenClinica runs on is open source, and most open source projects release minor versions and revisions often. Sometimes only a matter of weeks may separate the release of two adjacent versions of the software. For this release, the latest stable version of each component was used in integrated testing, and its revision number is referenced in this document. In some cases, the revision number mentioned may no longer be available. For the most part, you should be able to use later minor versions and revisions of the same software without incident. For instance, if the install guide uses PostgreSQL 8.4.1, PostgreSQL 8.4.2 should work as well. We recommend that you record the revision number you use. If you have concerns about a particular combination, please post your question to the [email protected] mailing list.

Page 5: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

5

3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts with other versions of Java, you should clear out any other Java installations on the system.

♦ Go to Start>Control Panel>Add Remove Programs, and remove all Java JRE and SDKs. ♦ Download J2SE Development Kit 6.0 Update 16 ♦ Setup the Java 2 SDK

Windows offline installation (EXE) Filename: jdk-6u16-windows-i586.exe or jdk-6u18-windows-i586.exe Size: 73.54 MB Website: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u16-oth-JPR@CDS-CDS_Developer Select the correct installation environment either 32 bit or 64 bit Windows

♦ Run jdk-6u16-windows-i586-p.exe or jdk-6u18-windows-i586.exe for 32 bit operating

systems ♦ Run jdk-6u17-windows-x64.exe for 64 bit operating systems

License Agreement

♦ Click Accept >

Page 6: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

6

Custom Setup

♦ Click Change… ♦ Install to the folder c:\oc\jdk1.6.0_16\ alternatively to c:\oc\jdk1.6.0_18\ . ♦ If you use the 64 bit version of JDK c:\oc\jdk1.6.0_17\ ♦ Click OK ♦ Click Next > ♦ You will see another page for installing the JRE6. Press Cancel and then Yes. ♦ Setup will begin transferring files.

Installation Completed

♦ Click Cancel ♦ Click Yes ♦ Click Finish ♦ You may see a window asking you to restart your computer, click yes and restart your

machine. Create JAVA_HOME Environment Variable

♦ Right click on My Computer, and select Properties ♦ Select the Advanced tab ♦ Click the Environment Variables button. ♦ In the System Variables group, click the New button ♦ Create a JAVA_HOME variable that has the path to the jdk:

o Variable Name = JAVA_HOME o Variable Value = c:\oc\jdk1.6.0_16 (please make sure that jdk1.6.0_16

matches the path you installed in above. ♦ Click OK ♦ Click OK ♦ Click OK

Page 7: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

7

4. Install PostgreSQL The default installation of OpenClinica uses a PostgreSQL database. PostgreSQL is an open source application and can be installed to the Window platform as follows.

♦ Download postgresql-8.4.1-1windows.exe

Windows binary distribution (ZIP) Filename: postgresql-8.4.1-1-windows.exe Size: 25.8 MB Website: http://svn.akazaresearch.com/oc/software/OpenClinica-3.0.1/windows

♦ Run postgresql-8.4.1-1-windows.exe, the PostgreSQL Installation Wizard Opens. Setup

♦ Click Next. Installation Directory

♦ Change the default to C:\oc\postgres Data Directory

♦ Click Next. Password

♦ Enter a password for the postgres user ♦ Click Next.

Port

Page 8: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

8

♦ Port should be 5432 ♦ Click Next.

Advanced Options

♦ Use Default locale ♦ Uncheck the checkbox next to Install pl/pgsql in template1 database ♦ Click Next.

Ready to Install

♦ Click Next> Setup

Page 9: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

9

♦ Uncheck Stackbuilder ♦ Click Finish>

Page 10: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

10

5. Install Tomcat

♦ Download Apache Tomcat 6.0.20, use the Windows Service Installer version.

Windows binary distribution (EXE) Filename: apache-tomcat-6.0.20.exe Size: 5.6 MB Website: http://tomcat.apache.org/download-60.cgi

♦ Create a folder c:\oc\tomcat ♦ Run apache-tomcat-6.0.20.exe, the Apache Tomcat Setup installation wizard

appears.

Tomcat Setup ♦ Click Next >

License Agreement

♦ Click I Agree Choose Components

♦ Choose Normal from the “Select the type of install” dropdown list. ♦ Click Next >

Choose Install Location

♦ Edit destination folder to read C:\oc\tomcat ♦ Click Next >

Set Configuration Options

Page 11: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

11

♦ Verify the HTTP Connector Port is 8080 ♦ Type a password for the admin login account. You will need this password to administer

the Apache Tomcat server, and to get to the Tomcat Manager. ♦ Click Next >

Locate the Java Virtual Machine

♦ The path to JVM should be c:\oc\jdk1.6.0_16\ or c:\oc\jdk1.6.0_17\ if this version has been used

Note: Do not use c:\ oc\jdk1.6.0_16\jre, Tomcat will still install, but will be missing libraries you need to run OpenClinica. ♦ Click Install ♦ Setup will begin transferring files.

Install Complete

Page 12: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

12

♦ Check the Run Apache Tomcat checkbox. ♦ Uncheck the Show Readme checkboxes. ♦ Click Finish. Tomcat is now installed

For a 64 bit installation only: If you are installing the 64 bit version do NOT check the “Run Apache Tomcat” box. Instead follow the following procedure:

Download tomcat6.exe and tomcat6w.exe from http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_20/res/procrun/amd64/

Go to C:\oc\tomcat\bin end replace the two exe files with the files that you just

downloaded. Please note that they have the same names as the files yo have just downloaded. This step is needed or else Tomcat will not start!.

Start tomcat from: Run programs/Apache Tomcat/Monitor Tomcat. If you are using

Windows 7 you will have to right click on Monitor Tomcat and select Run as Administrator.

Start the Tomcat Service from the toolbar by clicking on the little Tomcat ICON (arrow

pointing to the upper left corner of the screen)

Tomcat is now installed on your 64 bit system

Very that Tomcat is running by typing http://localhost:8080 in your browser. Create CATALINA_HOME Environment Variable

♦ Right click on My Computer, and select Properties

Page 13: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

13

♦ Select the Advanced tab ♦ Click the Environment Variables button. ♦ In the System Variables group, click the New button ♦ Create a CATALINA_HOME variable that has the path to the tomcat install folder (should

be CATALINA_HOME=C:\oc\tomcat). ♦ Click OK ♦ Click OK ♦ Click OK

Page 14: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

14

6. Install OpenClinica Package To install OpenClinica, you must first acquire the package and install it on the server. Download OpenClinica 3.0.3 (Windows package) Filename: OpenClinica-3.0.3.zip (ZIP) Website: http://openclinica.org (you must register) Extract OpenClinica Package

♦ Extract archive into c:\oc, you should end up with a folder c:\oc\OpenClinica-3.0.3\ which contains the distribution package.

Note: Due to documentation changes prior to release, your distribution package may have different documentation files in this root directory.

Page 15: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

15

7. Configure PostgreSQL

Create a Database

♦ Open pgAdminIII. Go to Start>Programs>PostgreSQL 8.4 > pgAdminIII. The pgAdminIII interface opens.

♦ Right click on the PostgreSQL Database Server and connect to the database server. ♦ Login to the database server. Enter the password you setup in the PostgreSQL

installation. ♦ Select the postgres database. Click Tools>Query tool to open the SQL editor. ♦ Select File>Open from the menu; (if you receive a message asking you if you want to

save, click No) o Go to C:\oc\OpenClinica-3.0.3\config\database\PostgreSQL\3.0.3\install folder o Open and Execute via the SQL editor create_role.sql

♦ Select Query>Execute o You will see a message in the “History” window indicating the query has completed.

♦ Repeat the same procedure using create_db.sql in the same folder.

Page 16: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

16

8. Configuring the Web Application Start Tomcat

♦ Make sure Tomcat is running. ♦ You should see the Tomcat monitor in the system tray. Click this to bring up the Apache

Tomcat properties window. (You can also use the Windows services applet)

Page 17: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

17

♦ Copy c:\oc\OpenClinica-3.0.3\distributon\OpenClinica.war to c:\oc\tomcat\webapps ♦ Once copied go to c:\oc\tomcat\webapps and see if there is a folder called OpenClinica.

Wait a minute and if no folder is present restart tomcat. Please give some time to allow the war file to fully deploy.

♦ Stop Tomcat

Create Data Folders ♦ Create a directory c:\oc\tomcat\openclinica.data ♦ This directory will store all CRFs (original and subsequent versions), Rules and dataset files.

Page 18: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

18

Modify Configuration Files for Server Specific Settings

♦ Open C:\oc\tomcat\webapps\OpenClinica\WEB-INF\classes\datainfo.properties file in

WordPad and modify it to use the IP addresses of your server, database, and mail servers. You can also modify your default Facility Information.

♦ You must be sure to comment out the Linux filePath and uncomment the windows filePath, and be sure the filePath references the data folder you just created. The windows file path starts with a c:\. Use a ‘#’ character at the start of the line to comment it out.

♦ Be sure the filePath references the data folder you just created.

Page 19: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

19

♦ Go to database configuration section of the file and enter the following information datasource.driver=org.postgresql.Driver datasource.url=jdbc:postgresql://localhost:5432/openclinica datasource.username=clinica datasource.password=clinica hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

Note: The screenshots use the loop back address (localhost or 127.0.0.1), you can use this address to verify the installation on the install machine, but you will have to go back and change this to the server’s address before you can use the application on an intranet or over the web.

♦ Configure location of log files as well as prefix of the log file names by changing log.dir=${catalina.home}/logs/openclinica

♦ There are many other configuration options in this file. Please read the instructions in the file for more information. This installation document was created to get the application up and running in as few steps as possible.

♦ If you are using Oracle, uncomment the Oracle specific configurations and comment out the PostgreSQL specific configurations

♦ Save the file

♦ Start Tomcat

Page 20: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

20

9. Verify your Environment ♦ Open a command line and type “set JAVA_HOME” and verify the variable is set to your Java

directory (in this case probably JAVA_HOME=C:\oc\ jdk1.6.0_16) ♦ Open a command line and type “set CATALINA_HOME” and verify the variable is set to your

Tomcat directory (in this case probably CATALINA_HOME=c:\oc\tomcat) ♦ Open a web browser on the server to http://localhost:8080 and verify Tomcat is up and

running. ♦ Open a web browser on the server to http://localhost:8080/OpenClinica and verify the web

application loads. You should see the OpenClinica login screen. ♦ Login to the system. The default username is root and the password is 12345678. Note: If

you get a blank screen after trying to login, Tomcat was probably not able to make a connection to the database, or the database is empty or missing account information. For more information on troubleshooting, refer to the OpenClinica wiki. http://openclinica.org/dokuwiki/doku.php?id=publicwiki:faq

♦ Add a user that has the same privileges as root. Login as the new user and remove the Root

user account so no one will have access to it. At this point the application has been installed correctly. You should now spend some time setting up a secure environment, and then creating your studies. ♦ You should change the password for the database. You will need to go into pgAdminIII

and change it for the clinica user, and then go into the C:\oc\tomcat\webapps\OpenClinica\WEB-INF\classes\datainfo.properties, change the password in #2.

♦ You should set up SSL for Tomcat. More information is available here:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html ♦ You will need to change the localhost URLs in the datainfo.properties to match your desired

server settings. If you are planning on using OpenClinica over the web, this will need to be your server’s or proxies URL and you may need to open the Tomcat port. These SysURLs will be used in emails the application sends

♦ Enterprise support services, mailing lists, and additional resources for OpenClinica are

available at http://www.openclinica.org.

Page 21: Installing OpenClinica 3.0.3 on Windows 32 bit or 64 bit · 7/21/2010  · 5 3. Install Java OpenClinica 3.0.1 is designed to run on a Java 2 SDK 1.6x platform. To avoid conflicts

21

10. Troubleshooting

♦ If you encounter a screen similar to the one above, you can browse the tomcat logs in

c:\oc\tomcat\logs to determine the source of the exception. This will help you troubleshoot the issue.

♦ For complete details about this release, and a list of known issues, please refer to the

README.txt file.

11. Using Oracle as the Database OpenClnica 3.0.1 has been ported so it can work on the Oracle database as well as the PostgreSQL database. We will not instruct you on how to install Oracle, but there are instructions on how to create the database OpenClinica will use. Please go to the following wiki page for separate instructions for installing OpenClinica with Oracle. http://www.openclinica.org/dokuwiki/doku.php?id=ocoracleinstall:start The document you find there should be followed instead of Chapters 5 and 7 above.


Recommended