11 November, 2013

Tips to Migrate from Liferay 6.0.x to Liferay 6.1

Following are the important tips to Migrate from Liferay 6.0.x to Liferay 6.1:

Unzip Liferay 6.1 bundle

Copy complete data folder as is from Liferay 6.0.x bundle to Liferay 6.1 bundle

Take backup of your the database that Liferay 6.0.x points to

Drop portal-ext.properties from Liferay 6.0.x to Liferay 6.1 (in ROOT/WEB-INF/classes ofcourse). Essentially you are pointing your new Liferay 6.1 to old database

Start Liferay 6.1 and it will automatically detect that it needs to upgrade the database and will run the upgrade scripts. In case there is any exception, you will have to restore the backup of old database and start all over again. Usually the exception is because of missing resource in data folder that the entry in database refers to.

If all goes well then your Liferay 6.1 will start successfully with old database upgraded.

Check whether you get all your Users and Organizations under “Users & Organizations” in control panel. If not then run – Control Panel >> Server Administration >> Re-Index all Search Indexes

Struts Portlet in Plugin Project:

If you have struts portlet in plugin project, on Liferay 6.1, it will throw InvokeFilter Exception and will result in StackOver Flow.

Make an entry in liferay-plugin-packages.properties file : liferay-web-xml-enabled=false

Be careful while rebuilding the existing services generated using ServiceBuilder. Delete all rows from servicecomponent table and reset the service builder number to 0 and then build services. Liferay keeps a backup of database tables associated with entitties in the service and will rewrite the contents of some of the tables. If you do not want your tables to be overwritten then set build.auto.upgrade=false in service.properties file in src folder of your plugin project

Talk to an EPM Expert

Tell us a bit about your needs and our team will reach out to discuss how we can help.

  • EPM-focused consulting team
  • Experience with U.S. enterprises
  • Expertise across leading EPM platforms
  • Confidential & secure
Trusted by enterprises across indusries
Let's Get In Touch