+ All Categories
Home > Documents > CONNECT: Release 2.2 Linux Install Webinar

CONNECT: Release 2.2 Linux Install Webinar

Date post: 20-Jan-2016
Category:
Upload: diem
View: 73 times
Download: 0 times
Share this document with a friend
Description:
CONNECT: Release 2.2 Linux Install Webinar. Overview and Assumptions. Overview The following webinar describes the single server installation of CONNECT 2.2 on a Linux platform. The install various snapshots of the terminal as well as highlights key points in the install. Assumptions - PowerPoint PPT Presentation
Popular Tags:
44
CONNECT: Release 2.2 Linux Install Webinar
Transcript

CONNECT:Release 2.2 Linux Install Webinar

Overview and Assumptions

Overview

The following webinar describes the single server installation of CONNECT 2.2 on a Linux platform. The install various snapshots of the terminal as well as highlights key points in the install.

Assumptions

–You have acquired a machine that meets the Hardware Requirements defined in section 5.1 of the Linux Full Binary System Installation and Configuration Manual

–You have root privileges or can sudo on this machine

–You have a CONNECT Community Portal

–You have an understanding of UNIX commandsManuals

To install the CONNECT 2.2 Linux install you’ll need to download the following Installation and Configuration Manual from the Connect Open Source website:

http://www.connectopensource.org/download/attachments/24182891/CONNECT_Linux_Release_2_2_System_Installation_and_Configuration_Full_Binary.pdf?version=1

This webinar is a supplement to the Installation Manual. The documentation has details this presentation does not have.

2

Things to Remember

• This installation is designed for Red Hat Enterprise Linux 5 (32-bit)

• The installation will create a glassfish user to run glassfish application server and CONNECT applications

• Some commands require root user. Use “su” command to open shell as root or use “sudo” to run the commands

• This installation will create a /nhin folder. Depending on your disk size and partitioning, you may wish to create a separate partitition for this data.

• In this particular install, the machine used is named DNOCC7201

3

Initial Setup: make folder and add user

• Step 6.2.1: Make the /nhin directory

• Step 6.2.2-6.2.3: Create the glassfish user and set permissions

4

Initial Setup: make folder and add user

[root@dnocc7201:~]# mkdir /nhin

[root@dnocc7201:~]# groupadd glassfish

[root@dnocc7201:~]# useradd -g glassfish -d /nhin glassfish

useradd: warning: the home directory already exists.

Not copying any file from skel directory into it.

[root@dnocc7201:~]# passwd glassfish

Changing password for user glassfish.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@dnocc7201:~]# chown glassfish:glassfish /nhin

5

Downloads: CONNECT Files

• Step 6.2.4: Download the CONNECT Linux packages from the CONNECT website and place in /nhin folder:– http://www.connectopensource.org/display/NHINR22/Linux+Release

• There are 5 packages:– NHIN CONNECT Gateway Binary Package

– NHIN CONNECT Glassfish Binary Package

– NHIN CONNECT Interfaces Package

– NHIN CONNECT Properties Package

– NHIN CONNECT Third Party Package

66

Download/Install: Java Packages

• Step 6.3.1: The Java 1.6.0_13 packages can be obtained from Red Hat Network. Please download the following files from rhn.redhat.com and place in /nhin:

– java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586.rpm

– java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586.rpm

• Step 6.3.2: Install Java Packages

77

Download/Install: Java Packages

[root@dnocc7201:~]# yum localinstall /nhin/java-1.6.0*.rpm

Loaded plugins: rhnplugin, security

Setting up Local Package Process

Examining /nhin/java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586.rpm: 1:java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586

Marking /nhin/java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586.rpm to be installed

Examining /nhin/java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586.rpm: 1:java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586

Marking /nhin/java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package java-1.6.0-sun.i586 1:1.6.0.13-1jpp.1.el5 set to be updated

--> Processing Dependency: jpackage-utils >= 1.5.38 for package: java-1.6.0-sun

