Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
Alexey Truntov
Liferay on Weblogic cluster
29 décembre 2011 03:38

Alexey Truntov

Rang: New Member

Publications: 22

Date d'inscription: 15 juillet 2011

Publications Récentes


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
25 juin 2013 16:02

liferay learner

Rang: New Member

Publications: 3

Date d'inscription: 11 mars 2013

Publications Récentes

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.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!