Overview and AssumptionsOverview and Assumptions
OverviewThe 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.
104/22/23 Linux
Unrestricted
Things to RememberThings 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
204/22/23 Linux
Initial Setup: Initial Setup: make folder and add usermake 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
304/22/23 Linux
Initial Setup: Initial Setup: make folder and add usermake folder and add user
[root@dnocc7201:~]# mkdir /nhin[root@dnocc7201:~]# groupadd glassfish[root@dnocc7201:~]# useradd -g glassfish -d /nhin glassfishuseradd: warning: the home directory already exists.Not copying any file from skel directory into it.[root@dnocc7201:~]# passwd glassfishChanging password for user glassfish.New UNIX password: BAD PASSWORD: it is based on a dictionary wordRetype new UNIX password: passwd: all authentication tokens updated successfully.[root@dnocc7201:~]# chown glassfish:glassfish /nhin
404/22/23 Linux
5
Downloads: CONNECT FilesDownloads: CONNECT FilesStep 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
5
04/22/23 Linux
6
Download/Install: Java Download/Install: Java PackagesPackages
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
6
04/22/23 Linux
Download/Install: Java PackagesDownload/Install: Java Packages
[root@dnocc7201:~]# yum localinstall /nhin/java-1.6.0*.rpmLoaded plugins: rhnplugin, securitySetting up Local Package ProcessExamining /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.i586Marking /nhin/java-1.6.0-sun-1.6.0.13-1jpp.1.el5.i586.rpm to be installedExamining /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.i586Marking /nhin/java-1.6.0-sun-devel-1.6.0.13-1jpp.1.el5.i586.rpm to be installedResolving 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 MInstalling 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)
704/22/23 Linux
Download/Install: Java PackagesDownload/Install: Java Packages
Total size: 154 MTotal download size: 61 kIs this ok [y/N]: yDownloading Packages:jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm | 61 kB 00:01 Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning 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!
804/22/23 Linux
Installation of GlassFishESBInstallation of GlassFishESB
Step 6.4.1: Log in as Glassfish UserStep 6.4.2: Unpack the Thirdpartytools
PackageStep 6.4.3: Install the Environmental Variable
FileStep 6.4.4: Install GlassFish ESBStep 6.4.5: Install GlassFish Service
9
04/22/23 Linux 9
Installation of GlassFishESBInstallation of GlassFishESB
[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@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@dnocc7201glassfish@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
1004/22/23 Linux
Installation of Third Party Installation of Third Party Runtime LibrariesRuntime Libraries
Step 6.5.1: Install Metro
11
04/22/23 Linux 11
Install MetroInstall Metro
[glassfish@dnocc7201:~]$ java -jar connect-thirdpartytools/metro-1_4.jar -consoleCOMMON 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 2TO THE GPL VERSION 2
1204/22/23 Linux
Install MetroInstall Metro
Accept or Decline? [A,D,a,d] ametrometro/binmetro/docsmetro/docs/stylemetro/for_v3metro/libmetro/samplesmetro/samples/annotationsmetro/samples/annotations/etcmetro/samples/annotations/srcmetro/samples/annotations/src/annotationsmetro/samples/annotations/src/annotations/clientmetro/samples/annotations/src/annotations/servermetro/samples/asyncmetro/samples/async/etcmetro/samples/async/srcmetro/samples/async/src/asyncmetro/samples/async/src/async/clientmetro/samples/async/src/async/servermetro/samples/asyncprovidermetro/samples/asyncprovider/etcmetro/samples/asyncprovider/srcmetro/samples/asyncprovider/src/asyncprovidermetro/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
13
Accept by entering “a” or “A”
04/22/23 Linux
Install MetroInstall Metro
. . .
metro/samples/xmlbind_datasource/src/xmlbind_datasource/client/DispatchImage.javametro/samples/xmlbind_datasource/src/xmlbind_datasource/server/ImageImpl.javainstallation complete[glassfish@dnocc7201:~]$ cd metro[glassfish@dnocc7201:~/metro]$ ant -f metro-on-glassfish.xml installBuildfile: 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
1404/22/23 Linux
Install MetroInstall 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-apiBuildfile: 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 SUCCESSFULTotal time: 0 seconds
1504/22/23 Linux
Installation of Third Party Installation of Third Party Runtime LibrariesRuntime Libraries
Step 6.5.2: Install Third Party Libraries to Glassfish
16
04/22/23 Linux 16
Installation of Third Party Libraries Installation of Third Party Libraries to Glassfishto Glassfish
[root@dnocc7201:/nhin/metro]# exitlogout[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
1704/22/23 Linux
Creation and Installation of Creation and Installation of CertificatesCertificates
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
18
04/22/23 Linux 18
Create SSL CertificatesCreate SSL Certificates
[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@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.csrEnter keystore password: [glassfish@dnocc7201:~]$ keytool -certreq -alias gateway -sigalg SHA1withRSA -keystore gateway.jks -
file request.csrEnter keystore password:
1904/22/23 Linux
20
Creation and Installation of Creation and Installation of CertificatesCertificates
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
20
04/22/23 Linux
Creation and Installation of Creation and Installation of CertificatesCertificates
[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]
2104/22/23 Linux
Creation and Installation of Creation and Installation of CertificatesCertificates
[[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]]
22
<- Answer “yes”
04/22/23 Linux
Creation and Installation of Creation and Installation of CertificatesCertificates
#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] [[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
2304/22/23 Linux
Configure GlassfishConfigure 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
24
04/22/23 Linux 24
Configure GlassfishConfigure Glassfish
25
04/22/23 Linux 25
Configure CONNECT GatewayConfigure 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
26
04/22/23 Linux 26
Creation and Installation of Creation and Installation of CertificatesCertificates
[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@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:~]$ exitlogoutConnection to dnocc7201 closed.
2704/22/23 Linux
Install MySQL DatabaseInstall MySQL DatabaseStep 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.
28
04/22/23 Linux 28
Install MySQL DatabaseInstall 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
2904/22/23 Linux
Install MySQL DatabaseInstall 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!
3004/22/23 Linux
Install MySQL DatabaseInstall MySQL Database
[root@dnocc7201:~]# chkconfig --level 345 mysqld on[root@dnocc7201:~]# service mysqld startInitializing MySQL database: Installing MySQL system tables...091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295OKFilling help tables...091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295091103 18:32:24 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295OK To start mysqld at boot time you have to copysupport-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 testdatabases and anonymous user created by default. This isstrongly recommended for production servers. See the manual for more instructions.
3104/22/23 Linux
Install MySQL DatabaseInstall 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.plcd 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 athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.com [ OK ]Starting MySQL: [ OK ][root@dnocc7201:~]# exit
3204/22/23 Linux
Install MySQL DatabaseInstall MySQL DatabaseStep 6.9.2: Configure mySQL Users
33
04/22/23 Linux 33
Configure mySQL UsersConfigure mySQL Users
[glassfish@dnocc7201:~]$ mysqladmin -uroot password 'NHIE-Gateway'[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-GatewayWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 3Server 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> exitBye[glassfish@dnocc7201:~]$ mysql -uroot -pNHIE-Gateway < connect-thirdpartytools/nhincdb.sql [glassfish@dnocc7201:~]$ exitlogoutConnection to dnocc7201 closed.
3404/22/23 Linux
35
Deploy CONNECT Deploy CONNECT GatewayGateway
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
35
04/22/23 Linux
Configure mySQL UsersConfigure mySQL Users
[jsanch07@sustd3540:~/nhin/linuxinstall]$ ssh glassfish@dnocc7201glassfish@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 domain1Starting 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.logDomain 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.
3604/22/23 Linux
Configure mySQL UsersConfigure 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
3704/22/23 Linux
38
Testing Using SOAPUITesting Using SOAPUIGet 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/
38
04/22/23 Linux
Testing Using SOAPUITesting 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
39
39
04/22/23 Linux
Testing Using SOAPUITesting 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/ . . .
4004/22/23 Linux
Testing Using SOAPUITesting 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-GatewayWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 263Server 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> exitBye
4104/22/23 Linux
Testing Using SOAPUITesting 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.
4204/22/23 Linux
Questions?Questions?Thank you for joining.
04/22/23 Linux 43