Installing : Installing Focal Point : Setting up the application server : Setting up and starting WebSphere Application Server : Deploying Focal Point on WebSphere Application Server using Python scripts
  
Deploying Focal Point on WebSphere Application Server using Python scripts
After you set up IBM WebSphere Application Server, you can use the Python scripts to automate the steps to deploy the Focal Point® application, the financial capability feature, the Jazz feature, and the help system.
Before you begin
Make sure that Deploying Focal Point on WebSphere Application Server using Python scripts is installed on the system where the WebSphere Application Server is installed.
About this task
The scripts can be used to reduce manual intervention, possibility of errors, and the time taken to deploy the Deploying Focal Point on WebSphere Application Server using Python scripts war files on WebSphere Application Server.
Tips
As directory names with spaces are supported only on Windows, while executing the script, if the input parameter is a directory name with space, replace the directory name with its short name. For example, the short name of the Program Files directory could be Progra~1.
Use the dir/x command to find the short name of a directory. For example, if Program Files is a directory on the C:\ drive, open the command prompt, navigate to the C:\ directory, and then type: dir/x.
The short names are listed adjacent to the directory name.
Use forward slash as the file separator for input parameters, while executing the script.
Procedure
1 Extract the scripts.
Note This step is not applicable if you are using Focal Point® 6.6.1 and later; in those versions, the deployment scripts are in the Focal Point install directory\server\was\fp folder.
Access the documentation Deploying on Websphere Application Server for the scripts that automate the deployment process. fpjythonscripts.zip is at the bottom of the page.
Download fpjythonscripts.zip to the system where the WebSphere Application Server is installed.
Extract the scripts:
fp_was_config.py to configure the JVM parameter.
fp_undeploy.py to uninstall any previously installed Deploying Focal Point on WebSphere Application Server using Python scripts war files.
fp_deploy.py to install the Deploying Focal Point on WebSphere Application Server using Python scripts war files.
2 Modify soap.client.props file:
Stop the WebSphere Application Server.
Go to WAS install directory/profiles/Server/properties folder.
Open soap.client.props file.
Note the value of com.ibm.SOAP.requestTimeout, and then change it to 0.
Save the soap.client.props file.
Restart the WebSphere Application Server.
3 Execute fp_was_config.py:
Open the command prompt or terminal, and go to WAS install directory/profiles/Server/bin folder.
Execute the command:
wsadmin -language jython -user username -password password -f path to fp_was_config.py path to conf directory
Windows example:
wsadmin -language jython -user admin -password focalpoint -f C:/fpjythonscripts/fp_was_config.py C:/JazzTeamServer/server/conf
Linux example:
./wsadmin.sh -language jython -user admin -password focalpoint -f /opt/fpjythonscripts/fp_was_config.py /opt/JazzTeamServer/server/conf
4 Execute fp_undeploy.py:
This step is applicable only if you have already installed any of the Focal Point® war files.
At the command prompt or terminal, go to the WAS install directory/profiles/Server/bin folder.
Execute this command:
wsadmin -language jython -user username -password password -f path to fp_undeploy.py
Windows example:
wsadmin -language jython -user admin -password focalpoint -f C:/fpjythonscripts/fp_undeploy.py
Linux example:
./wsadmin.sh -language jython -user admin -password focalpoint -f /opt/fpjythonscripts/fp_undeploy.py
5 Execute fp_deploy.py:
At the command prompt or terminal, go to the WAS install directory/profiles/Server/bin folder.
Execute this command:
wsadmin -javaoption -Xms4096m -javaoption -Xmx4096m -language jython -user username -password password -f path to fp_deploy.py nodename servername path to the war files
Windows example:
wsadmin -javaoption -Xms4096m -javaoption -Xmx4096m -language jython -user admin -password focalpoint -f C:/fpjythonscripts/fp_deploy.py IBM-H2C794T5595Node01 server1 C:/JazzTeamServer/server/webapps/
Linux example:
./wsadmin.sh -javaoption -Xms4096m -javaoption -Xmx4096m -language jython -user admin -password focalpoint -f /opt/fpjythonscripts/fp_deploy.py IBM-H2C794T5595Node01 server1 /opt/JazzTeamServer/server/webapps/
6 Manually configure the heap size by updating the JVM arguments on the WebSphere Integrated Solutions Console:
Click Servers > Server Types > WebSphere Application Servers.
Select the application server you want to configure.
In the Server Infrastructure section, click Java and Process Management > Process definition.
In the Additional Properties area, click Java Virtual Machine.
In the Initial Heap and Maximum Heap Size fields, specify the amount of dynamic memory to be made available to the JVM. For example: The systems with 8 GB free memory, can have the initial heap size of 4096 MB and maximum heap size can be 4096 MB.
7 Reset the value of com.ibm.SOAP.requestTimeout:
Stop the WebSphere Application Server.
Go to WAS install directory/profiles/Server/properties folder.
Open soap.client.props file.
Change the value of com.ibm.SOAP.requestTimeout to the original value.
Save the soap.client.props file.
Restart the WebSphere Application Server.
Results
The Focal Point® war files are deployed. Open the WebSphere Application Server administrator console to verify that the war files are deployed.
What to do next
After deploying the war files, you need to manually configure the heap size: see Setting up WebSphere Application Server.
See also
Deploying the Focal Point application
Setting up and starting WebSphere Application Server