第二步:检查必需的特需程序 检查下述的LPP是否安装在OS/400 V5R2: Ø 5722SS1 OS/400 V5R2 Ø 5722JV1 (Option *BASE) IBM Developer Kit for Java Ø 5722JV1 (Option 5) Dev Toolkit for Java (Version 1.3), requires the *BASE option Ø 5722SS1 (Option 12) Host Servers Ø 5722SS1 (Option 30) QShell Interpreter Ø 5722SS1 (Option 33) Portable Application Solution Environment (PASE) Ø 5722DG1 IBM HTTP Server for iSeries Ø 5722TC1 TCP/IP Utilities Ø 5722SS1 Option 34 Digital Certificate Manager (Refer to WAS, using SSL) Ø 722AC3 Crypto Ø 5722ST1 DB2 Query Manager and SQL Development Kit for iSeries
第三步:安装Websphere Application Server(Base Edition) 如果已经在系统中安装,此步可以忽略。 1、用GO LICPGM命令选10: Ø 5733WS5 (Option *BASE) WebSphere Application Server V5.0 Ø 5733WS5 (Option 1) WAS V5.0 Client development and runtime Ø 5733WS5 (Option 2) WAS V5.0 Application server runtime 2、如果没有发现上述软件,则: 远程安装: u 在Windows本地PC中放入CD,标为WAS Base ”Disk 1-1”, 安装提示会自动运行。 u 用缺省设置 u 在安装中,根据提示插入第二张盘,标为WAS Base ”Disk 1-2”
iSeries本地安装: u 将WAS Base ”Disk 1-1”放入iSeries的光驱 u 在OS/400运行STRQSH,进入QSHELL u 进入Websphere目录 ² cd opt01 ² cd websphere u 运行SETUP u 期间,根据提示放入WAS Base ”Disk 1-2”盘
第四步:安装Websphere PTFs 1、如果Websphere Application Server Base以前已经安装,则用WRKPTFGRP检查下述PTF是否已经安装,如果是,则可以忽略下一步。 Ø SF99245 WebSphere (5733WS5) group PTF level 5 or later Ø SF99502 OS/400 Database group PTF, level 10 or later Ø SF99169 Java group PTF, level 15 or later Ø SF99098 IBM HTTP Server group PTF, level 12 or later
2、安装WAS Group PTFs Ø 将WAS Group PTF Disk1-4(或最新的SF99245)放入iSeries 光驱 Ø 在CL命令行,Go PTF Ø 选8 Ø 根据提示更换CD Ø IPL
3、安装单个PTF 产品 PTF 描述 5722SS1 SI08232SI08487 OSP-JVA_RUN NAWT Can't Connect to X11 Window ServerIBM Directory PTF (upgrade SecureWay Directory to V4.1) 5733WS5 SI09961 APPSVR Post 5.0.2 (NullPointerException from OS400Helper) 5722DG1 SI10192 WebSphere Portal Wizard
17、等待到向导的屏幕变成以下状态时,击Portal Server URL 来启动 Websphere Portal 实例。
其它材料
更多详细的安装及配置信息可参考:
Manual configure Portal 0. Configure TCP l IP:172.16.2.16 l Hostname: IBMGZ570.cn.ibm.com l Domain Name: cn.ibm.com 1. Create an extended WebSphere Application Server instance. l STRQSH l cd /QIBM/ProdData/WebAS5/PME/bin l ls -la *was* l versionInfo to view PME installed l (or)cd /QIBM/ProdData/WebAS5/PMEND/bin l crtwasinst -instance instance-name -portblock portblock -exthttp port l Example: crtwasinst -instance MyPortal -portblock 50051 -exthttp 90 l /QIBM/UserData/WebAS5/Base/MyPortal/properties/.instance.properties to view item:”instance.type=pme” l startServer –instance MyPortal l name:admin-port/admin (50061) l name:internal-http/snoop (50060) 2. Configure an external HTTP Server instance. l STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN) l name:2001 l hostname IBMGZ570 l http-server-name MyHTTPSvr l http-server-port 90 l name:http-server-port/ to check 3. Configure the application server instance to use an external HTTP server instance. l name:2001 l Click the Manage tab. l Click the HTTP Servers subtab. l In the Server drop-down list, select your HTTP server instance. l In the left navigation pane, click WebSphere Application Server as shown in l In the right panel, select the WebSphere Application Server, 5.0 (base) option. l the WebSphere instance drop-down list, select your application server instance. Click OK. l click Display Configuration File l These lines instruct the HTTP Server instance about the location of: The HTTP server plug-in configuration file, which is located under the WebSphere Application Server instance directory The WebSphere plug-in module, which is located in the WebSphere library l restart the HTTP server instance, l name:http-server-port/snoop to check 4. Extend the application server instance with portal functionality. l STRQSH l cd /QIBM/ProdData/PortalServer5/config l ls -Fla *.sh l addwpsinst.sh -instance instance-name l Example: addwpsinst.sh -instance MyPortal l check log file addwpsinst.log ConfigMessages.log ConfigTrace.log ConfigTrace1.log l check directory l /QIBM/UserData/WebAS5/Base/MyPortal/PortalServer5
5. Perform database planning. l Each schema must have a name. l Each schema must have a user profile which is the owner. l Names used to set the parameters ParameterName Value OurDbSchema MyPortDb OurDbUser MyPortID OurDbPassword MyPortPwd OurPortalAdminId PortalAdminID OurPortalAdminPassword PortalAdminPwd l Database profiles properties Property Value DbUser MyPortID DbPassword MyPortPwd WpcpDbUser MyPortID WpcpDbPassword MyPortPwd FeedbackDbUser MyPortID FeedbackDbPassword MyPortPwd WmmDbUser MyPortID WmmDbPassword MyPortPwd l Database schemas properties Property Value WpsDbName *LOCAL/MyPortDb WpsDbSchema MyPortDb DbUrl jdbc:db2:*LOCAL/MyPortDb WmmDbName *LOCAL/MyPortDb WmmDbSchema MyPortDb WmmDbUrl jdbc:db2:*LOCAL/MyPortDb WpcpDbName *LOCAL/MyPortDb WpcpDbSchema MyPortDb WpcpDbUrl jdbc:db2:*LOCAL/MyPortDb FeedbackDbName *LOCAL/MyPortDb FeedbackSchema MyPortDb FeedbackDbUrl jdbc:db2:*LOCAL/MyPortDb PznDbName *LOCAL/MyPortDb PznSchema MyPortDb PznDbUrl jdbc:db2:*LOCAL/MyPortDb BrbDbName *LOCAL/MyPortDb BrbSchema MyPortDb BrbDbUrl jdbc:db2:*LOCAL/MyPortDb l Portal administration profile properties Property Value PortalAdminIdShort PortalAdminID PortalAdminId uid=PortalAdminID,o=default organization PortalAdminPwd PortalAdminPwd
6*. Prepare the properties file. l STRQSH l cd /QIBM/UserData/WebAS5/Base/MyPortal/PortalServer5/config/helpers l Create the helper properties files:touch -C 819 myportal_helper.properties l exit Qshell l EDTF ('/QIBM/UserData/WebAS5/Base/MyPortal/PortalServer5/config/helpers/ l myportal_helper.properties’) like following DbUser=MyPortID DbPassword=MyPortPwd WpcpDbUser=MyPortID WpcpDbPassword=MyPortPwd FeedbackDbUser=MyPortID FeedbackDbPassword=MyPortPwd WmmDbUser=MyPortID WmmDbPassword=MyPortPwd WpsDbName=*LOCAL/MyPortDb WpsDbSchema=MyPortDb DbUrl=jdbc:db2:*LOCAL/MyPortDb WmmDbName=*LOCAL/MyPortDb WmmDbSchema=MyPortDb WmmDbUrl=jdbc:db2:*LOCAL/MyPortDb WpcpDbName=*LOCAL/MyPortDb WpcpDbSchema=MyPortDb WpcpDbUrl=jdbc:db2:*LOCAL/MyPortDb FeedbackDbName=*LOCAL/MyPortDb FeedbackSchema=MyPortDb FeedbackDbUrl=jdbc:db2:*LOCAL/MyPortDb PznDbName=*LOCAL/MyPortDb PznSchema=MyPortDb PznDbUrl=jdbc:db2:*LOCAL/MyPortDb BrbDbName=*LOCAL/MyPortDb BrbSchema=MyPortDb BrbDbUrl=jdbc:db2:*LOCAL/MyPortDb PortalAdminIdShort=PortalAdminID PortalAdminId=uid=PortalAdminID,o=default organization PortalAdminPwd=PortalAdminPwd l Press F3 to save the edited helper file. l STRQSH l cd /QIBM/UserData/WebAS5/Base/MyPortal/PortalServer5/config l Run the following command to propagate the properties from the helper file to the main properties file: l WPSconfig.sh -DparentProperties=config/helpers/myportal_helper.properties-DSaveParentProperties=true l 6**. Create Schema. l EDTF /qibm/userdata/webas5/base//portalserver5/config/wpconfig.properties' Value Description Example DbUser The database administrator user ID. DbUser=MYNAME DbPassword The database administrator password. DbPassword=abc123 WpcpDbUser The WPCP schema user ID. WpcpDbUser=MYNAME WpcpDbPassword The WPCP schema user password. WpcpDbUser=abc123 FeedbackDbUser The Feedback schema user ID. FeedbackDbUser=MYNAME FeedbackDbPassword The Feedback schema user password. FeedbackDbPassword=abc123 WmmDbUser The WMM schema user ID. WmmDbUser=MYNAME WmmDbPassword The WMM schema user password. WmmDbPassword=abc123 PortalAdminIdShort The Portal administrator user ID. PortalAdminIdShort=MYADMIN PortalAdminId The Portal administrator user ID. PoralAdminId=uid=MYADMIN, o=default organization PortalAdminPwd The Portal administrator user password. PortalAdminPwd=xyz123 l Do not move the *local Value Description Example WpsDbName The name of the WebSphere Portal database.Note: This value should also appear as the database element in DbUrl. WpsDbName=*LOCAL/WPS WpsDbSchema The WebSphere Portal database schema name. WpsDbSchema=WPS DbUrl The database URL. DbUrl=jdbc:db2:*LOCAL/WPS WmmDbName WmmDbName: The name of the WebSphere Portal database.Note: This value should also appear as the database element in WmmDbUrl. WmmDbName=*LOCAL/WMM WmmDbSchema The WMM database schema name WmmDbSchema=WMM WmmDbUrl WmmDbUrl: The database URL.Note: The database element of this value should match the value of WmmDbName. WmmDbUrl=jdbc:db2:*LOCAL/WMM WpcpDbName The name of the WPCP database. WpcpDbName=*Local/WPC WpcpDbSchema The WPCP database schema name. WpcpDbSchema=WPC WpcpDbUrl The WPCP database URL. WpcpDbUrl=jdbc:db2:*Local/WPC FeedbackDbName The name of the Feeback database. FeedbackDbName=*LOCAL/QWPS50 FeedbackSchema The Feeback database schema name. FeedbackSchema=QWPS50 FeedbackDbUrl The Feedback database URL. FeedbackDbUrl=jdbc:db2:*LOCAL/QWPS50 PznDbName The name of the PZN database. PznDbName=*LOCAL/QWPS50 PznSchema The PZN database schema name. PznSchema=QWPS50 PznDbUrl The PZN database URL. PznDbUrl=jdbc:db2:*LOCAL/QWPS50 BrbDbName The name of the BRB database. BrbDbName=*LOCAL/QWPS50 BrbSchema The BRB database schaema name. BrbSchema=QWPS50 BrbDbUrl The BRB database URL. BrbDbUrl=jdbc:db2:*LOCAL/QWPS50 l
7. Create the OS/400 user profile. l Example: CRTUSRPRF USRPRF(MyPortID) PASSWORD(MyPortPwd) TEXT('MyPortal database owner') 8 configure portal l strqsh l cd /qibm/userdata/webas5/base//portalserver5/config l wpsconfig.sh create-all-db l check instance, if not active then start MyPortal l cd /qibm/userdata/webas5/base//portalserver5/config l WPSconfig.sh basic-config 8* Verifying the connection with WebSphere Application Server l qsh cmd('/QIBM/ProdData/WebAS5/PME/bin/dspwasinst -instance ' l l Click Resources JDBC Providers wps50JDBC l Test Connection l cd /qibm/userdata/webas5/base//portalserver5/config l wpsconfig.sh validate-database-connection- -DDbPassword= l *WPSconfig.sh -DPortalAdminPwd= validate-wps-admin-login 8 Deploy portlet
l cd /qibm/userdata/webas5/base//portalserver5/config l installportlets.sh l example: installportlets.sh wpsadmin mypassword hostname.yourco.com 50060 l WpsHostPort property in the /QIBM/UserData/WebAS5/Base//PortalServer5/config/wpconfig.properties file.