0% found this document useful (0 votes)
141 views

Linux Installation Steps

The document provides steps to install CONNECT 2.2 on a single Linux server. It begins with initial setup steps like creating a /nhin directory and glassfish user. It then guides the user to download CONNECT files, Java packages, and third party libraries and install them. Key steps include unpacking third party tools, configuring environment variables, installing GlassFish ESB, and installing runtime libraries like Metro. The goal is to completely set up the CONNECT software and its dependencies on the Linux server.

Uploaded by

Samit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views

Linux Installation Steps

The document provides steps to install CONNECT 2.2 on a single Linux server. It begins with initial setup steps like creating a /nhin directory and glassfish user. It then guides the user to download CONNECT files, Java packages, and third party libraries and install them. Key steps include unpacking third party tools, configuring environment variables, installing GlassFish ESB, and installing runtime libraries like Metro. The goal is to completely set up the CONNECT software and its dependencies on the Linux server.

Uploaded by

Samit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 43

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 youll 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_Syste
m_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.

Overview and Assumptions


11/27/15
Unrestricted

Linux

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

Things to Remember
11/27/15

Linux

Step

6.2.1: Make the /nhin directory

Step

6.2.2-6.2.3: Create the glassfish user and


set permissions

Initial Setup:
make folder and add user
11/27/15

Linux

[root@dnocc7201:~]#mkdir/nhin
[root@dnocc7201:~]#groupaddglassfish
[root@dnocc7201:~]#useraddgglassfishd/nhinglassfish
useradd:warning:thehomedirectoryalreadyexists.
Notcopyinganyfilefromskeldirectoryintoit.
[root@dnocc7201:~]#passwdglassfish
Changingpasswordforuserglassfish.
NewUNIXpassword:
BADPASSWORD:itisbasedonadictionaryword
RetypenewUNIXpassword:
passwd:allauthenticationtokensupdatedsuccessfully.
[root@dnocc7201:~]#chownglassfish:glassfish/nhin

Initial Setup:
make folder and add user
11/27/15

Linux

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
11/27/15

Linux

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

11/27/15
6

Linux

[root@dnocc7201:~]#yumlocalinstall/nhin/java1.6.0*.rpm
Loadedplugins:rhnplugin,security
SettingupLocalPackageProcess
Examining/nhin/java1.6.0sun1.6.0.131jpp.1.el5.i586.rpm:1:java1.6.0sun1.6.0.131jpp.1.el5.i586
Marking/nhin/java1.6.0sun1.6.0.131jpp.1.el5.i586.rpmtobeinstalled
Examining/nhin/java1.6.0sundevel1.6.0.131jpp.1.el5.i586.rpm:1:java1.6.0sundevel1.6.0.131jpp.1.el5.i586
Marking/nhin/java1.6.0sundevel1.6.0.131jpp.1.el5.i586.rpmtobeinstalled
ResolvingDependencies
>Runningtransactioncheck
>Packagejava1.6.0sun.i5861:1.6.0.131jpp.1.el5settobeupdated
>ProcessingDependency:jpackageutils>=1.5.38forpackage:java1.6.0sun
>Packagejava1.6.0sundevel.i5861:1.6.0.131jpp.1.el5settobeupdated
>Runningtransactioncheck
>Packagejpackageutils.noarch0:1.7.31jpp.2.el5settobeupdated
>FinishedDependencyResolution

DependenciesResolved
==================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================
Installing:
java1.6.0suni5861:1.6.0.131jpp.1.el5/java1.6.0sun1.6.0.131jpp.1.el5.i586102M
java1.6.0sundeveli5861:1.6.0.131jpp.1.el5/java1.6.0sundevel1.6.0.131jpp.1.el5.i58652M
Installingfordependencies:
jpackageutilsnoarch1.7.31jpp.2.el5rheli386server561k

TransactionSummary
==================================================================================================================
Install3Package(s)

Download/Install: Java Packages


Update0Package(s)
Remove0Package(s)

11/27/15

Linux

