Liferay CE 7.3 Upgrade to Liferay 7.4 ga132 Custom Portlet Issues

Hey Liferay Community.

I am stuck at a very critical point. I need to upgrade a portal from Liferay CE 7.3.6-ga63 to Liferay CE 7.4.3.132-ga132. But the issue is that I don’t have access to the Custom Portlets currently deployed in the portal. Due to some issues, my team has lost all the custom portlets’ code. They are currently deployed as JAR files, but no source code is available to us. What should I do in this scenario?

Scenario A: Should I continue with the DB upgrade, and if the custom portlets cause any issues, I should check the functionality and re-develop from scratch?

Scenario B: Completely revamp the whole portal, but that will take months or maybe even a year.

Or something else?

Please reply to this as soon as somebody can because this is of high importance to me and my team right now.

Regards,

2 Answers

2

Hi Team,

Based on the current situation, since the source code for the custom portlets is not available, you can begin by extracting the deployed JAR files. By unzipping or decompiling them, you should be able to retrieve JSPs, portlet classes, Java classes, and properties files.

Using these recovered artifacts, you can reconstruct the modules and create new Liferay modules from the extracted code.

Once the modules are recreated, upgrade them to be compatible with Liferay CE 7.4.3 GA132 and then attempt deployment. In parallel, you may also try deploying the existing JARs as-is in a 7.4 environment to evaluate compatibility and identify any immediate failures.

Additionally, perform the database upgrade separately using the Liferay Upgrade Tool and validate that the core platform is functioning correctly without the custom modules.

I hope this helps.

Thanks,
Koustuv

Thank You So Much! Once I am done with the upgrade, I will implement this approach.