---> Package java-1.6.0-sun-devel.i586 1:1.6.0.13-1jpp.1.el5 set to be updated

--> Running transaction check

---> Package jpackage-utils.noarch 0:1.7.3-1jpp.2.el5 set to be updated

--> Finished Dependency Resolution

 

Dependencies Resolved

==================================================================================================================

Package Arch Version Repository Size

==================================================================================================================

Installing:

java-1.6.0-sun i586 1:1.6.0.13-1jpp.1.el5 /java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586 102 M

java-1.6.0-sun-devel i586 1:1.6.0.13-1jpp.1.el5 /java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586 52 M

Installing for dependencies:

jpackage-utils noarch 1.7.3-1jpp.2.el5 rhel-i386-server-5 61 k

 

Transaction Summary

==================================================================================================================

Install 3 Package(s)

Update 0 Package(s)

Remove 0 Package(s)

8

Download/Install: Java Packages

Total size: 154 M

Total download size: 61 k

Is this ok [y/N]: y

Downloading Packages:

jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm | 61 kB 00:01

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : jpackage-utils 1/3

Installing : java-1.6.0-sun 2/3

Installing : java-1.6.0-sun-devel 3/3

 

Installed:

java-1.6.0-sun.i586 1:1.6.0.13-1jpp.1.el5 java-1.6.0-sun-devel.i586 1:1.6.0.13-1jpp.1.el5

 

Dependency Installed:

jpackage-utils.noarch 0:1.7.3-1jpp.2.el5

 

Complete!

9

Installation of GlassFishESB

• Step 6.4.1: Log in as Glassfish User

• Step 6.4.2: Unpack the Thirdpartytools Package

• Step 6.4.3: Install the Environmental Variable File

• Step 6.4.4: Install GlassFish ESB

• Step 6.4.5: Install GlassFish Service

10

Installation of GlassFishESB

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201

glassfish@dnocc7201's password:

Last login: Wed Nov 3 16:37:28 2009 from sustd3540.gs.myharris.net

[glassfish@dnocc7201:~]$ tar xzf connect-thirdpartytools-2.2.tar.gz

[glassfish@dnocc7201:~]$ su -

Password:

[root@dnocc7201:~]# cp /nhin/connect-thirdpartytools/nhin-profile.sh /etc/profile.d/

[root@dnocc7201:~]# chmod 755 /etc/profile.d/nhin-profile.sh

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201

glassfish@dnocc7201's password:

[glassfish@dnocc7201:~]$ connect-thirdpartytools/glassfishesb-v2.1-full-installer-linux.sh --silent --state \

> connect-thirdpartytools/glassfish-state.xml

[glassfish@dnocc7201:~]$ su -

Password:

[root@dnocc7201:~]# cp /nhin/connect-thirdpartytools/glassfish-init /etc/init.d/glassfish

[root@dnocc7201:~]# chkconfig --add glassfish

[root@dnocc7201:~]# chkconfig --level 345 glassfish on

11

Installation of Third Party Runtime Libraries

• Step 6.5.1: Install Metro

12

Install Metro

[glassfish@dnocc7201:~]$ java -jar connect-thirdpartytools/metro-1_4.jar -console

COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0

 

1. Definitions.

 

1.1. Contributor. means each individual or entity that creates or contributes to the creation of Modifications.

 

1.2. Contributor Version. means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor.

 

1.3. Covered Software. means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof.

 

1.4. Executable. means the Covered Software in any form other than Source Code.

 

1.5. Initial Developer. means the individual or entity that first makes Original Software available under this License. . . .

 

Truncated the output for this webinar. The output includes:

- COMMON DEVELOPMENT AND DISTRIBUTION LICENSE

- NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)

- TERMS AND CONDITIONS FOR COPYING

- DISTRIBUTION AND MODIFICATION

- How to Apply These Terms to your New Programs,

- "CLASSPATH" EXCEPTION TO THE GPL VERSION 2

TO THE GPL VERSION 2

13

Install Metro

 

