Table of Contents Create WebLogic Cluster application... 2 Prerequisites... 2 From Application director import-export service... 2 Deploy the WebLogic Server 12c Cluster application... 5 Method - 1: From the application director instance... 5 Method - 2: From Application director import-export service... 14 Launch the Application... 15 Appendix -1... 23 1.1 Parameters of ASWeblogic... 23 1.2 Parameters of MSWeblogic... 23 1.3 Parameters of Common script... 24 1.4 Parameters of AdminServerSetup... 26 1.5 Parameters of ManagedServerSetup... 28 1.6 Parameters of PackDomain... 30 1.7 Parameters of UnpackDomain... 31 1.8 Parameters of the StartMS... 31 1.9 (Optional) Parameters of Sample_App... 34 2.0 (Optional) Parameters of MySQL... 36 2.1 (Optional) Parameters of initialize_db_script... 36 2.2 (Optional) Parameters of Apache... 37 2.3 (Optional) Parameters of SetupWLClusterLB... 38
Create WebLogic Cluster application Prerequisites 1. Install and configure VMware vfabric Application Director with vcloud Director. See the product documentation for information about installing and configuring Application Director. From Application director import-export service 1. Go to the VMware Solution Exchange site. Search for the Clustered Oracle Weblogic Application Server 12c for Windows 2k8 R2. Then click on the Try button. This will open the following below page. 2. Type URL (http://app_dir_ip:8080) of the application director instance into which you want to create application as shown
3. Type the application director user name and password in the text boxes as shown 4. Click on the Import File button to create the application onto the application director instance.
5. Wait for the task to complete. 6. After successfully import, we will have the link to deploy the Weblogic_Clustered_w2k8r2 application.
Deploy the WebLogic Server 12c Cluster application Method - 1: From the application director instance 1. Login to the Application Director UI with the user which has the deployment rights 2. Then click on the Weblogic_Clustered_w2k8r2 Application in the Application List page.
3. Now click on the part circled with red color. 4. Set the following properties before deploying the application. 4.1. weblogic_installer property in ASWeblogic and MSWeblogic Service component. 4.2. wl_admin_password in common script component. 4.3. wl_managed_server_password in common script component. 4.4. wl_node_manager_password in common script component. 4.5. db_password in initialize_db_script script component. For example to set wl_admin_password in common script component, click on the common script component Then click on the Properties tab and browse for the wl_admin_password property click on it and set the value. NOTE: For more information about the default values of the properties please refer to the Appendix-1. 5. After setting all the above properties, Click on the Deploy icon on the Blueprint page.
NOTE: For the sample application, we need IP address, Port, Database Username and Database password of the database server. We can set or bind these properties as per our requirement. In this blueprint, MySQL is used as the database server. For the database other than MySQL, you need to change the db_driver property for the right driver name of the database server. For example, for Oracle database server db_driver name might change to oracle.jdbc.driver.oracledriver
6. It will bring up the deployment profile window. You can enter new Deployment Profile Name or choose from the existing Deployment Profile, if exists.
7. Type the deployment profile name and click Deploy 8. This will bring up the deploy wizard.
9. Click on the Map Details button 10. Select the appropriate Cloud template from the drop down list
11. Now select the appropriate Cloud Network Name from the drop down list. 12. Finally click on Next button to see the Application Properties wizard
13. Click next again to view the execution Plan. Again click Next to deploy the application 14. Click Deploy.
15. Wait for deployment details screen to come up. This will take a minute or so. At this time, the system is preparing to initiate the deployment.
16. Wait until the deployment status is reported as Deployment Success. Deployment takes around 30-40 minutes to complete. Method - 2: From Application director import-export service 1. Open the following import link.
2. Now click on the following image 3. Now follow the step 4-15 of Method -1: Deploy WebLogic Server 12c Cluster Application Launch the Application 1. Click on the VM Details Page to get the IPs of the machines. We will need these IPs to launch the application
2. Now access the sample application by typing the IP address of the apache server to see whether load balancer is implemented correctly or not 3. Now Login to the sample application, we can see the Account list, for example. We can success fully log off from the sample application. Username=200 Password=foobar123
4. To see the WebLogic cluster details, open WebLogic domain by accessing the admin server_ip:7001/console and login into the domain. Username=weblogic Password=value of the wl_admin_password property that you have set in step 4 of Method-1 of Deploy WebLogic Server 12c cluster application
5. We can see the cluster and the nodes of the clusters by clicking on the clusters link.
6. We can see the managed servers as well as the Admin Server name by clicking on the servers link. All the servers are in running state. 7. We can also see the deployed sample application by clicking on the Deployments link.
8. To see all the nodes into which the sample application has been deployed, click on the sample application name dukesbank then click on the Testing tab. Expand the /bank l ink. We can see the nodes.
9. We can also access the sample application by the IP address of the managed node.
10. Login to the sample application by the right credential 11. Click on the Account List link to see the list of accounts. 12. We can log off from the sample application.
Appendix -1 1.1 Parameters of ASWeblogic Parameter Description Default Value weblogic_installer URL of.exe installer of WebLogic server. Change it as per your httpd installer path. e.g. http://your_httpd_serverip/weblogic/wls12c.exe bea_home wl_home BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer c:\oracle\bea c:\oracle\bea\weblogi c java_home Java home of your jdk/jre. e.g.c:\java\jd6 C:\opt\vmware\jre- 1.6.0_31-win64 wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files C:\Oracle\BEA\tmp_file s 1.2 Parameters of MSWeblogic Parameter Description Default Value weblogic_installer URL of.exe installer of WebLogic server. Change it as per your httpd installer path. e.g. http://your_httpd_serverip/weblogic/wls12c.exe bea_home wl_home java_home wl_tmp_files_dir BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer Java home of your jdk/jre. e.g. c:\java\jd6 The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files c:\oracle\bea c:\oracle\bea\weblogi c C:\opt\vmware\jre- 1.6.0_31-win64 C:\Oracle\BEA\tmp_file s
1.3 Parameters of Common script bea_home Parameter Description Default Value BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea. We can bind this property to that of the ASWeblogic Service. self:asweblogic:bea_h ome wl_home WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer Bind this property to that of the AsWeblogic service. self:asweblogic:wl_home wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files. self:asweblogic: wl_tmp_files_dir Bind this property to that of the ASWeblogic service. wl_domain Name of the weblogic domain. e.g., mydomain. dukesbankdomain wl_cluster_name Name of the weblogic cluster. AppDirWebLogicCluster e.g., mycluster. wl_admin_server_name Name of the admin server for the weblogic domain. AdminServer e.g. AdminServer. wl_admin_server_addr Listen address for the Admin Server. self:ip wl_admin_server_port Bind this property to self:ip at deployment phase. Listen port for weblogic admin server. 7001 Default value is 7001. This must be an integer. wl_admin_user Change it as per your choice User name for the admin server. weblogic e.g., weblogic.
wl_admin_password Password for the admin server. weblogic123 e.g., weblogic123. wl_managed_server_user wl_managed_server_passw ord User name for the managed server. e.g., weblogic_ms. Change it as per your choice Password for the managed server. e.g., weblogic_ms123. Change it weblogic weblogic123 wl_managed_server_port as per your choice. Listen port for the managed server. 8080 For example, 8080 wl_managed_server_jvm_a rgs Used in starting Managed Servers. If for lightweight, if set an ear deployment cannot be done Pay attention to the java.library.path and make sure it is pointing to the nativelib directory for your target platform e.g - Djava.library.path=${wl_home}/server/native/win/ 32 -XX:+HeapDumpOnOut OfMemoryError - Xverify:none -Xms512m -Xmx512m - XX:MaxPermSize=350m -XX:ReservedCodeCache Size=64m - XX:+UseCodeCacheFlus hing -Dssl.debug=true - Dweblogic.nodemanag er.sslhostnameverifica tionenabled=false - Dweblogic.security.SSL. enforceconstraints=off wl_node_manager_addr wl_node_manager_user Address upon which the machine running node manager can listen for connection requests. Bind this property to self:ip at deployment phase. User name for the node manager. e.g., weblogic_nm. self:ip weblogic wl_node_manager_passwo rd Password for the node manager. e.g., weblogic_nm123. Change it weblogic123 as per your choice.
wl_node_manager_port wl_native_target The TCP Port number on which node manager listens for connection requests. Default node manager port is 5556. Change it as per your choice This is required for creating the machine. It represents the directory relative to the $WL_HOME directory where the native libraries are stored. e.g. win/32 This would translate into $WL_HOME/server/native/win/32 6666 win/32 1.4 Parameters of AdminServerSetup bea_home Parameter Description Default Value BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea Bind this property to that of the common script. self:common:bea_hom e wl_home WebLogic domain name. For example, mydomain. self:common:wl_home We can also bind this property to that of the common script. wl_tmp_files_dir The full path for the directory where temporary files will be saved. self:common: wl_tmp_files_dir e.g. C:\BEA\tmp_files. Change it as per your choice. wl_domain wl_cluster_name Name of the weblogic domain. e.g., mydomain. Name of the weblogic cluster. e.g. mycluster. self:common:wl_domai n self:common:wl_cluste r_name We can also bind this property to that of the common script.
wl_admin_server_name Name of the admin server for the weblogic domain. e.g. AdminServer. self:common: wl_admin_server_nam e We can also bind this property to that of the common script. wl_admin_server_addr wl_admin_server_port Listen address for the Admin Server. Listen port for weblogic admin server. Default port is 7001. It must be an integer. self:common: wl_admin_server_addr self:common: wl_admin_server_port We can also bind this property to that of the common script. wl_admin_user User name for the weblogic admin server. e.g. weblogic. self:common: wl_admin_user Bind this property to that of the common script. wl_admin_password Password for the weblogic admin server user. For example, weblogic123 self:common: wl_admin_password wl_managed_server_jvm_a rgs wl_node_manager_addr Bind this property to that of the common script. Java arguments used when starting the server. Bind this to that of the common script. Address upon which the machine running node manager can listen for connection requests. self:common: wl_managed_server_jv m_args self:common: wl_node_manager_add r wl_node_manager_user User name for the node manager. Change it as per your choice. self:common: wl_node_manager_use r For example, weblogic_nm. Bind this property to that of the common script.
wl_node_manager_passwo rd wl_node_manager_port Password for the node manager user. For example, weblogic_nm123. Bind this property to that of the common script. The TCP Port number on which node manager listens for connection requests. Default node manager port is 5556. self:common: wl_node_manager_passwo rd self:common: wl_node_manager_por t 1.5 Parameters of ManagedServerSetup bea_home Parameter Description Default Value BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea self:msweblogic:bea_h ome Bind this property to that of the MSWeblogic service. wl_home WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer self:msweblogic:wl_ho me Bind this property to that of the MSWeblogic service. wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files self:msweblogic: wl_tmp_files_dir Bind this property to that of the MSWeblogic service. wl_domain wl_cluster_name wl_admin_server_addr Name of the weblogic domain. Name of the weblogic cluster. Listen address for the Admin Server. Bind this property to that of the common script on the admin server template at deployment phase. wl_domain wl_cluster_name wl_admin_server_addr
wl_admin_server_port Listen port of the admin server. e.g 7001. wl_admin_server_port wl_admin_user wl_admin_password wl_managed_server_name User name of the weblogic admin server. Password for the admin server. Name for the managed Server to be created on the weblogic domain. e.g. managed_server1 or 192.134.123.4 where 192.134.123.4 is the ip of the machine. wl_admin_user wl_admin_password self:ip We can also bind this property to self:ip. wl_managed_server_addr wl_managed_server_user wl_managed_server_passw ord Listen address for the managed server. Bind this to self:ip. User name for the managed server. e.g. weblogic_ms Password for the managed server user. Fro example, weblogic_ms. Change it as per your choice or bind this property to that of the common script on the self:ip wl_managed_server_us er wl_managed_server_p assword wl_managed_server_port Listen port for the managed server. For example, 8080 wl_managed_server_p ort wl_managed_server_jvm_a rgs JAVA arguments used when starting the server. Change it as per the requirement or bind to that of the common script on the wl_managed_server_jv m_args
wl_node_manager_addr Address upon which the machine running node manager can listen for connection requests. Bind this property to self:ip at the deployment time. self:ip wl_node_manager_user User name for the node manager. For example, weblogic_nm. wl_node_manager_use r Change it as per your choice or bind this property to that of the common script on the wl_node_manager_passwo rd Password for the node manager user. e.g. weblogic_nm123. wl_node_manager_pas sword wl_node_manager_port The TCP Port number on which node manager listens for connection requests. Default node manager port is 5556. wl_node_manager_por t Or we can also bind this property to that of the common script on the wl_native_target Path that Java uses to find native libraries. set it to the directory that contains the DLL files wl_native_target For 32 bit jdk, set this to win/32 else win/x64 1.6 Parameters of PackDomain Parameter Description Default Value bea_home BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea. self:common:bea_hom e Bind this property to that of the common script. wl_home WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer self:common:wl_home Bind this property to that of the common script.
wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files. self:common: wl_domain Bind this property to that of the common script. Name of the weblogic domain. Bind this property to that of the common script. self:common:wl_domain 1.7 Parameters of UnpackDomain Parameter Description Default Value bea_home BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea. self:msweblogic:bea_h ome Bind this property to that of the MSWeblogic service. wl_home WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer. self:msweblogic:wl_ho me Bind this property to that of the MSWeblogic service. wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files. self:msweblogic: wl_tmp_files_dir Bind this property to that of the MSWeblogic service. wl_domain wl_admin_server_ad dr Name of the weblogic domain. admin server template. Listen address for the Admin Server. admin server template at deployment phase. wl_domain wl_admin_server_addr 1.8 Parameters of the StartMS bea_home Parameter Description Default Value BEA root directory. The full path for the Middleware home directory of your choice. For example: c:\bea Bind this property to that of the MSWeblogic service. self:msweblogic:bea_h ome
wl_home WebLogic root directory. The full path for the Directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer Bind this property to that of the MSWeblogic service. self:msweblogic:wl_ho me wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files self:msweblogic: wl_tmp_files_dir Bind this property to that of the MSWeblogic service. wl_domain wl_admin_server_name Name of the weblogic domain. Name of the admin server for the weblogic domain. e.g. AdminServer. Change it as per your choice or bind this property to that of the common script on the admin server template. wl_domain wl_admin_server_nam e wl_admin_server_addr Listen address for the Admin Server. wl_admin_server_addr wl_admin_server_port Listen port of the admin server. e.g 7001. wl_admin_port wl_admin_user wl_admin_password wl_managed_server_name User name of the weblogic admin server. Password for the admin server. Name for the managed Server to be created on the weblogic domain. e.g. managed_server1 or 192.134.123.4 where 192.134.123.4 is the ip of the machine. wl_admin_user wl_admin_password self:ip we can also bind this property to self:ip.
wl_managed_server_jvm_a rgs JAVA arguments used when starting the server. Change it as per the requirement or bind this property to that of the common script on the admin server template. wl_managed_server_jv m_args wl_node_manager_addr wl_node_manager_user Address upon which the machine running node manager can listen for connection requests. Bind this property to self:ip. User name for the node manager. For example, weblogic_nm. self:ip wl_node_manager_use r wl_node_manager_passwo rd Password for the node manager user. e.g. weblogic_nm123. wl_node_manager_pas sword wl_node_manager_port Listen port for the node manager, for example, 6666. wl_node_manager_por t wl_native_target path that Java uses to find native libraries.set it to the directory that contains the DLL files wl_native_target For 32 bit jdk, set this to win/32 else win/x64 We can also bind this property to that of the common script on the
1.9 (Optional) Parameters of Sample_App wl_home Parameter Description Default Value WebLogic root directory. The full path for the directory where you want to install WebLogic Server of your choice. For example, C:\BEA\WebLogicServer. self:common: wl_home wl_tmp_files_dir The full path for the directory where temporary files will be saved. e.g. C:\BEA\tmp_files. self:common: wl_tmp_files_dir wl_domain admin server template. Weblogic domain name. self:common:wl_domai n wl_cluster_name Name of the weblogic cluster. e.g. mycluster. self:common:wl_cluste r_name We can bind this property to that of the common script on the wl_admin_server_addr wl_admin_server_port Listen address for the Admin Server. Bind this property to that of the common script on the admin server template at deployment phase. Listen port for weblogic admin server. admin server template at the deployment time. self:common:wl_admin _server_addr self:common:wl_admin _server_port wl_admin_user User name for the weblogic admin server. e.g. weblogic. self:common:wl_admin _user wl_admin_password Password for the weblogic admin server user. For example, weblogic123 self:common:wl_admin _password Bind this property to that of the common scipt on the
db_host db_username Host name of the database server. It can be hostname or IP address of the database server. Bind this to the ip of the database template. User name for the database created on the database server. e.g., myuser. Database:ip Database:initialize_db_ script:db_username Change it accordingly. Bind this property to that of the initialize_db_script on the database template. db_password Password for the database user. e.g. vmware123 Database:initialize_db_ script:db_password we can also bind this property to that of the database template. db_name Name of the database which is already created on the database server like MySQL. e.g., mydatabase. Database:initialize_db_ script:sample_db Bind this property to sample_db property of the initialize_db_script script of the database template. db_port Port for the database. Default is 3306. Database:MySQL:db_p ort Change it accordingly or we can bind this property to that of the database template. db_proto The WL global transaction protocol to use. OnePhaseCommit db_test_table Change it as per the requirement. This is the table a test is done against to validate the data source. In this example we have DUAL so WL will magically call select count(*) from DUAL. I'm sure there is some way to change this mystical behavior. DUAL
db_driver Diver for the database connection. Used to connect with the MySQL database. e.g., com.mysql.jdbc.driver com.mysql.jdbc.driver. Change it accordingly for other database server. ds_name Data source name to be created on the weblogic domain. For example, mydatasource. dukesbankds dukesbank_ear URL to download the weblogic version of the dukesbank ear. http://${darwin.conten t.server.ip}/artifacts/ap p- components/dukesbank/du kesbank-wl12c.ear 2.0 (Optional) Parameters of MySQL global_conf Parameter Description Default Value URL to download the Darwin global configuration file. db_port Database port 3306 https://${darwin.server.ip}:8443/darwin/conf/ darwin_global.conf db_root_password Database root password mysql@123 db_root_username Database root user name root 2.1 (Optional) Parameters of initialize_db_script Parameter Description Default Value initialize_db_script SQL file which contains database information. http://${darwin.conten t.server.ip}/artifacts/ap p- components/dukesban k/create_bank_db.sql db_username db_password Username for the database to be created on the database server. Change it accordingly. Password for the database to be created on the database server. Change it accordingly. dukes_admin Dukes_admin
sample_db init_db_username Name of the database which will be created on the database server like MySQL, for the sample application. e.g., mydatabase. Root User name of the database server. Bind this property to the db_rot_username property of the database template. dukes_db self:mysql:db_root_us ername init_db_password Password for the database root user. e.g. vmware123 Change it as per your requirement. We can also bind this property to that of the database template self:mysql:db_root_pa ssword 2.2 (Optional) Parameters of Apache global_conf Parameter Description Default Value URL to download the Darwin global configuration file. http_node_port HTTP port number to proxy to 8080 https://${darwin.server.ip}:8443/darwin/conf/ darwin_global.conf autogen_sticky_cookie Set to YES when load balancing non-java app servers NO http_proxy_port HTTP proxy port number. 8081 http_node_ips Array of ips to proxy. Set to ["None"] to disable proxy. ["None"] httpd_dir Read-only path to apache base dir. /etc/httpd http_port appsrv_routes service_restart service_start service_stop tomcat_context ajp_proxy_context config_httpd_conf HTTP port number to serve static content. Leave blank to disable this feature. Application server route configuration to apply sticky sessions. Read-only command string for other services to see how to restart apache. Read-only command string for other services to see how to start apache. Read-only command string for other services to see how to stop apache. Optional property of the WAR context to proxy to using ajp on Tomcat. Optional property to set which URL context to proxy to Tomat using ajp. Read-only command string for other services to see how to stop apache. 80 ["None"] service httpd restart service httpd start service httpd stop /etc/httpd/conf/httpd. conf config_conf_d Read-only path to apache configuration dir. /etc/httpd/conf.d config_static_site Read-only path to static site directory. /var/www/html
use_ajp Enable this when configuring proxy to Tomcat instance that is using AJP. Set to YES or NO. NO 2.3 (Optional) Parameters of SetupWLClusterLB global_conf Parameter Description Default Value URL to download the Darwin global configuration file. https://${darwin.server.ip}:8443/darwin/conf/ darwin_global.conf mod_wl_so_name A name assigned to the mod_wl plugin when placed in Apache's module directory. mod_wl.so wl_default_fn The Default File Name set in the Location associated with the weblogic-handler. For example, /sampleapp. /bank Change it as per your requirement. wl_managed_server_port config_httpd_conf httpd_dir mod_wl_so Listen port for the managed server. Bind this property to that of the admin server template Read-only path for apache httpd conf file. Bind this property to that of the apache template. Read-only path to apache base dir. Bind this property to that of the apache server template. This is the mod_wl.so plugin that due to licensing restrictions cannot be bundled. It can be downloaded here: http://www.oracle.com/technetwork/middleware/i as/downloads/wls-plugins-096117.html wl_managed_server_p ort self:apache:config_http d_conf self:apache:httpd_dir http://${darwin.conten t.server.ip}/artifacts/se rvices/weblogic/mod_ wl.so wl_lb_path This is the path that will go in Apache's Location directive. This is associated with mod_wl so to route requests to the cluster / e.g. http://somehost/weblogic/someapp time being setting this and wl_default_fn so everything goes through to the dukesbank
wl_cluster_nodes Array of IP of the nodes that are part of the weblogic cluster. all(managedserverclust er:ip) Bind this property as all(managedserver_template:ip).