Category Archives: Liferay 6.1

Liferay 6 Certification Preparation Tips

      No Comments on Liferay 6 Certification Preparation Tips

How to prepare There is no shortcut. Don’t rely on any sample questions online(including this post) completely. Best way to prepare is to practice tutorial here . Even the experienced developers should try to go through the tutorial, try to create portlets, hooks and learn the concepts by doing things. One… Read more »

Default profile ( for Patching Liferay on Jboss

You can always use patching tool’s auto-discovery option to generate a profile. In case you are not able to use that following are the sample settings for JBoss. Just create under patching-tool directory patching.mode=binary war.path=C:/jboss-eap-6.4/standalone/deployments/ROOT.war/ global.lib.path=C:/jboss-eap-6.4/modules/com/liferay/portal/main/ Key properties to remember are war.path which should point to your ROOT.war directory… Read more »

Multiple files upload in Liferay 6.1

      No Comments on Multiple files upload in Liferay 6.1

Today I have found a weird bug in Liferay’s UploadServletRequestImpl in the following method public String getFullFileName(String name) { FileItem[] liferayFileItems = _fileParams.get(name); if ((liferayFileItems != null) && (liferayFileItems.length > 0)) { FileItem liferayFileItem = liferayFileItems[0]; return liferayFileItem.getFullFileName(); } return null; }   The intention of the above code is to return… Read more »

JournalVmUtil in Liferay 6.1

      No Comments on JournalVmUtil in Liferay 6.1

Disclaimer – Following is not the best or optimal solution. If you have better suggestion please write in comments JournalVmUtil was present upto Liferay 5.2 and then deprecated in Liferay 6.0 and then completed removed in Liferay 6.1. If you are upgrading to 6.1 and make extensive use of JournalVmUtil… Read more »

No theme found for specified theme id abc_WAR_xyztheme

As far as my experience is concerned, this error means that your database is referring to theme which is not present. To make sure run the following commands select distinct themeid from layout; select distinct themeid from layoutset; Now go to liferay’s Control Panel -> Plugin Configuration -> Theme Plugins… Read more »