Applying the patches in liferay


We are using EE version of liferay and we found a bug and reported to liferay. They have given patch to solve this issue. This patch will be ZIP file.

Copy the ZIP file and paste in patches folder of  this location  "<liferay-tomcat>/tomcat/patching-tool/patches".

Sometimes our patching tool will contain the lower version comapared to provided version. So we need to upgrade to latest version.

version number can know by using the following command as

In Linux
./patching-tool.sh info

In Windows
patching-tool info

After executing this command look into the line of  patching-version in the  output console.

Note : All of these commands should be execute from the "<liferay-tomcat>/tomcat/patching-tool".

In Order to install the patch execute the following command

In Linux
./patching-tool.sh install

In Windows
patching-tool install

After applying the patch we can see the console installation completed successfully.

Sometimes your installed patch may contain collision, to list out the collisions use

In Linux
./patching-tool.sh list-collisions

In Windows
patching-tool list-collisions


Also sometimes it is required to update the plugins, so use

In Linux
./patching-tool.sh update-plugins

In Windows
patching-tool update-plugins


Thats it now we have applied the patch.

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate