Combination View Flat View Tree View
Threads [ Previous | Next ]
Alexey Truntov
Liferay on Weblogic cluster
December 29, 2011 3:38 AM

Alexey Truntov

Rank: New Member

Posts: 22

Join Date: July 15, 2011

Recent Posts


We have Liferay application deployed on Weblogic server and DB on Oracle. When deployed on standalone server it's working fine with datasource set up on weblogic services with oracle.jdbc.xa.client.OracleXADataSource driver. But when starting Liferay app on cluster environment we get an error:

 1Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.GenericJDBCException: could not load an entity: [com.liferay.counter.model.impl.CounterImpl#com.liferay.counter.model.Counte
 2        at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(
 3        at com.liferay.portal.dao.orm.hibernate.SessionImpl.get(
 4        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 5        at sun.reflect.NativeMethodAccessorImpl.invoke(
 6        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 7        at java.lang.reflect.Method.invoke(
 8        at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(
 9        at $Proxy293.get(Unknown Source)
10        at com.liferay.counter.service.persistence.CounterFinderImpl._obtainIncrement(
11        ... 114 more
12Caused by: org.hibernate.exception.GenericJDBCException: could not load an entity: [com.liferay.counter.model.impl.CounterImpl#com.liferay.counter.model.Counter]
13        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(
14        at org.hibernate.exception.SQLStateConverter.convert(
15        at org.hibernate.exception.JDBCExceptionHelper.convert(
16        at org.hibernate.loader.Loader.loadEntity(
17        at org.hibernate.loader.entity.AbstractEntityLoader.load(
18        at org.hibernate.loader.entity.AbstractEntityLoader.load(
19        at org.hibernate.persister.entity.AbstractEntityPersister.load(
20        at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(
21        at org.hibernate.event.def.DefaultLoadEventListener.doLoad(
22        at org.hibernate.event.def.DefaultLoadEventListener.load(
23        at org.hibernate.event.def.DefaultLoadEventListener.lockAndLoad(
24        at org.hibernate.event.def.DefaultLoadEventListener.onLoad(
25        at org.hibernate.impl.SessionImpl.fireLoad(
26        at org.hibernate.impl.SessionImpl.get(
27        at org.hibernate.impl.SessionImpl.get(
28        at com.liferay.portal.dao.orm.hibernate.SessionImpl.get(
29        ... 121 more
30Caused by: java.sql.SQLException: Due to vendor limitations, setting transaction isolation for "Oracle XA" JDBC XA driver is not supported.

We've tried to set

but it doesn't helped, still same error, so we had to switch to standart oracle.jdbc.driver.OracleDriver.

I suggest that Liferay app tries to set some transaction isolation level explicitly, any thoughts on how to overcome this problem using OracleXADataSource driver?
liferay learner
RE: Liferay on Weblogic cluster
June 25, 2013 4:02 PM

liferay learner

Rank: New Member

Posts: 3

Join Date: March 11, 2013

Recent Posts

Hi Alexey,
Were you able to find a solution for this issue? The documentation with respect to deployment on production weblogic instances is either really bad and non-existent. The book does not help as well.