Thursday, December 13, 2012

How to replace Saxon library home edition in WSO2 BPS 3.0.0 with Saxon professional or enterprise edition to obtain more functionality

Due to license restrictions, we ship saxon home edition in wso2 bps. Saxon is used as the xpath runtime for bps. However due to restrictions in saxon home edition, some functionality such as custom xpath extensions would not work out of the box for bps. However, this functionality can be obtained very easily by replacing saxon home edition jar with the saxon professional edition jar.

Following are the steps to do it.

Step 1.

Unzip wso2bps-3.0.0.zip.
Step 2.
Remove saxon.he_9.4.0.wso2v1.jar from wso2bps-3.0.0/repository/components/plugins directory.
Step 3.
Download Saxon-EE package.
http://www.saxonica.com/download/SaxonEE9-4-0-6J.zip
Unzip and copy saxon9ee.jar to wso2bps-3.0.0/repository/components/lib directory.
Step 4.
Copy saxon-license.lic license to wso2bps-3.0.0 directory. ( Saxon license should be obtained from saxonica.com )
Step5.
Start the server.