Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Alexey Truntov
Liferay on Weblogic cluster
29 de diciembre de 2011 3:38

Alexey Truntov

Ranking: New Member

Mensajes: 22

Fecha de incorporación: 15 de julio de 2011

Mensajes recientes


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 de junio de 2013 16:02

liferay learner

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 11 de marzo de 2013

Mensajes recientes

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!