Wednesday, November 26, 2014

Updating web.xml for WebSphere Portal

I just found out that starting WebSphere Portal 8, if we need to update web.xml of wps.ear, it is not sufficient to just update web.xml. We also need to update web_merged.xml. The following is the source of information

https://www.ibm.com/developerworks/community/blogs/PortalL2Thoughts/entry/how_to_update_and_redeploy_wps_ear12?lang=en


Friday, November 7, 2014

Deploying theme's static file from one server to the other server

1. Use your browser to get the static files:
http://<firstServer>:<portNumber>/wps/mycontenthandler/dav/themelist/<themename>?mime-type=application/zip

2. Save the zip file and copy the file into the second server

3. In the second server go to /apps/IBM/WebSphere/wp_profile/ConfigEngine

4. Run:
./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:themelist/<themename/ -DZipFilePath=<path to the zip file> -DUpdateMode=merge -DPortalAdminPwd=<portal admin password> -DWasPassword=<was admin password>

Saturday, October 11, 2014

Installing Business Process Manager Advanced - Process Server

I spent most of Saturday today to try install IBM Business Process Manager Advanced: Process Server. I try to follow the document in IBM Knowledge Center in this address:

http://www-01.ibm.com/support/knowledgecenter/SSFTN5_8.5.5/com.ibm.wbpm.imuc.ebpmps.doc/topics/inst_lin_db2.html

However, it is not straight forward. Here are the issues:
1. In the documentation "Creating DB2 Databases" (http://www-01.ibm.com/support/knowledgecenter/SSFTN5_8.5.5/com.ibm.wbpm.imuc.ebpmps.doc/topics/db_typ_nd_lin_db2.html), it says that we can create database using "createDatabase.sql" file located in "BPM_HOME/BPM/dbscripts/DB2/", however since I have not install completely, that folder and file does not exist. I ended up to create the databases manually using this command:


create database @DB_NAME@ automatic storage yes  using codeset UTF-8 territory US pagesize 32768;
connect to @DB_NAME@;
-- A user temporary tablespace is required to support stored procedures in BPM
create user temporary tablespace usrtmpspc1;
grant dbadm on database to user @DB_USER@;
UPDATE DB CFG FOR @DB_NAME@ USING LOGFILSIZ 16384 DEFERRED;
UPDATE DB CFG FOR @DB_NAME@ USING LOGSECOND 64 DEFERRED;
connect reset;

Note: this is only needed because I want to use existing remote database server.

2. Launchpad will automatically install Installation Manager by default if the installation manager has not been installed in the system. However, it will use default location in /var. However, in my system the /var is small and launchpad requires 3GB minimum. I ended up have to install installation manager prior to running ./launchpad.sh. In addition to that even my system is 64 bit, I need to install 32-bit installation manager.


3. The other thing, do not automatically updates with the latest fixes. The reason is the code will automatically update all fixes including the fixes for 32-bit (note: my system is 64-bit).

Once the above obstacles have been resolved, the installation program start running.