Accept or Decline? [A,D,a,d] a

metro

metro/bin

metro/docs

metro/docs/style

metro/for_v3

metro/lib

metro/samples

metro/samples/annotations

metro/samples/annotations/etc

metro/samples/annotations/src

metro/samples/annotations/src/annotations

metro/samples/annotations/src/annotations/client

metro/samples/annotations/src/annotations/server

metro/samples/async

metro/samples/async/etc

metro/samples/async/src

metro/samples/async/src/async

metro/samples/async/src/async/client

metro/samples/async/src/async/server

metro/samples/asyncprovider

metro/samples/asyncprovider/etc

metro/samples/asyncprovider/src

metro/samples/asyncprovider/src/asyncprovider

metro/samples/asyncprovider/src/asyncprovider/client

. . .

Shortened for space purposes. The actual output is a list of items installed in /metro

 

TO THE GPL VERSION 2

14

Accept by entering “a” or “A”

Install Metro

. . .

metro/samples/xmlbind_datasource/src/xmlbind_datasource/client/DispatchImage.java

metro/samples/xmlbind_datasource/src/xmlbind_datasource/server/ImageImpl.java

installation complete

[glassfish@dnocc7201:~]$ cd metro

[glassfish@dnocc7201:~/metro]$ ant -f metro-on-glassfish.xml install

Buildfile: metro-on-glassfish.xml

 

gfv3-checkpoint:

 

init:

[mkdir] Created dir: /nhin/GlassFishESB/glassfish/.wsit-1.4

[copy] Copying 3 files to /nhin/GlassFishESB/glassfish/.wsit-1.4

 

install:

[echo] Installing Metro 1.4 FCS on /nhin/GlassFishESB/glassfish ...

[copy] Copying 2 files to /nhin/GlassFishESB/glassfish/lib

[copy] Copying 1 file to /nhin/GlassFishESB/glassfish/lib/endorsed

 

gfv3-checkpoint:

install-api:

[copy] Copying 1 file to /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre/lib/endorsed

 

BUILD FAILED

/nhin/metro/metro-on-glassfish.xml:132: The following error occurred while executing this line:

/nhin/metro/metro-on-glassfish.xml:139: Failed to copy /nhin/metro/lib/webservices-api.jar to /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre/lib/endorsed/webservices-api.jar due to java.io.FileNotFoundException /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre/lib/endorsed/webservices-api.jar (Permission denied) and I couldn't delete the corrupt /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre/lib/endorsed/webservices-api.jar

  

TO THE GPL VERSION 2

15

Install Metro

Total time: 1 second

[glassfish@dnocc7201:~/metro]$ su -

Password:

[root@dnocc7201:~]# cd /nhin/metro

[root@dnocc7201:/nhin/metro]# ant -f metro-on-glassfish.xml install-api

Buildfile: metro-on-glassfish.xml

 

gfv3-checkpoint:

 

install-api:

[copy] Copying 1 file to /usr/lib/jvm/java-1.6.0-sun-1.6.0.13/jre/lib/endorsed

 

BUILD SUCCESSFUL

Total time: 0 seconds

16

Installation of Third Party Runtime Libraries

• Step 6.5.2: Install Third Party Libraries to Glassfish

17

Installation of Third Party Libraries to Glassfish

[root@dnocc7201:/nhin/metro]# exit

logout

[glassfish@dnocc7201:~/metro]$ cd /nhin

[glassfish@dnocc7201:~]$ tar xzf connect-glassfish-libs-bin-2.2.tar.gz

