组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
Nedim Azapagić
Problem initializing default company based on web id, JBoss on AIX
2013年2月1日 上午8:38
答复

Nedim Azapagić

等级: New Member

帖子: 4

加入日期: 2013年2月1日

最近的帖子

Hello,

we are trying to run Liferay 6.1.1 bundled with JBoss on AIX, and IBM JDK 6.0 (same configuration works on Windows).

There is problem on startup, ArrayIndexOutOfBoundsException in com.liferay.portal.util.PortalInstances._getDefaultCompanyId

22:14:19,675 INFO (MSC service thread 1-3) java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
22:14:19,676 INFO (MSC service thread 1-3) at com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:317)
22:14:19,677 INFO (MSC service thread 1-3) at com.liferay.portal.util.PortalInstances.getDefaultCompanyId(PortalInstances.java:82)
22:14:19,678 INFO (MSC service thread 1-3) at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:803)
22:14:19,679 INFO (MSC service thread 1-3) at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:355)
22:14:19,680 INFO (MSC service thread 1-3) at javax.servlet.GenericServlet.init(GenericServlet.java:242)

We turned additional logging in PortalInstances class and this is what happens immediately before exception:

(MSC service thread 1-3) 22:14:19,616 DEBUG [MSC service thread 1-3][PortalInstances:364] Begin initializing company with web id liferay.com

We understand that there should be company with web id "liferay.com" in liferay database, but we have no idea why this company couldn't be initialized.

Note that we also created portal-ext.properties in <JBOSS-DEPLOYMENTS>/ROOT.war/WEB-INF/classes with following property:
company.default.web.id=liferay.com

and we even changed this property, with no effect (still looking for liferay.com web id even with changed property, we guess it is using portal.properties from project-impl.jar).


So based on this data, can someone point us why initializing of default company is failing, what could cause this? We are using root account on AIX so I guess it is not user rights.

Thanks, best regards,
Nedim