Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Charu Babbar
How to Apply Patch in Liferay
July 11, 2012 4:06 AM
Answer

Charu Babbar

Rank: Regular Member

Posts: 167

Join Date: September 13, 2011

Recent Posts

Hello,

How to apply patch in Bundled Tomcat in Liferay. Please tell me the whole steps....


Thanks

With Regards
Charu Babbar
Juan Gonzalez
RE: How to Apply Patch in Liferay
July 11, 2012 6:57 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1935

Join Date: October 28, 2008

Recent Posts

You'd have to download Liferay sources, patch it, and compile. Read the Wiki/Guide or search for compiling sources.
mohammad azaruddin
RE: How to Apply Patch in Liferay
June 20, 2013 9:51 AM
Answer

mohammad azaruddin

Rank: Expert

Posts: 443

Join Date: September 17, 2012

Recent Posts

hi Charu Babbar

I think ur already applied patch..so can u please explain the steps...emoticon
Puneet Malode
RE: How to Apply Patch in Liferay
April 30, 2014 1:46 AM
Answer

Puneet Malode

Rank: New Member

Posts: 9

Join Date: July 20, 2012

Recent Posts

Sorry for replying to old post, but it may help others who may face this issue.

Please find the below steps to apply patches to Liferay CE versions. I applied the patch for LPS 29365 using same steps.

1. Get the patch file, which gives you difference in new and old java file
2. Create a new java project with LPS number. I created java projected with “LiferayLPS29365”
3. Add all the jars from “\tomcat-7.0.27\webapps\ROOT\WEB-INF\lib” as dependencies to that project.
4. Identify which java file need to change from the Liferay source code.
5. Create same package and add the java file to your java project.
6. Now change the Java file according to the given patch.
7. Now clean and compile your project to generate “.class” file.
8. Copy entire package and .class file from bin folder to “\tomcat-7.0.27\webapps\ROOT\WEB-INF\classes” folder.
9. Restart the Server. Your patch is applied.
Attachments: LiferayLPS29365.zip (12.7k)
mohammad azaruddin
RE: How to Apply Patch in Liferay
April 30, 2014 2:06 AM
Answer

mohammad azaruddin

Rank: Expert

Posts: 443

Join Date: September 17, 2012

Recent Posts

emoticon thanks
Sagar A Vyas
RE: How to Apply Patch in Liferay
April 30, 2014 11:48 PM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 655

Join Date: April 17, 2009

Recent Posts

Following blog may help you guys.

How to apply patch in Lifeary

HTH.

Thanks,
Sagar Vyas
Puneet Malode
RE: How to Apply Patch in Liferay
May 5, 2014 9:57 PM
Answer

Puneet Malode

Rank: New Member

Posts: 9

Join Date: July 20, 2012

Recent Posts

Hi Sagar,
Thanks for providing good blog. But Liferay Patching tool is available only for Liferay EE, not for CE. The above steps are explain how to apply patches for Liferay CE.

Please go through the below forum discussion :
patching-tool, and removing installed zip files from the patches folder?