[glassfish@dnocc7201:~]$ cp connect-glassfish-libs/* $AS_HOME/lib

18

Creation and Installation of Certificates

• Step 6.6.1: Create SSL Certificates

Note: Please replace the "YOUREMAIL, GATEWAY.EXAMPLE.COM, YOURDEPARTMENT, COMPANYNAME, CITY, and STATE with values appropriate to your CONNECT installation.

• Step 6.6.2: Generate Certificate Signing Request

• Step 6.6.3: Send Certificate Signing Request to NHIN CA

• Step 6.6.4: Download Signature and CA Certificate from NHIN CA

19

Create SSL Certificates

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201

glassfish@dnocc7201's password:

Last login: Tue Nov 3 16:52:07 2009 from sustd3540.gs.myharris.net

[glassfish@dnocc7201:~]$ mkdir certs

[glassfish@dnocc7201:~]$ cd certs

[glassfish@dnocc7201:~/certs]$ keytool -genkeypair -keyalg RSA -keysize 2048 -keystore gateway.jks \

> -validity 365 -alias gateway -dname \

"[email protected], cn=linuxinstall.gcsd.harris.com, ou=exchangeservices, o=Harris Corp, l=Melbourne, s=Florida, c=US"

Enter keystore password:

Re-enter new password:

Enter key password for <gateway>

(RETURN if same as keystore password):

uest.csr

Enter keystore password:

[glassfish@dnocc7201:~]$ keytool -certreq -alias gateway -sigalg SHA1withRSA -keystore gateway.jks -file request.csr

Enter keystore password:

20

Creation and Installation of Certificates

• Step 6.6.5: Install CA Certificate and Signature to Keystore

• Step 6.6.6: Copy Keystore to Glassfish Domain Config

• Step 6.6.7: Install CA Certificate to Trust Store

2121

Creation and Installation of Certificates

[glassfish@dnocc7201 :~/certs]$ keytool -import -trustcacerts -alias justin_ca -file justin_ca.arm -keystore gateway.jks Enter keystore password: Owner: [email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation, ST=Florida,

C=USIssuer: [email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation, ST=Florida,

C=USSerial number: db52e7f1260cffdcValid from: Tue Oct 06 16:16:37 EDT 2009 until: Fri Oct 05 16:16:37 EDT 2012Certificate fingerprints: MD5: 45:DE:0C:56:59:BE:BF:F9:DD:C3:5A:BC:74:CC:B2:AB SHA1: 17:F4:0C:62:72:52:71:97:3B:DF:56:A5:89:B4:88:94:AA:AD:6B:EB Signature algorithm name: SHA1withRSA Version: 3 Extensions: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 27 63 BD 29 BE F1 88 7C 35 0F 8E 19 4D DB 2C DF 'c.)....5...M.,.0010: C6 29 3A 44 .):D]]#2: ObjectId: 2.5.29.19 Criticality=falseBasicConstraints:[ CA:true PathLen:2147483647]#3: ObjectId: 2.5.29.35 Criticality=falseAuthorityKeyIdentifier [KeyIdentifier [0000: 27 63 BD 29 BE F1 88 7C 35 0F 8E 19 4D DB 2C DF 'c.)....5...M.,.0010: C6 29 3A 44 .):D]

22

Creation and Installation of Certificates

[[email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation, ST=Florida, C=US]

SerialNumber: [ db52e7f1 260cffdc]]Trust this certificate? [no]: yesCertificate was added to keystore[glassfish@dnocc7201:~/certs]$ keytool -import -alias gateway -file response.arm -keystore gateway.jksEnter keystore password: Certificate reply was installed in keystore[glassfish@dnocc7201:~/certs]$ cp gateway.jks /nhin/GlassFishESB/glassfish/domains/domain1/config/keystore.jks store \ish@dnocc7201:~/certs]$ keytool -import -trustcacerts -alias justin_ca -file /nhin/certs/justin_ca.arm -key > $AS_HOME/domains/domain1/config/cacerts.jksEnter keystore password: Owner: [email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation,

ST=Florida, C=USIssuer: [email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation,

ST=Florida, C=USSerial number: db52e7f1260cffdcValid from: Tue Oct 06 16:16:37 EDT 2009 until: Fri Oct 05 16:16:37 EDT 2012Certificate fingerprints: MD5: 45:DE:0C:56:59:BE:BF:F9:DD:C3:5A:BC:74:CC:B2:AB SHA1: 17:F4:0C:62:72:52:71:97:3B:DF:56:A5:89:B4:88:94:AA:AD:6B:EB Signature algorithm name: SHA1withRSA Version: 3Extensions: #1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier [KeyIdentifier [0000: 27 63 BD 29 BE F1 88 7C 35 0F 8E 19 4D DB 2C DF 'c.)....5...M.,.0010: C6 29 3A 44 .):D]]

23

<- Answer “yes”

Creation and Installation of Certificates

 

#2: ObjectId: 2.5.29.19 Criticality=false

BasicConstraints:[

CA:true

PathLen:2147483647

]

 

#3: ObjectId: 2.5.29.35 Criticality=false

AuthorityKeyIdentifier [

KeyIdentifier [

0000: 27 63 BD 29 BE F1 88 7C 35 0F 8E 19 4D DB 2C DF 'c.)....5...M.,.

0010: C6 29 3A 44 .):D

]

 

[[email protected], CN=Justin Sanchez, OU=Exchange Services, O=Harris Corporation, ST=Florida, C=US]

SerialNumber: [ db52e7f1 260cffdc]

]

 

Trust this certificate? [no]: yes

Certificate was added to keystore

24

Configure Glassfish

The commands 6.7.1 – 6.7.3 show how to update the domain.xml file located in /nhin/GlassFishESB/glassfish/domains/domain1/config/domain.xml

25

Configure Glassfish

26

Configure CONNECT Gateway

• Step 6.8.1: Unpack CONNECT Properties

• Step 6.8.2: Update CONNECT Properties * If you are creating a production installation, you will need to obtain an OID. Instructions for this are in Appendix A.

• Step 6.8.3: Work around for File Path

27

Creation and Installation of Certificates

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201

glassfish@dnocc7201's password:

Last login: Tue Nov 3 17:44:25 2009 from sustd3540.gs.myharris.net

[glassfish@dnocc7201:~]$ cd /nhin/GlassFishESB/glassfish/domains/domain1/config/

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config]$ tar xzf /nhin/connect-properties-2.2.tar.gz

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config]$ cd nhin/

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config/nhin]$ vim gateway.properties

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config/nhin]$ vim internalConnectionInfo.xml

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config/nhin]$ ln -s /nhin/GlassFishESB /nhin/GlassFishESB/glassfish/domains/domain1/config/nhin/

[glassfish@dnocc7201:~/GlassFishESB/glassfish/domains/domain1/config/nhin]$ cd /nhin/

[glassfish@dnocc7201:~]$ exit

logout

Connection to dnocc7201 closed.

28

Install MySQL Database

• Step 6.9.1: Install MySQL Database

* The following instruction is specific to Red Hat Enterprise Linux 5. If you are using a different distribution of Linux, please consult your vendor's documentation for how to install MySQL database on your Linux system. Make sure both the client application and database server are installed (sometimes this requires a separate -server package). Make sure you also configure mySQL to start at boot, as a service, and start the mySQL server.

29

Install MySQL Database

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@dnocc7201's password: Last login: Tue Nov 3 17:59:36 2009 from sustd3540.gs.myharris.net[glassfish@dnocc7201:~]$ su -Password: [root@dnocc7201:~]# yum install mysql mysql-serverLoaded plugins: rhnplugin, securitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package mysql.i386 0:5.0.77-3.el5 set to be updated--> Processing Dependency: perl(DBI) for package: mysql---> Package mysql-server.i386 0:5.0.77-3.el5 set to be updated--> Processing Dependency: perl-DBD-MySQL for package: mysql-server--> Running transaction check---> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated---> Package perl-DBI.i386 0:1.52-2.el5 set to be updatedFinished Dependency Resolution

Dependencies Resolved ================================================================================================================== Package Arch Version Repository Size==================================================================================================================Installing: mysql i386 5.0.77-3.el5 rhel-i386-server-5 4.8 M mysql-server i386 5.0.77-3.el5 rhel-i386-server-5 9.8 MInstalling for dependencies: perl-DBD-MySQL i386 3.0007-2.el5 rhel-i386-server-5 147 k perl-DBI i386 1.52-2.el5 rhel-i386-server-5 605 k

30

Install MySQL Database

Transaction Summary==================================================================================================================Install 4 Package(s) Update 0 Package(s) Remove 0 Package(s)  Total download size: 15 MIs this ok [y/N]: yDownloading Packages:(1/4): perl-DBD-MySQL-3.0007-2.el5.i386.rpm | 147 kB 00:01 (2/4): perl-DBI-1.52-2.el5.i386.rpm | 605 kB 00:00 (3/4): mysql-5.0.77-3.el5.i386.rpm | 4.8 MB 00:02 (4/4): mysql-server-5.0.77-3.el5.i386.rpm | 9.8 MB 00:05 ------------------------------------------------------------------------------------------------------------------Total 512 kB/s | 15 MB 00:30 Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing : perl-DBI 1/4 Installing : mysql 2/4 Installing : perl-DBD-MySQL 3/4 Installing : mysql-server 4/4  Installed: mysql.i386 0:5.0.77-3.el5 mysql-server.i386 0:5.0.77-3.el5  Dependency Installed: perl-DBD-MySQL.i386 0:3.0007-2.el5 perl-DBI.i386 0:1.52-2.el5  Complete!

31

Install MySQL Database

[root@dnocc7201:~]# chkconfig --level 345 mysqld on

[root@dnocc7201:~]# service mysqld start

Initializing MySQL database: Installing MySQL system tables...

091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295

091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295

OK

Filling help tables...

091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295

091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295

OK

 

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

 

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h dnocc7201.mtse.dev password 'new-password'

 

Alternatively you can run:

/usr/bin/mysql_secure_installation

 

which will also give you the option of removing the test

databases and anonymous user created by default. This is

strongly recommended for production servers.

 

See the manual for more instructions.

 

32

Install MySQL Database

 

You can start the MySQL daemon with:

cd /usr ; /usr/bin/mysqld_safe &

 

You can test the MySQL daemon with mysql-test-run.pl

cd mysql-test ; perl mysql-test-run.pl

 

Please report any problems with the /usr/bin/mysqlbug script!

 

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

[ OK ]

Starting MySQL: [ OK ]

[root@dnocc7201:~]# exit

33

Install MySQL Database

• Step 6.9.2: Configure mySQL Users

34

Configure mySQL Users

 

[glassfish@dnocc7201:~]$ mysqladmin -uroot password 'NHIE-Gateway'

[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-Gateway

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.0.77 Source distribution

 

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 

mysql> DELETE FROM mysql.user WHERE user="";

Query OK, 2 rows affected (0.00 sec)

 

mysql> exit

Bye

[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-Gateway < connect-thirdpartytools/nhincdb.sql

[glassfish@dnocc7201:~]$ exit

logout

Connection to dnocc7201 closed.

35

Deploy CONNECT Gateway

• Step 6.10.1: Unpack CONNECT WSDLs

• Step 6.10.2: Unpack CONNECT Gateway Software

• Step 6.10.3: Install CONNECT Libraries to Glassfish

• Step 6.10.4: Start Glassfish Application Server

• Step 6.10.5: Deploy CONNECT Applications

3636

Configure mySQL Users

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201

glassfish@dnocc7201's password:

Last login: Wed Nov 4 10:53:07 2009 from sustd3540.gs.myharris.net

[glassfish@dnocc7201:~]$ tar xzf connect-interfaces-2.2.tar.gz

[glassfish@dnocc7201:~]$ tar xzf connect-gateway-bin-2.2.tar.gz

[glassfish@dnocc7201:~]$ cp connect-gateway/*Lib.jar $AS_HOME/lib

[glassfish@dnocc7201:~]$ asadmin start-domain domain1

Starting Domain domain1, please wait.

Default Log location is /nhin/GlassFishESB/glassfish/domains/domain1/logs/server.log.

Redirecting output to /nhin/GlassFishESB/glassfish/domains/domain1/logs/server.log

Domain domain1 is ready to receive client requests. Additional services are being started in background.

Domain [domain1] is running [Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)] with its configuration and logs at: [/nhin/GlassFishESB/glassfish/domains].

Admin Console is available at [http://localhost:4848].

Use the same port [4848] for "asadmin" commands.

User web applications are available at these URLs:

[http://localhost:8080 https://localhost:8181 ].

Following web-contexts are available:

[/web1 /__wstx-services ].

Standard JMX Clients (like JConsole) can connect to JMXServiceURL:

[service:jmx:rmi:///jndi/rmi://dnocc7201.mtse.dev:8686/jmxrmi] for domain management purposes.

Domain listens on at least following ports for connections:

[8080 8181 4848 3100 3820 3920 8686 ].

Domain does not support application server clusters and other standalone instances.

37

Configure mySQL Users

[glassfish@dnocc7201:~]$ connect-gateway/modules.sh deployCommand deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.Command deploy executed successfully.[glassfish@dnocc7201:~]$ exitlogoutConnection to dnocc7201 closed.[jsanch07@sustd3540:~/nhin/linuxinstall]$ exit

38

Testing Using SOAPUI

• Get the Internal Self-Test Package for UNIX and Internal Self-Test Setup Instructions from:

http://www.connectopensource.org/display/NHINR22/SoapUI+Tests

• Copy the Self-Test Package into /nhin

• Unzip Self-Test Package and SOAPUI

• Copy files from SelfTest/InternalSelfTest/:– mysql-connector-java-5.0.8-bin.jar into soapui-2.5.1/bin/ext/

– mpi.xml into GlassFishESB/glassfish/domains/domain1/config/

– reidentification.xml into GlassFishESB/glassfish/domains/domain1/config/nhin/

3939

Testing Using SOAPUI

• Setup NHINC user in mySQL database

• Load test document data into mySQL

• Setup symbolic link to support test package paths

• Edit InternalSelfTest.properties

• Run Internal Self Tests

4040

Testing Using SOAPUI

[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@dnocc7201's password: Last login: Wed Nov 4 14:49:43 2009 from sustd3540.gs.myharris.net[glassfish@dnocc7201:~]$ unzip NHIN_CONNECT_Release_2_2_A020_Demonstration_Scripts_Internal_Self_Test_UNIX_092709.zip Archive: NHIN_CONNECT_Release_2_2_A020_Demonstration_Scripts_Internal_Self_Test_UNIX_092709.zipSelfTest\InternalSelfTest\document.sql: mismatching "local" filename (SelfTest/InternalSelfTest/document.sql), continuing with "central" filename versionwarning: NHIN_CONNECT_Release_2_2_A020_Demonstration_Scripts_Internal_Self_Test_UNIX_092709.zip appears to use

backslashes as path separators inflating: SelfTest/InternalSelfTest/document.sql SelfTest\InternalSelfTest\mpi.xml: mismatching "local" filename (SelfTest/InternalSelfTest/mpi.xml), continuing with "central" filename version inflating: SelfTest/InternalSelfTest/mpi.xml SelfTest\InternalSelfTest\mysql-connector-java-5.0.8-bin.jar: mismatching "local" filename

(SelfTest/InternalSelfTest/mysql-connector-java-5.0.8-bin.jar), continuing with "central" filename version inflating: SelfTest/InternalSelfTest/mysql-connector-java-5.0.8-bin.jar SelfTest\InternalSelfTest\reidentification.xml: mismatching "local" filename

(SelfTest/InternalSelfTest/reidentification.xml), continuing with "central" filename version inflating: SelfTest/InternalSelfTest/reidentification.xml SelfTest\InternalSelfTest\InternalSelfTest.properties: mismatching "local" filename

(SelfTest/InternalSelfTest/InternalSelfTest.properties), continuing with "central" filename version inflating: SelfTest/InternalSelfTest/InternalSelfTest.properties SelfTest\InternalSelfTest\InternalSelfTest-soapui-project.xml: mismatching "local" filename

(SelfTest/InternalSelfTest/InternalSelfTest-soapui-project.xml), continuing with "central" filename version inflating: SelfTest/InternalSelfTest/InternalSelfTest-soapui-project.xml [glassfish@dnocc7201:~]$ unzip connect-thirdpartytools/soapui-2.5.1-bin.zip Archive: soapui-2.5.1-bin.zip creating: soapui-2.5.1/ creating: soapui-2.5.1/bin/ . . .

41

Testing Using SOAPUI

. . .

inflating: soapui-2.5.1/Tutorials/WSDL-WADL/NewsSearchResponse.xsd

inflating: soapui-2.5.1/Tutorials/WSDL-WADL/sample-service.wsdl

inflating: soapui-2.5.1/Tutorials/WSDL-WADL/YahooSearch.wadl

[glassfish@dnocc7201:~]$ cp SelfTest/InternalSelfTest/mysql-connector-java-5.0.8-bin.jar soapui-2.5.1/bin/ext/

[glassfish@dnocc7201:~]$ cp SelfTest/InternalSelfTest/mpi.xml GlassFishESB/glassfish/domains/domain1/config/

[glassfish@dnocc7201:~]$ cp SelfTest/InternalSelfTest/reidentification.xml GlassFishESB/glassfish/domains/domain1/config/nhin/

[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-Gateway

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 263

Server version: 5.0.77 Source distribution

 

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 

mysql> GRANT ALL PRIVILEGES ON *.* TO 'nhincuser'@'localhost' IDENTIFIED BY 'nhincpass' WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

 

mysql> GRANT ALL PRIVILEGES ON *.* TO 'nhincuser'@'dnocc7201' IDENTIFIED BY 'nhincpass' WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

 

mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.00 sec)

 

mysql> exit

Bye

42

Testing Using SOAPUI

[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-Gateway docrepository < SelfTest/InternalSelfTest/document.sql [glassfish@dnocc7201:~]$ ln -s /nhin \$HOME[glassfish@dnocc7201:~]$ perl -p -i -e 's/<Gateway-IP>/dnocc7201/; s/=1\.1\r?$/=DNOCC7201/'

SelfTest/InternalSelfTest/InternalSelfTest.properties[glassfish@dnocc7201:~]$ sh soapui-2.5.1/bin/testrunner.sh -r SelfTest/InternalSelfTest/InternalSelfTest-soapui-

project.xml================================== SOAPUI_HOME = /nhin/soapui-2.5.1=================================soapUI 2.5.1 TestCase Runner15:28:12,824 INFO [SoapUI] Added [file:/nhin/soapui-2.5.1/bin/ext/mysql-connector-java-5.0.8-bin.jar] to classpath15:28:13,758 INFO [DefaultSoapUICore] initialized soapui-settings from [/nhin/soapui-2.5.1/soapui-settings.xml]15:28:15,793 INFO [WsdlProject] Loaded project from [file:/nhin/SelfTest/InternalSelfTest/InternalSelfTest-soapui-

project.xml]15:28:18,116 INFO [SoapUITestCaseRunner] Running soapUI tests in project [InternalSelfTest]. . .

15:29:49,170 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [Revoke], time taken: 12605ms, status: FINISHED15:29:49,171 INFO [SoapUITestCaseRunner] soapUI suite [InternalSelfTest TestSuite] finished in 90952ms SoapUI 2.5.1 TestCaseRunner Summary-----------------------------Time Taken: 91053msTotal TestSuites: 1Total TestCases: 9 (0 failed)Total TestSteps: 59Total Request Assertions: 30Total Failed Assertions: 0Total Exported Results: 0[glassfish@dnocc7201:~]$ exitlogoutConnection to dnocc7201 closed.

43

Questions?

Thank you for joining.


Recommended