Totalsize:154M
Totaldownloadsize:61k
Isthisok[y/N]:y
DownloadingPackages:
jpackageutils1.7.31jpp.2.el5.noarch.rpm|61kB00:01
Runningrpm_check_debug
RunningTransactionTest
FinishedTransactionTest
TransactionTestSucceeded
RunningTransaction
Installing:jpackageutils1/3
Installing:java1.6.0sun2/3
Installing:java1.6.0sundevel3/3

Installed:
java1.6.0sun.i5861:1.6.0.131jpp.1.el5java1.6.0sundevel.i5861:1.6.0.131jpp.1.el5

DependencyInstalled:
jpackageutils.noarch0:1.7.31jpp.2.el5

Complete!

Download/Install: Java Packages


11/27/15

Linux

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

Installation of GlassFishESB
11/27/15
9

Linux

[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
Lastlogin:WedNov316:37:282009fromsustd3540.gs.myharris.net
[glassfish@dnocc7201:~]$tarxzfconnectthirdpartytools2.2.tar.gz
[glassfish@dnocc7201:~]$su
Password:
[root@dnocc7201:~]#cp/nhin/connectthirdpartytools/nhinprofile.sh/etc/profile.d/
[root@dnocc7201:~]#chmod755/etc/profile.d/nhinprofile.sh
[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
[glassfish@dnocc7201:~]$connectthirdpartytools/glassfishesbv2.1fullinstaller
linux.shsilentstate\
>connectthirdpartytools/glassfishstate.xml
[glassfish@dnocc7201:~]$su
Password:
[root@dnocc7201:~]#cp/nhin/connectthirdpartytools/glassfishinit
/etc/init.d/glassfish
[root@dnocc7201:~]#chkconfigaddglassfish
[root@dnocc7201:~]#chkconfiglevel345glassfishon

Installation of GlassFishESB
11/27/15

Linux

10

Installation of Third Party


Runtime Libraries
Step

6.5.1: Install Metro

11/27/15
11

Linux

11

[glassfish@dnocc7201:~]$javajarconnectthirdpartytools/metro1_4.jarconsole
COMMONDEVELOPMENTANDDISTRIBUTIONLICENSE(CDDL)Version1.0

1.Definitions.

1.1.Contributor.meanseachindividualorentitythatcreatesorcontributestothecreationofModifications.

1.2.ContributorVersion.meansthecombinationoftheOriginalSoftware,priorModificationsusedbyaContributor
(ifany),andtheModificationsmadebythatparticularContributor.

1.3.CoveredSoftware.means(a)theOriginalSoftware,or(b)Modifications,or(c)thecombinationoffiles
containingOriginalSoftwarewithfilescontainingModifications,ineachcaseincludingportionsthereof.

1.4.Executable.meanstheCoveredSoftwareinanyformotherthanSourceCode.

1.5.InitialDeveloper.meanstheindividualorentitythatfirstmakesOriginalSoftwareavailableunderthis
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

Install Metro
11/27/15

Linux

12


AcceptorDecline?[A,D,a,d]a
metro
metro/bin
metro/docs
metro/docs/style
metro/for_v3
metro/lib
metro/samples

Accept by entering a or A

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

Install Metro
11/27/15

Linux

13

...
metro/samples/xmlbind_datasource/src/xmlbind_datasource/client/DispatchImage.java
metro/samples/xmlbind_datasource/src/xmlbind_datasource/server/ImageImpl.java
installationcomplete
[glassfish@dnocc7201:~]$cdmetro
[glassfish@dnocc7201:~/metro]$antfmetroonglassfish.xmlinstall
Buildfile:metroonglassfish.xml

gfv3checkpoint:

init:
[mkdir]Createddir:/nhin/GlassFishESB/glassfish/.wsit1.4
[copy]Copying3filesto/nhin/GlassFishESB/glassfish/.wsit1.4

install:
[echo]InstallingMetro1.4FCSon/nhin/GlassFishESB/glassfish...
[copy]Copying2filesto/nhin/GlassFishESB/glassfish/lib
[copy]Copying1fileto/nhin/GlassFishESB/glassfish/lib/endorsed

gfv3checkpoint:
installapi:
[copy]Copying1fileto/usr/lib/jvm/java1.6.0sun1.6.0.13/jre/lib/endorsed

BUILDFAILED
/nhin/metro/metroonglassfish.xml:132:Thefollowingerroroccurredwhileexecutingthisline:
/nhin/metro/metroonglassfish.xml:139:Failedtocopy/nhin/metro/lib/webservicesapi.jarto/usr/lib/jvm/java1.6.0sun
1.6.0.13/jre/lib/endorsed/webservicesapi.jarduetojava.io.FileNotFoundException/usr/lib/jvm/java1.6.0sun
1.6.0.13/jre/lib/endorsed/webservicesapi.jar(Permissiondenied)andIcouldn'tdeletethecorrupt/usr/lib/jvm/java1.6.0sun
1.6.0.13/jre/lib/endorsed/webservicesapi.jar

Install Metro

TO THE GPL VERSION 2

11/27/15

Linux

14

Totaltime:1second
[glassfish@dnocc7201:~/metro]$su
Password:
[root@dnocc7201:~]#cd/nhin/metro
[root@dnocc7201:/nhin/metro]#antfmetroonglassfish.xmlinstallapi
Buildfile:metroonglassfish.xml

gfv3checkpoint:

installapi:
[copy]Copying1fileto/usr/lib/jvm/java1.6.0sun1.6.0.13/jre/lib/endorsed

BUILDSUCCESSFUL
Totaltime:0seconds

Install Metro
11/27/15

Linux

15

Installation of Third Party


Runtime Libraries
Step

6.5.2: Install Third Party Libraries to Glassfish

11/27/15
16

Linux

16

[root@dnocc7201:/nhin/metro]#exit
logout
[glassfish@dnocc7201:~/metro]$cd/nhin
[glassfish@dnocc7201:~]$tarxzfconnectglassfishlibsbin2.2.tar.gz
[glassfish@dnocc7201:~]$cpconnectglassfishlibs/*$AS_HOME/lib

Installation of Third Party Libraries


to Glassfish
11/27/15

Linux

17

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
11/27/15

18

Linux

18

[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
Lastlogin:TueNov316:52:072009fromsustd3540.gs.myharris.net
[glassfish@dnocc7201:~]$mkdircerts
[glassfish@dnocc7201:~]$cdcerts
[glassfish@dnocc7201:~/certs]$keytoolgenkeypairkeyalgRSAkeysize2048keystoregateway.jks\
>validity365aliasgatewaydname\
"[email protected],cn=linuxinstall.gcsd.harris.com,ou=exchangeservices,o=HarrisCorp,
l=Melbourne,s=Florida,c=US"
Enterkeystorepassword:
Reenternewpassword:
Enterkeypasswordfor<gateway>
(RETURNifsameaskeystorepassword):
uest.csr
Enterkeystorepassword:
[glassfish@dnocc7201:~]$keytoolcertreqaliasgatewaysigalgSHA1withRSAkeystoregateway.jks
filerequest.csr
Enterkeystorepassword:

Create SSL Certificates


11/27/15

Linux

19

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

11/27/15
20

Linux

20

Creation and Installation of


Certificates
[glassfish@dnocc7201:~/certs]$keytoolimporttrustcacertsaliasjustin_cafilejustin_ca.armkeystoregateway.jks
Enterkeystorepassword:
Owner:[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,ST=Florida,C=US
Issuer:[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,ST=Florida,C=US
Serialnumber:db52e7f1260cffdc
Validfrom:TueOct0616:16:37EDT2009until:FriOct0516:16:37EDT2012
Certificatefingerprints:
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
Signaturealgorithmname:SHA1withRSA
Version:3

Extensions:
#1:ObjectId:2.5.29.14Criticality=false
SubjectKeyIdentifier[
KeyIdentifier[
0000:2763BD29BEF1887C350F8E194DDB2CDF'c.)....5...M.,.
0010:C6293A44.):D
]
]
#2:ObjectId:2.5.29.19Criticality=false
BasicConstraints:[
CA:true
PathLen:2147483647
]
#3:ObjectId:2.5.29.35Criticality=false
AuthorityKeyIdentifier[
KeyIdentifier[
0000:2763BD29BEF1887C350F8E194DDB2CDF'c.)....5...M.,.
0010:C6293A44.):D
]

11/27/15

Linux

21

Creation and Installation of


Certificates

[[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,ST=Florida,
C=US]
SerialNumber:[db52e7f1260cffdc]
]
Trustthiscertificate?[no]:yes
<- Answer yes
Certificatewasaddedtokeystore
[glassfish@dnocc7201:~/certs]$keytoolimportaliasgatewayfileresponse.armkeystoregateway.jks
Enterkeystorepassword:
Certificatereplywasinstalledinkeystore
[glassfish@dnocc7201:~/certs]$cpgateway.jks/nhin/GlassFishESB/glassfish/domains/domain1/config/keystore.jks
store\ish@dnocc7201:~/certs]$keytoolimporttrustcacertsaliasjustin_cafile/nhin/certs/justin_ca.armkey
>$AS_HOME/domains/domain1/config/cacerts.jks
Enterkeystorepassword:
Owner:[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,
ST=Florida,C=US
Issuer:[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,
ST=Florida,C=US
Serialnumber:db52e7f1260cffdc
Validfrom:TueOct0616:16:37EDT2009until:FriOct0516:16:37EDT2012
Certificatefingerprints:
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
Signaturealgorithmname:SHA1withRSA
Version:3
Extensions:
#1:ObjectId:2.5.29.14Criticality=false
SubjectKeyIdentifier[
KeyIdentifier[
0000:2763BD29BEF1887C350F8E194DDB2CDF'c.)....5...M.,.
0010:C6293A44.):D
]
]

11/27/15

Linux

22

Creation and Installation of


Certificates

#2:ObjectId:2.5.29.19Criticality=false
BasicConstraints:[
CA:true
PathLen:2147483647
]

#3:ObjectId:2.5.29.35Criticality=false
AuthorityKeyIdentifier[
KeyIdentifier[
0000:2763BD29BEF1887C350F8E194DDB2CDF'c.)....5...M.,.
0010:C6293A44.):D
]

[[email protected],CN=JustinSanchez,OU=ExchangeServices,O=HarrisCorporation,
ST=Florida,C=US]
SerialNumber:[db52e7f1260cffdc]
]

Trustthiscertificate?[no]:yes
Certificatewasaddedtokeystore

11/27/15

Linux

23

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/co
nfig/domain.xml

11/27/15
24

Linux

24

Configure Glassfish

11/27/15
25

Linux

25

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

Configure CONNECT Gateway


11/27/15
26

Linux

26

[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.

Creation and Installation of


Certificates
11/27/15

Linux

27

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.

11/27/15
28

Linux

28

[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
Lastlogin:TueNov317:59:362009fromsustd3540.gs.myharris.net
[glassfish@dnocc7201:~]$su
Password:
[root@dnocc7201:~]#yuminstallmysqlmysqlserver
Loadedplugins:rhnplugin,security
SettingupInstallProcess
ResolvingDependencies
>Runningtransactioncheck
>Packagemysql.i3860:5.0.773.el5settobeupdated
>ProcessingDependency:perl(DBI)forpackage:mysql
>Packagemysqlserver.i3860:5.0.773.el5settobeupdated
>ProcessingDependency:perlDBDMySQLforpackage:mysqlserver
>Runningtransactioncheck
>PackageperlDBDMySQL.i3860:3.00072.el5settobeupdated
>PackageperlDBI.i3860:1.522.el5settobeupdated
FinishedDependencyResolution
DependenciesResolved

==================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================
Installing:
mysqli3865.0.773.el5rheli386server54.8M
mysqlserveri3865.0.773.el5rheli386server59.8M
Installingfordependencies:
perlDBDMySQLi3863.00072.el5rheli386server5147k
perlDBIi3861.522.el5rheli386server5605k

Install MySQL Database


11/27/15

Linux

29

TransactionSummary
==================================================================================================================
Install4Package(s)
Update0Package(s)
Remove0Package(s)

Totaldownloadsize:15M
Isthisok[y/N]:y
DownloadingPackages:
(1/4):perlDBDMySQL3.00072.el5.i386.rpm|147kB00:01
(2/4):perlDBI1.522.el5.i386.rpm|605kB00:00
(3/4):mysql5.0.773.el5.i386.rpm|4.8MB00:02
(4/4):mysqlserver5.0.773.el5.i386.rpm|9.8MB00:05

Total512kB/s|15MB00:30
Runningrpm_check_debug
RunningTransactionTest
FinishedTransactionTest
TransactionTestSucceeded
RunningTransaction
Installing:perlDBI1/4
Installing:mysql2/4
Installing:perlDBDMySQL3/4
Installing:mysqlserver4/4

Installed:
mysql.i3860:5.0.773.el5mysqlserver.i3860:5.0.773.el5

DependencyInstalled:
perlDBDMySQL.i3860:3.00072.el5perlDBI.i3860:1.522.el5

Complete!

Install MySQL Database


11/27/15

Linux

30

[root@dnocc7201:~]#chkconfiglevel345mysqldon
[root@dnocc7201:~]#servicemysqldstart
InitializingMySQLdatabase:InstallingMySQLsystemtables...
09110318:32:24[Warning]option'max_join_size':unsignedvalue18446744073709551615adjustedto4294967295
09110318:32:24[Warning]option'max_join_size':unsignedvalue18446744073709551615adjustedto4294967295
OK
Fillinghelptables...
09110318:32:24[Warning]option'max_join_size':unsignedvalue18446744073709551615adjustedto4294967295
09110318:32:24[Warning]option'max_join_size':unsignedvalue18446744073709551615adjustedto4294967295
OK

Tostartmysqldatboottimeyouhavetocopy
supportfiles/mysql.servertotherightplaceforyoursystem

PLEASEREMEMBERTOSETAPASSWORDFORTHEMySQLrootUSER!
Todoso,starttheserver,thenissuethefollowingcommands:
/usr/bin/mysqladminurootpassword'newpassword'
/usr/bin/mysqladminuroothdnocc7201.mtse.devpassword'newpassword'

Alternativelyyoucanrun:
/usr/bin/mysql_secure_installation

whichwillalsogiveyoutheoptionofremovingthetest
databasesandanonymoususercreatedbydefault.Thisis
stronglyrecommendedforproductionservers.

Seethemanualformoreinstructions.

Install MySQL Database


11/27/15

Linux

31


YoucanstarttheMySQLdaemonwith:
cd/usr;/usr/bin/mysqld_safe&

YoucantesttheMySQLdaemonwithmysqltestrun.pl
cdmysqltest;perlmysqltestrun.pl

Pleasereportanyproblemswiththe/usr/bin/mysqlbugscript!

ThelatestinformationaboutMySQLisavailableonthewebat
http://www.mysql.com
SupportMySQLbybuyingsupport/licensesathttp://shop.mysql.com
[OK]
StartingMySQL:[OK]
[root@dnocc7201:~]#exit

Install MySQL Database


11/27/15

Linux

32

Install MySQL Database


Step

6.9.2: Configure mySQL Users

11/27/15
33

Linux

33


[glassfish@dnocc7201:~]$mysqladminurootpassword'NHIEGateway'
[glassfish@dnocc7201:~]$mysqlurootpNHIEGateway
WelcometotheMySQLmonitor.Commandsendwith;or\g.
YourMySQLconnectionidis3
Serverversion:5.0.77Sourcedistribution

Type'help;'or'\h'forhelp.Type'\c'toclearthebuffer.

mysql>DELETEFROMmysql.userWHEREuser="";
QueryOK,2rowsaffected(0.00sec)

mysql>exit
Bye
[glassfish@dnocc7201:~]$mysqlurootpNHIEGateway<connectthirdpartytools/nhincdb.sql
[glassfish@dnocc7201:~]$exit
logout
Connectiontodnocc7201closed.

Configure mySQL Users


11/27/15

Linux

34

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

11/27/15
35

Linux

35

[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
Lastlogin:WedNov410:53:072009fromsustd3540.gs.myharris.net
[glassfish@dnocc7201:~]$tarxzfconnectinterfaces2.2.tar.gz
[glassfish@dnocc7201:~]$tarxzfconnectgatewaybin2.2.tar.gz
[glassfish@dnocc7201:~]$cpconnectgateway/*Lib.jar$AS_HOME/lib
[glassfish@dnocc7201:~]$asadminstartdomaindomain1
StartingDomaindomain1,pleasewait.
DefaultLoglocationis/nhin/GlassFishESB/glassfish/domains/domain1/logs/server.log.
Redirectingoutputto/nhin/GlassFishESB/glassfish/domains/domain1/logs/server.log
Domaindomain1isreadytoreceiveclientrequests.Additionalservicesarebeingstartedinbackground.
Domain[domain1]isrunning[SunGlassFishEnterpriseServerv2.1(9.1.1)(buildb60efcs)]withitsconfiguration
andlogsat:[/nhin/GlassFishESB/glassfish/domains].
AdminConsoleisavailableat[http://localhost:4848].
Usethesameport[4848]for"asadmin"commands.
UserwebapplicationsareavailableattheseURLs:
[http://localhost:8080https://localhost:8181].
Followingwebcontextsareavailable:
[/web1/__wstxservices].
StandardJMXClients(likeJConsole)canconnecttoJMXServiceURL:
[service:jmx:rmi:///jndi/rmi://dnocc7201.mtse.dev:8686/jmxrmi]fordomainmanagementpurposes.
Domainlistensonatleastfollowingportsforconnections:
[8080818148483100382039208686].
Domaindoesnotsupportapplicationserverclustersandotherstandaloneinstances.

Configure mySQL Users


11/27/15

Linux

36

[glassfish@dnocc7201:~]$connectgateway/modules.shdeploy
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
Commanddeployexecutedsuccessfully.
[glassfish@dnocc7201:~]$exit
logout
Connectiontodnocc7201closed.
[jsanch07@sustd3540:~/nhin/linuxinstall]$exit

Configure mySQL Users


11/27/15

Linux

37

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/

11/27/15
38

Linux

38

Setup
Load

NHINC user in mySQL database

test document data into mySQL

Setup

symbolic link to support test package paths

Edit

InternalSelfTest.properties

Run

Internal Self Tests

Testing Using SOAPUI


11/27/15
39

Linux

39

[jsanch07@sustd3540:~/nhin/linuxinstall]$sshglassfish@dnocc7201
glassfish@dnocc7201'spassword:
Lastlogin:WedNov414:49:432009fromsustd3540.gs.myharris.net
[glassfish@dnocc7201:~]$unzipNHIN_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.zip
SelfTest\InternalSelfTest\document.sql:mismatching"local"filename(SelfTest/InternalSelfTest/document.sql),
continuingwith"central"filenameversion
warning:NHIN_CONNECT_Release_2_2_A020_Demonstration_Scripts_Internal_Self_Test_UNIX_092709.zipappearstousebackslashesaspath
separators
inflating:SelfTest/InternalSelfTest/document.sql
SelfTest\InternalSelfTest\mpi.xml:mismatching"local"filename(SelfTest/InternalSelfTest/mpi.xml),
continuingwith"central"filenameversion
inflating:SelfTest/InternalSelfTest/mpi.xml
SelfTest\InternalSelfTest\mysqlconnectorjava5.0.8bin.jar:mismatching"local"filename(SelfTest/InternalSelfTest/mysqlconnectorjava
5.0.8bin.jar),
continuingwith"central"filenameversion
inflating:SelfTest/InternalSelfTest/mysqlconnectorjava5.0.8bin.jar
SelfTest\InternalSelfTest\reidentification.xml:mismatching"local"filename(SelfTest/InternalSelfTest/reidentification.xml),
continuingwith"central"filenameversion
inflating:SelfTest/InternalSelfTest/reidentification.xml
SelfTest\InternalSelfTest\InternalSelfTest.properties:mismatching"local"filename
(SelfTest/InternalSelfTest/InternalSelfTest.properties),
continuingwith"central"filenameversion
inflating:SelfTest/InternalSelfTest/InternalSelfTest.properties
SelfTest\InternalSelfTest\InternalSelfTestsoapuiproject.xml:mismatching"local"filename(SelfTest/InternalSelfTest/InternalSelfTest
soapuiproject.xml),
continuingwith"central"filenameversion
inflating:SelfTest/InternalSelfTest/InternalSelfTestsoapuiproject.xml
[glassfish@dnocc7201:~]$unzipconnectthirdpartytools/soapui2.5.1bin.zip
Archive:soapui2.5.1bin.zip
creating:soapui2.5.1/
creating:soapui2.5.1/bin/
...

Testing Using SOAPUI


11/27/15

Linux

40

...
inflating:soapui2.5.1/Tutorials/WSDLWADL/NewsSearchResponse.xsd
inflating:soapui2.5.1/Tutorials/WSDLWADL/sampleservice.wsdl
inflating:soapui2.5.1/Tutorials/WSDLWADL/YahooSearch.wadl
[glassfish@dnocc7201:~]$cpSelfTest/InternalSelfTest/mysqlconnectorjava5.0.8bin.jarsoapui2.5.1/bin/ext/
[glassfish@dnocc7201:~]$cpSelfTest/InternalSelfTest/mpi.xmlGlassFishESB/glassfish/domains/domain1/config/
[glassfish@dnocc7201:~]$cpSelfTest/InternalSelfTest/reidentification.xmlGlassFishESB/glassfish/domains/domain1/config/nhin/
[glassfish@dnocc7201:~]$mysqlurootpNHIEGateway
WelcometotheMySQLmonitor.Commandsendwith;or\g.
YourMySQLconnectionidis263
Serverversion:5.0.77Sourcedistribution

Type'help;'or'\h'forhelp.Type'\c'toclearthebuffer.

mysql>GRANTALLPRIVILEGESON*.*TO'nhincuser'@'localhost'IDENTIFIEDBY'nhincpass'WITHGRANTOPTION;
QueryOK,0rowsaffected(0.00sec)

mysql>GRANTALLPRIVILEGESON*.*TO'nhincuser'@'dnocc7201'IDENTIFIEDBY'nhincpass'WITHGRANTOPTION;
QueryOK,0rowsaffected(0.00sec)

mysql>FLUSHPRIVILEGES;
QueryOK,0rowsaffected(0.00sec)

mysql>exit
Bye

Testing Using SOAPUI


11/27/15

Linux

41

[glassfish@dnocc7201:~]$mysqlurootpNHIEGatewaydocrepository<SelfTest/InternalSelfTest/document.sql
[glassfish@dnocc7201:~]$lns/nhin\$HOME
[glassfish@dnocc7201:~]$perlpie's/<GatewayIP>/dnocc7201/;s/=1\.1\r?$/=DNOCC7201/'
SelfTest/InternalSelfTest/InternalSelfTest.properties
[glassfish@dnocc7201:~]$shsoapui2.5.1/bin/testrunner.shrSelfTest/InternalSelfTest/InternalSelfTestsoapuiproject.xml
================================
=
=SOAPUI_HOME=/nhin/soapui2.5.1
=
================================
soapUI2.5.1TestCaseRunner
15:28:12,824INFO[SoapUI]Added[file:/nhin/soapui2.5.1/bin/ext/mysqlconnectorjava5.0.8bin.jar]toclasspath
15:28:13,758INFO[DefaultSoapUICore]initializedsoapuisettingsfrom[/nhin/soapui2.5.1/soapuisettings.xml]
15:28:15,793INFO[WsdlProject]Loadedprojectfrom[file:/nhin/SelfTest/InternalSelfTest/InternalSelfTestsoapuiproject.xml]
15:28:18,116INFO[SoapUITestCaseRunner]RunningsoapUItestsinproject[InternalSelfTest]
...
15:29:49,170INFO[SoapUITestCaseRunner]FinishedrunningsoapUItestcase[Revoke],timetaken:12605ms,status:FINISHED
15:29:49,171INFO[SoapUITestCaseRunner]soapUIsuite[InternalSelfTestTestSuite]finishedin90952ms

SoapUI2.5.1TestCaseRunnerSummary

TimeTaken:91053ms
TotalTestSuites:1
TotalTestCases:9(0failed)
TotalTestSteps:59
TotalRequestAssertions:30
TotalFailedAssertions:0
TotalExportedResults:0
[glassfish@dnocc7201:~]$exit
logout
Connectiontodnocc7201closed.

Testing Using SOAPUI

11/27/15

Linux

42

Questions?
Thank you for joining.

11/27/15

Linux

43

You might also like