Thursday, October 14, 2010

Specify liferay.home or else

First time it happens to me perhaps because I had used Debian in production before but at least in a fresh Red Hat Enterprise 5 I was getting the below error



java.lang.ArrayIndexOutOfBoundsException: 0
 com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:232) 


This was solved as suggested in Liferay Forums

Add the below line in portal-ext.properties (change the path according to your specifics) then restart Liferay:

liferay.home=/opt/liferay-portal-5.2.3 

No comments:

Followers